wpa_supplicant: fix issues with the nl80211 driver
[openwrt/svn-archive/archive.git] / package / hostapd / patches / 400-nl80211_sta_auth.patch
1 --- a/wpa_supplicant/wpa_supplicant.c
2 +++ b/wpa_supplicant/wpa_supplicant.c
3 @@ -543,10 +543,16 @@ void wpa_supplicant_set_state(struct wpa
4 wpa_s->reassociated_connection = 1;
5 wpa_drv_set_operstate(wpa_s, 1);
6 wpa_s->after_wps = 0;
7 +#ifndef IEEE8021X_EAPOL
8 + wpa_drv_set_supp_port(wpa_s, 1);
9 +#endif
10 } else if (state == WPA_DISCONNECTED || state == WPA_ASSOCIATING ||
11 state == WPA_ASSOCIATED) {
12 wpa_s->new_connection = 1;
13 wpa_drv_set_operstate(wpa_s, 0);
14 +#ifndef IEEE8021X_EAPOL
15 + wpa_drv_set_supp_port(wpa_s, 0);
16 +#endif
17 }
18 wpa_s->wpa_state = state;
19