qcacld-3.0: Invoke DEL_STA within driver on receiving STOP_AP

In some scenarios like, driver rmmod or on terminating hostapd or
on terminating dataservice process, driver receives directly STOP_AP
indication without DEl_STA indication from upper-layer, leading to
cleanup of stations connected to SAP won’t happen within driver.

To mitigate this issue call DEL_STA within driver on receiving
STOP_AP indication.

Change-Id: I7050f1788c1fa9a9ede190874a5d494f896abfff
CRs-Fixed: 2010222
This commit is contained in:
Hanumanth Reddy Pothula
2017-02-27 20:11:01 +05:30
committato da snandini
parent 2227c8aa40
commit 9343088016

Vedi File

@@ -8143,8 +8143,10 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
if (0 != ret)
return ret;
if (QDF_SAP_MODE == pAdapter->device_mode)
if (pAdapter->device_mode == QDF_SAP_MODE) {
wlan_hdd_del_station(pAdapter);
hdd_green_ap_stop_bss(pHddCtx);
}
status = hdd_get_front_adapter(pHddCtx, &pAdapterNode);
while (NULL != pAdapterNode && QDF_STATUS_SUCCESS == status) {