| Submitter | Partha Narasimhan |
|---|---|
| Date | March 11, 2013, 3:28 p.m. |
| Message ID | <CAND87PCuzjx0Gx7EJyPauE6YOKZkKZaitA1+1__xSMzk8cE7ZA@mail.gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/226571/ |
| State | Accepted |
| Commit | b2a12c4f93f77d5be8682c8ab60f13857d1cfa5e |
| Headers | show |
Comments
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.
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);
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);