mac80211: update to wireless-testing 2010-11-10 + some pending work
[openwrt/svn-archive/archive.git] / package / hostapd / patches / 370-non_eapol_port_fix.patch
1 --- a/wpa_supplicant/wpa_supplicant.c
2 +++ b/wpa_supplicant/wpa_supplicant.c
3 @@ -550,6 +550,9 @@ void wpa_supplicant_set_state(struct wpa
4 wpa_s->new_connection = 0;
5 wpa_s->reassociated_connection = 1;
6 wpa_drv_set_operstate(wpa_s, 1);
7 +#ifndef IEEE8021X_EAPOL
8 + wpa_drv_set_supp_port(wpa_s, 1);
9 +#endif
10 wpa_s->after_wps = 0;
11 #ifdef CONFIG_P2P
12 wpas_p2p_completed(wpa_s);
13 @@ -558,6 +561,9 @@ void wpa_supplicant_set_state(struct wpa
14 state == WPA_ASSOCIATED) {
15 wpa_s->new_connection = 1;
16 wpa_drv_set_operstate(wpa_s, 0);
17 +#ifndef IEEE8021X_EAPOL
18 + wpa_drv_set_supp_port(wpa_s, 0);
19 +#endif
20 }
21 wpa_s->wpa_state = state;
22