]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Handle OSEN IE in Assoc Request info if req_ies exists
authorDaisuke Niwa <daisuke.x.niwa@sonymobile.com>
Wed, 16 Mar 2016 06:01:59 +0000 (15:01 +0900)
committerJouni Malinen <j@w1.fi>
Sun, 20 Mar 2016 09:17:39 +0000 (11:17 +0200)
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>
wpa_supplicant/events.c

index ac3c118464712d48d15665046c24b1842bdb1497..d770107945cd62d4612ae8944c7dd824f532a47a 100644 (file)
@@ -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;