Kaynağa Gözat

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
Hanumanth Reddy Pothula 8 yıl önce
ebeveyn
işleme
9343088016
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      core/hdd/src/wlan_hdd_hostapd.c

+ 3 - 1
core/hdd/src/wlan_hdd_hostapd.c

@@ -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) {