wpa_supplicant: Fix lookup of cached PMKSA

This fixes the lookup of a usable PMKSA entry in the cache. Using
wpa_s->current_ssid often returns nothing when a usable PMKSA exists in
the cache since wpa_s->current_ssid does not necessarily point to the
correct network entry at this point in time (prior to association).

Signed-hostap: Partha Narasimhan <parthan@gmail.com>
This commit is contained in:
Partha Narasimhan 2013-03-16 12:45:31 +02:00 committed by Jouni Malinen
parent 65d52fc103
commit b2a12c4f93

View file

@ -1352,8 +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,
try_opportunistic) == 0)
ssid, try_opportunistic) == 0)
eapol_sm_notify_pmkid_attempt(wpa_s->eapol, 1);
wpa_ie_len = sizeof(wpa_ie);
if (wpa_supplicant_set_suites(wpa_s, bss, ssid,