hostapd: add a patch for ignoring the WPA/WPA2 key type to work around some broken...
[openwrt-10.03/.git] / package / hostapd / patches / 570-eapol_key_type.patch
1 --- a/src/ap/wpa_auth.c
2 +++ b/src/ap/wpa_auth.c
3 @@ -725,6 +725,7 @@ void wpa_receive(struct wpa_authenticato
4                 return;
5         }
6  
7 +#if 0
8         if (sm->wpa == WPA_VERSION_WPA2) {
9                 if (key->type != EAPOL_KEY_TYPE_RSN) {
10                         wpa_printf(MSG_DEBUG, "Ignore EAPOL-Key with "
11 @@ -740,6 +741,7 @@ void wpa_receive(struct wpa_authenticato
12                         return;
13                 }
14         }
15 +#endif
16  
17         wpa_hexdump(MSG_DEBUG, "WPA: Received Key Nonce", key->key_nonce,
18                     WPA_NONCE_LEN);