<div dir="ltr"><div style>Fix lookup of cached PMKSA</div><div style><br></div><div style>Fixes the lookup of a usable PMKSA in the cache. Using wpa_s-&gt;current_ssid often returns nothing when</div><div style>a usable PMKSA exists in the cache. </div>
<div><br></div><div style>Signed-hostap: Partha Narasimhan &lt;<a href="mailto:parthan@gmail.com">parthan@gmail.com</a>&gt;</div><div><br></div><div><div>diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c</div>
<div>index 42a475f..98e0a70 100644</div><div>--- a/wpa_supplicant/wpa_supplicant.c</div><div>+++ b/wpa_supplicant/wpa_supplicant.c</div><div>@@ -1352,7 +1352,7 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,</div>
<div>                                     ssid-&gt;proactive_key_caching) &amp;&amp;</div><div>                        (ssid-&gt;proto &amp; WPA_PROTO_RSN);</div><div>                if (pmksa_cache_set_current(wpa_s-&gt;wpa, NULL, bss-&gt;bssid,</div>
<div>-                                           wpa_s-&gt;current_ssid,</div><div>+                                           ssid,</div><div>                                            try_opportunistic) == 0)</div><div>
                        eapol_sm_notify_pmkid_attempt(wpa_s-&gt;eapol, 1);</div><div>                wpa_ie_len = sizeof(wpa_ie);</div></div><div><br></div></div>