wpa_supplicant: Fix port state management without IEEE8021X_EAPOL
If IEE8021X_EAPOL is not enabled in the config, wpa_drv_set_supp_port must be called from the supplicant, otherwise port will not be activated after association.
This commit is contained in:
parent
d3b4286967
commit
99ac2913d8
1 changed files with 6 additions and 0 deletions
|
@ -550,6 +550,9 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
|
|||
wpa_s->new_connection = 0;
|
||||
wpa_s->reassociated_connection = 1;
|
||||
wpa_drv_set_operstate(wpa_s, 1);
|
||||
#ifndef IEEE8021X_EAPOL
|
||||
wpa_drv_set_supp_port(wpa_s, 1);
|
||||
#endif /* IEEE8021X_EAPOL */
|
||||
wpa_s->after_wps = 0;
|
||||
#ifdef CONFIG_P2P
|
||||
wpas_p2p_completed(wpa_s);
|
||||
|
@ -558,6 +561,9 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
|
|||
state == WPA_ASSOCIATED) {
|
||||
wpa_s->new_connection = 1;
|
||||
wpa_drv_set_operstate(wpa_s, 0);
|
||||
#ifndef IEEE8021X_EAPOL
|
||||
wpa_drv_set_supp_port(wpa_s, 0);
|
||||
#endif /* IEEE8021X_EAPOL */
|
||||
}
|
||||
wpa_s->wpa_state = state;
|
||||
|
||||
|
|
Loading…
Reference in a new issue