X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/aaca845659c047aadcb6ffc473ab3b69f78b0707..77ec3b2de9bb1880b258ec6aaf4949f146f6fd8d:/package/hostapd/patches/100-pending_work.patch diff --git a/package/hostapd/patches/100-pending_work.patch b/package/hostapd/patches/100-pending_work.patch index d9824f317..8b318190f 100644 --- a/package/hostapd/patches/100-pending_work.patch +++ b/package/hostapd/patches/100-pending_work.patch @@ -160,3 +160,21 @@ if (bss != &drv->first_bss) { struct i802_bss *tbss; +--- a/src/ap/wpa_auth.c ++++ b/src/ap/wpa_auth.c +@@ -776,7 +776,14 @@ void wpa_receive(struct wpa_authenticato + } + + if (sm->wpa == WPA_VERSION_WPA2) { +- if (key->type != EAPOL_KEY_TYPE_RSN) { ++ if (key->type == EAPOL_KEY_TYPE_WPA) { ++ /* ++ * Some deployed station implementations seem to send ++ * msg 4/4 with incorrect type value in WPA2 mode. ++ */ ++ wpa_printf(MSG_DEBUG, "Workaround: Allow EAPOL-Key " ++ "with unexpected WPA type in RSN mode"); ++ } else if (key->type != EAPOL_KEY_TYPE_RSN) { + wpa_printf(MSG_DEBUG, "Ignore EAPOL-Key with " + "unexpected type %d in RSN mode", + key->type);