[PATCH] wpa_supplicant: Fix lookup of cached PMKSA
Partha Narasimhan
parthan
Mon Mar 11 08:28:40 PDT 2013
Fix lookup of cached PMKSA
Fixes the lookup of a usable PMKSA in the cache. Using wpa_s->current_ssid
often returns nothing when
a usable PMKSA exists in the cache.
Signed-hostap: Partha Narasimhan <parthan at gmail.com>
diff --git a/wpa_supplicant/wpa_supplicant.c
b/wpa_supplicant/wpa_supplicant.c
index 42a475f..98e0a70 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -1352,7 +1352,7 @@ void wpa_supplicant_associate(struct wpa_supplicant
*wpa_s,
ssid->proactive_key_caching) &&
(ssid->proto & WPA_PROTO_RSN);
if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid,
- wpa_s->current_ssid,
+ ssid,
try_opportunistic) == 0)
eapol_sm_notify_pmkid_attempt(wpa_s->eapol, 1);
wpa_ie_len = sizeof(wpa_ie);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20130311/141c6c13/attachment-0001.htm
More information about the Hostap
mailing list