Ver Fonte

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
gaurank kathpalia há 5 anos atrás
pai
commit
69f052b95b
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      core/sap/src/sap_fsm.c

+ 4 - 0
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