From 1541213f0cf35d9b94d0ed4a3b7c0cfe08d72995 Mon Sep 17 00:00:00 2001 From: Srinivas Dasari Date: Tue, 22 Jan 2019 15:25:31 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_hostapd.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index a3b676bf3c..a2a8b83690 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/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;