aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorDaisuke Niwa <daisuke.x.niwa@sonymobile.com>2016-03-16 06:01:59 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-20 09:17:39 (GMT)
commit192964ddc3b075ef0502e402e2db6d76ffe4c04c (patch)
tree614043022d83961e7e02b82df34060b641bd6438 /wpa_supplicant/events.c
parent2b5488a4e114fe2ae8dfb32b88c5b07473449dbf (diff)
downloadhostap-192964ddc3b075ef0502e402e2db6d76ffe4c04c.zip
hostap-192964ddc3b075ef0502e402e2db6d76ffe4c04c.tar.gz
hostap-192964ddc3b075ef0502e402e2db6d76ffe4c04c.tar.bz2
Handle OSEN IE in Assoc Request info if req_ies exists
The 4-way handshake fails with the error "WPA: No wpa_ie set - cannot generate msg 2/4" while connecting to OSEN network with drivers that indicate used Association Request frame elements because OSEN IE is not handled in wpa_supplicant_event_associnfo() if data->assoc_info.req_ies is not NULL. Signed-off-by: Daichi Ueura <daichi.ueura@sonymobile.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index ac3c118..d770107 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1984,6 +1984,8 @@ static int wpa_supplicant_event_associnfo(struct wpa_supplicant *wpa_s,
}
if ((p[0] == WLAN_EID_VENDOR_SPECIFIC && p[1] >= 6 &&
(os_memcmp(&p[2], "\x00\x50\xF2\x01\x01\x00", 6) == 0)) ||
+ (p[0] == WLAN_EID_VENDOR_SPECIFIC && p[1] >= 4 &&
+ (os_memcmp(&p[2], "\x50\x6F\x9A\x12", 4) == 0)) ||
(p[0] == WLAN_EID_RSN && p[1] >= 2)) {
if (wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, p, len))
break;