3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 06:02:37 +01:00

station: only set 8021x config on 8021x networks

During the handshake setup, if security != SECURITY_PSK then 8021x settings
would get set in the handshake object. This didn't appear to break anything
(e.g. Open/WEP) but its better to explicitly check that we are setting up
an 8021x network.
This commit is contained in:
James Prestwood 2018-11-14 15:12:50 -08:00 committed by Denis Kenzior
parent 10a4e01657
commit 07c870df55

View File

@ -544,7 +544,7 @@ static struct handshake_state *station_handshake_setup(struct station *station,
else else
handshake_state_set_pmk(hs, handshake_state_set_pmk(hs,
network_get_psk(network), 32); network_get_psk(network), 32);
} else } else if (security == SECURITY_8021X)
handshake_state_set_8021x_config(hs, handshake_state_set_8021x_config(hs,
network_get_settings(network)); network_get_settings(network));