qcacld-3.0: Update cfg80211 stop_ap to handle SSR
Clear SOFTAP INIT DONE flag at the beginning of stop_ap cfg80211 function to handle SSR case. Thus SAP will not be restarted after SSR. SAP adapter will be cleaned up during SSR even though stop_ap returns failure as it could not be processed during SSR. Change-Id: Ia90b26c68f7ded4481aa4cbdd8f424453853da21 CRs-fixed: 2008697
This commit is contained in:

committed by
Sandeep Puligilla

parent
5df782768e
commit
f9b2dc18fa
@@ -7899,7 +7899,12 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
|
|||||||
pAdapter->device_mode == QDF_P2P_GO_MODE)) {
|
pAdapter->device_mode == QDF_P2P_GO_MODE)) {
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
/* Clear SOFTAP_INIT_DONE flag to mark stop_ap deinit. So that we do
|
||||||
|
* not restart SAP after SSR as SAP is already stopped from user space.
|
||||||
|
* This update is moved to start of this function to resolve stop_ap
|
||||||
|
* call during SSR case. Adapter gets cleaned up as part of SSR.
|
||||||
|
*/
|
||||||
|
clear_bit(SOFTAP_INIT_DONE, &pAdapter->event_flags);
|
||||||
hdd_notice("Device_mode %s(%d)",
|
hdd_notice("Device_mode %s(%d)",
|
||||||
hdd_device_mode_to_string(pAdapter->device_mode),
|
hdd_device_mode_to_string(pAdapter->device_mode),
|
||||||
pAdapter->device_mode);
|
pAdapter->device_mode);
|
||||||
@@ -8028,7 +8033,6 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
|
|||||||
}
|
}
|
||||||
/* Reset WNI_CFG_PROBE_RSP Flags */
|
/* Reset WNI_CFG_PROBE_RSP Flags */
|
||||||
wlan_hdd_reset_prob_rspies(pAdapter);
|
wlan_hdd_reset_prob_rspies(pAdapter);
|
||||||
clear_bit(SOFTAP_INIT_DONE, &pAdapter->event_flags);
|
|
||||||
|
|
||||||
#ifdef WLAN_FEATURE_P2P_DEBUG
|
#ifdef WLAN_FEATURE_P2P_DEBUG
|
||||||
if ((pAdapter->device_mode == QDF_P2P_GO_MODE) &&
|
if ((pAdapter->device_mode == QDF_P2P_GO_MODE) &&
|
||||||
|
Reference in New Issue
Block a user