From 69f052b95b268b4ebbc27ab2a944034c65c35abe Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Fri, 16 Aug 2019 13:48:59 +0530 Subject: [PATCH] qcacld-3.0: Avoid channel 12, 13 for SAP operation Currently the driver selects channel 12, 13 as they are free from BSS as their weights are minimum, which results into IOT issues as legacy STAs do not support the same. Fix is to avoid channel 12, 13 in SAP ACS process, and try to start the SAP on channels from 1 - 11. Change-Id: If735fade7d7b489b45a20f74c04bab5582343f79 CRs-Fixed: 2509791 --- core/sap/src/sap_fsm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 305171531067..917d1102d498 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -3295,6 +3295,10 @@ static QDF_STATUS sap_get_freq_list(struct sap_context *sap_ctx, if ((start_ch_num > WLAN_REG_CH_NUM(loop_count)) || (end_ch_num < WLAN_REG_CH_NUM(loop_count))) continue; + /* Skip channel 12, and 13 for IOT issues for now */ + if (WLAN_REG_CH_NUM(loop_count) == 12 || + WLAN_REG_CH_NUM(loop_count) == 13) + continue; /* * go to next channel if none of these condition pass * - DFS scan enabled and chan not in CHANNEL_STATE_DISABLE