diff mbox

wpa_supplicant: Fix lookup of cached PMKSA

Message ID CAND87PCuzjx0Gx7EJyPauE6YOKZkKZaitA1+1__xSMzk8cE7ZA@mail.gmail.com
State Accepted
Commit b2a12c4f93f77d5be8682c8ab60f13857d1cfa5e
Headers show

Commit Message

Partha Narasimhan March 11, 2013, 3:28 p.m. UTC
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@gmail.com>

                wpa_ie_len = sizeof(wpa_ie);

Comments

Jouni Malinen March 16, 2013, 10:47 a.m. UTC | #1
On Mon, Mar 11, 2013 at 08:28:40AM -0700, Partha Narasimhan wrote:
> 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.

Thanks, applied.
diff mbox

Patch

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);