mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacld-3.0: Remove add PMKSA cache logic from connect path
Currently host is adding PMKSA cache on bssid from connect request if PMKID is present in the RSNIE. This may cause duplicate entry of PMKSA since supplicant may add the same PMKSA on basis of SSID + cache identifier. This also cause different caches present in driver and supplicant. Setting PMKSA in connect request is not needed since supplicant will always set/delete PMKSA cache using seperate kernel APIs. Add changes to remove set PMKSA logic during connect path and increased PMKSA cache path logging. Change-Id: I7aa13daa59c4221380daebab3bee49de5d681d6b CRs-Fixed: 2054351
This commit is contained in:
parent
ab628711da
commit
fa90d6210f
1 changed files with 8 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
|
|
@ -19100,12 +19100,13 @@ static int wlan_hdd_cfg80211_add_station(struct wiphy *wiphy,
|
|||
static inline bool wlan_hdd_is_pmksa_valid(struct cfg80211_pmksa *pmksa)
|
||||
{
|
||||
if (!pmksa->bssid) {
|
||||
hdd_err("bssid (%pK) is NULL",
|
||||
pmksa->bssid);
|
||||
} else if (!pmksa->ssid || !pmksa->cache_id) {
|
||||
hdd_err("either ssid (%pK) or cache_id (%pK) are NULL",
|
||||
pmksa->ssid, pmksa->cache_id);
|
||||
return false;
|
||||
hdd_warn("bssid (%pK) is NULL",
|
||||
pmksa->bssid);
|
||||
if (!pmksa->ssid || !pmksa->cache_id) {
|
||||
hdd_err("either ssid (%pK) or cache_id (%pK) are NULL",
|
||||
pmksa->ssid, pmksa->cache_id);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue