Merge "qcacld-3.0: Add support for flush PMKSA in fw" into wlan-cld3.driver.lnx.2.0-dev

This commit is contained in:
CNSS_WLAN Service 2017-10-19 17:35:31 -07:00 • committed by Gerrit - the friendly Code Review server
commit 3aba384528
2 changed files with 8 additions and 0 deletions

View file

@ -18770,6 +18770,8 @@ static int __wlan_hdd_cfg80211_flush_pmksa(struct wiphy *wiphy,
hdd_err("Cannot flush PMKIDCache");
status = -EINVAL;
}
sme_set_del_pmkid_cache(halHandle, adapter->sessionId, NULL, false);
EXIT();
return status;
}

View file

@ -15578,8 +15578,13 @@ QDF_STATUS sme_set_del_pmkid_cache(tHalHandle hal, uint8_t session_id,
return QDF_STATUS_E_NOMEM;
}
qdf_mem_set(pmk_cache, sizeof(*pmk_cache), 0);
pmk_cache->session_id = session_id;
if (!pmk_cache_info)
goto send_flush_cmd;
if (!pmk_cache_info->ssid_len) {
pmk_cache->cat_flag = WMI_PMK_CACHE_CAT_FLAG_BSSID;
WMI_CHAR_ARRAY_TO_MAC_ADDR(pmk_cache_info->BSSID.bytes,
@ -15607,6 +15612,7 @@ QDF_STATUS sme_set_del_pmkid_cache(tHalHandle hal, uint8_t session_id,
qdf_mem_copy(pmk_cache->pmk, pmk_cache_info->pmk,
pmk_cache->pmk_len);
send_flush_cmd:
msg.type = SIR_HAL_SET_DEL_PMKID_CACHE;
msg.reserved = 0;
msg.bodyptr = pmk_cache;