1 --- a/wpa_supplicant/wpa_supplicant.c
2 +++ b/wpa_supplicant/wpa_supplicant.c
3 @@ -545,10 +545,16 @@ void wpa_supplicant_set_state(struct wpa
4 wpa_s->reassociated_connection = 1;
5 wpa_drv_set_operstate(wpa_s, 1);
7 +#ifndef IEEE8021X_EAPOL
8 + wpa_drv_set_supp_port(wpa_s, 1);
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);
18 wpa_s->wpa_state = state;