Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a99506df authored by Pankaj Singh's avatar Pankaj Singh
Browse files

wlan: 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: 2734683
parent 43a0d7d0
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -12026,6 +12026,8 @@ static int __wlan_hdd_cfg80211_stop_ap (struct wiphy *wiphy,
    hdd_context_t  *pHddCtx    = NULL;
    hdd_scaninfo_t *pScanInfo  = NULL;
    VOS_STATUS status;
    eHalStatus      halstatus;
    tHalHandle      hal_ptr    = WLAN_HDD_GET_HAL_CTX(pAdapter);
    long ret;
    ENTER();
@@ -12065,6 +12067,14 @@ static int __wlan_hdd_cfg80211_stop_ap (struct wiphy *wiphy,
        wlan_hdd_disconnect(staAdapter, eCSR_DISCONNECT_REASON_DEAUTH);
    }
    if (WLAN_HDD_SOFTAP == pAdapter->device_mode) {
        halstatus = sme_RoamDelPMKIDfromCache(
                        hal_ptr, pAdapter->sessionId,
                        NULL, true);
        if (!HAL_STATUS_SUCCESS(halstatus))
            hddLog(LOG1, FL("Cannot flush PMKIDCache"));
    }
    ret = wlan_hdd_scan_abort(pAdapter);
    if (ret < 0)