wlan: Fix for SAP turning ON on invalid channels for a given CC
Avoid SAP turning ON on invalid channels when a particular country
code is set in hostapd.conf due to race condition between reg
notifier and nv bin based channel initializtion during driver load.
This commit ensures reg_notifier callback is called once the
channels are initialized based on nv bin, thus updating the latest
reg domain set by the notifier callback.
Change-Id: I4e8e9e9a86a58c8bf4c4ee9ebb85ba691694bd1c
CRs-Fixed: 661014
diff --git a/CORE/SME/inc/csrInternal.h b/CORE/SME/inc/csrInternal.h
index bcc6d6f..e6bb97a 100644
--- a/CORE/SME/inc/csrInternal.h
+++ b/CORE/SME/inc/csrInternal.h
@@ -1325,6 +1325,13 @@
eHalStatus csrInitChannels(tpAniSirGlobal pMac);
/* ---------------------------------------------------------------------------
+ \fn csrInitChannelsForCC
+ \brief This function must be called to issue reg hint
+ \return eHalStatus
+ -------------------------------------------------------------------------------*/
+eHalStatus csrInitChannelsForCC(tpAniSirGlobal pMac);
+
+/* ---------------------------------------------------------------------------
\fn csrClose
\brief To close down CSR module. There should not be any API call into CSR after calling this function.
\return eHalStatus