summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanumanth Reddy Pothula <c_hpothu@codeaurora.org>2017-02-27 20:11:01 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-02-28 16:58:59 -0800
commitc15ebd19e8c33d6e66ce22391e80e218f6ae8b4b (patch)
treee59457464d83f4176ec16dfce9e374eef7f9e715
parent4b5d6497c6ad1aee7a16c4411611a448b3e92548 (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_hostapd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c
index fc246663c655..0d9643adec1c 100644
--- a/core/hdd/src/wlan_hdd_hostapd.c
+++ b/core/hdd/src/wlan_hdd_hostapd.c
@@ -7915,8 +7915,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) {