Explorar el Código

qcacld-3.0: Flush the PMK cache in stop_ap

PMKID/PMKs present in PMK cache are no more valid after softap
stop/restart. Flush the cache when the stop_ap() is called.

Change-Id: I1772bc7e36e6c0ef4f65ed49544fcae0fc11ee70
CRs-Fixed: 2396375
Srinivas Dasari hace 6 años
padre
commit
1541213f0c
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      core/hdd/src/wlan_hdd_hostapd.c

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

@@ -5734,8 +5734,15 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
 	 */
 	hdd_abort_ongoing_sta_connection(hdd_ctx);
 
-	if (adapter->device_mode == QDF_SAP_MODE)
+	if (adapter->device_mode == QDF_SAP_MODE) {
 		wlan_hdd_del_station(adapter);
+		mac_handle = hdd_ctx->mac_handle;
+		status = sme_roam_del_pmkid_from_cache(mac_handle,
+						       adapter->vdev_id,
+						       NULL, true);
+		if (QDF_IS_STATUS_ERROR(status))
+			hdd_debug("Cannot flush PMKIDCache");
+	}
 
 	cds_flush_work(&adapter->sap_stop_bss_work);
 	adapter->session.ap.sap_config.acs_cfg.acs_mode = false;