Эх сурвалжийг харах

qcacld-3.0: Disable indoor channels only for SAP and not GO

In the present scenario, the indoor channels are disabled
in both SAP and GO.
Disable the indoor channels only in case of SAP.

Change-Id: Ic66c3af211bd65846ec0ecaac8375d037f15af9a
CRs-Fixed: 2203719
Sourav Mohapatra 6 жил өмнө
parent
commit
fec6d6c8c4

+ 2 - 2
core/hdd/src/wlan_hdd_hostapd.c

@@ -4816,7 +4816,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
 						    &indoor_chnl_marking))
 		hdd_err("can't get indoor channel marking, using default");
 	/* Mark the indoor channel (passive) to disable */
-	if (indoor_chnl_marking) {
+	if (indoor_chnl_marking && adapter->device_mode == QDF_SAP_MODE) {
 		hdd_update_indoor_channel(hdd_ctx, true);
 		if (QDF_IS_STATUS_ERROR(
 		    sme_update_channel_list(mac_handle))) {
@@ -5466,7 +5466,7 @@ error:
 		wlan_hdd_restore_channels(hdd_ctx, true);
 
 	/* Revert the indoor to passive marking if START BSS fails */
-	if (indoor_chnl_marking) {
+	if (indoor_chnl_marking && adapter->device_mode == QDF_SAP_MODE) {
 		hdd_update_indoor_channel(hdd_ctx, false);
 		sme_update_channel_list(mac_handle);
 	}

+ 1 - 1
core/hdd/src/wlan_hdd_softap_tx_rx.c

@@ -1184,7 +1184,7 @@ QDF_STATUS hdd_softap_stop_bss(struct hdd_adapter *adapter)
 		wlan_hdd_restore_channels(hdd_ctx, true);
 
 	/*  Mark the indoor channel (passive) to enable  */
-	if (indoor_chnl_marking) {
+	if (indoor_chnl_marking && adapter->device_mode == QDF_SAP_MODE) {
 		hdd_update_indoor_channel(hdd_ctx, false);
 		sme_update_channel_list(hdd_ctx->mac_handle);
 	}