qcacld-3.0: Disable indoor channel on sap start
There are scenario where indoor channel operations
(like active / passive scan/connect/roam etc)
are not desired / permitted specially in sap case.
Hence add support of disabling indoor channel
on sap start and revert it on sap stop.
Change-Id: Id6e01534532e3076a3e662e6a4f71e8be924165a
CRs-fixed: 2121103
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index ae3598b..b6441bf 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -49,6 +49,7 @@
#include <wlan_hdd_object_manager.h>
#include "wlan_p2p_ucfg_api.h"
#include <wlan_hdd_ipa.h>
+#include <wlan_hdd_regulatory.h>
/* Preprocessor definitions and constants */
#undef QCA_HDD_SAP_DUMP_SK_BUFF
@@ -1070,6 +1071,13 @@
}
}
}
+
+ /* Mark the indoor channel (passive) to enable */
+ if (hdd_ctx->config->force_ssc_disable_indoor_channel) {
+ hdd_update_indoor_channel(hdd_ctx, false);
+ sme_update_channel_list(hdd_ctx->hHal);
+ }
+
return qdf_status;
}