Avoid IMPS during SAP/GO initialization
During change_iface to SAP/GO there is no need to enter/exit
IMPS.So disable both BMPS & IMPS during initialization.
Change-Id: I65e6c9d1114bb2b16ab664bfd61635f82dc4a2e4
CRs-Fixed: 630054
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 19df165..8d8c299 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -2951,6 +2951,13 @@
hdd_close_adapter(pHddCtx, pP2pAdapter, VOS_TRUE);
}
}
+ //Disable IMPS & BMPS for SAP/GO
+ if(VOS_STATUS_E_FAILURE ==
+ hdd_disable_bmps_imps(pHddCtx, WLAN_HDD_P2P_GO))
+ {
+ //Fail to Exit BMPS
+ VOS_ASSERT(0);
+ }
#ifdef FEATURE_WLAN_TDLS
/* A Mutex Lock is introduced while changing the mode to
@@ -2968,19 +2975,6 @@
#ifdef FEATURE_WLAN_TDLS
mutex_unlock(&pHddCtx->tdls_lock);
#endif
-
- //Disable BMPS and IMPS if enabled
- //before starting Go
- if(WLAN_HDD_P2P_GO == pAdapter->device_mode)
- {
- if(VOS_STATUS_E_FAILURE ==
- hdd_disable_bmps_imps(pHddCtx, WLAN_HDD_P2P_GO))
- {
- //Fail to Exit BMPS
- VOS_ASSERT(0);
- }
- }
-
if ((WLAN_HDD_SOFTAP == pAdapter->device_mode) &&
(pConfig->apRandomBssidEnabled))
{