From 364a002f8d89217e12f7308a155805f6a7897da6 Mon Sep 17 00:00:00 2001 From: Chaoli Zhou Date: Thu, 10 Oct 2019 11:29:45 +0800 Subject: [PATCH] qcacld-3.0: Fix build failure: ISO C90 forbids mixed declarations and code It has "ISO C90 forbids mixed declarations and code" build issue on the LE.UM.4.1.1, so fix it. Change-Id: I0bc918f55e9a7d3c540a455ed292977c15300456 CRs-Fixed: 2542657 --- core/sap/src/sap_fsm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 1719fad33887..4f30bb7bf838 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -3364,11 +3364,11 @@ static QDF_STATUS sap_get_freq_list(struct sap_context *sap_ctx, continue; #ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE - uint8_t ch; - - ch = WLAN_REG_CH_NUM(loop_count); if ((sap_ctx->acs_cfg->skip_scan_status == eSAP_DO_PAR_ACS_SCAN)) { + uint8_t ch; + + ch = WLAN_REG_CH_NUM(loop_count); if ((ch >= sap_ctx->acs_cfg->skip_scan_range1_stch && ch <= sap_ctx->acs_cfg->skip_scan_range1_endch) || (ch >= sap_ctx->acs_cfg->skip_scan_range2_stch && @@ -3392,8 +3392,8 @@ static QDF_STATUS sap_get_freq_list(struct sap_context *sap_ctx, ch_count++; QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO, - FL("%d %d added to ACS ch range"), - ch_count, ch); + FL("%d added to ACS ch range"), + ch_count); } #else list[ch_count] = wlan_reg_chan_to_freq(mac_ctx->pdev,