mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
qcacld-3.0: Return proper error code when handling PMKSA
Currently only STA and SAP support PMKSA cache, and return EOPNOTSUPP for other modes. Change-Id: Ic8969ffd58815c4f3e2e5e286521421c38eb7f56 CRs-Fixed: 2747485
This commit is contained in:
parent
1ec4f1c8f9
commit
087abae550
1 changed files with 4 additions and 1 deletions
|
|
@ -22083,7 +22083,10 @@ static int __wlan_hdd_cfg80211_flush_pmksa(struct wiphy *wiphy,
|
|||
return errno;
|
||||
|
||||
status = wlan_hdd_flush_pmksa_cache(adapter);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
if (status == QDF_STATUS_E_NOSUPPORT) {
|
||||
errno = -EOPNOTSUPP;
|
||||
}
|
||||
else if (QDF_IS_STATUS_ERROR(status)) {
|
||||
hdd_err("Cannot flush PMKIDCache");
|
||||
errno = -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue