commit 07c870df55d29ff7f9d7b9f5cf66ba8efd0028a5
parent 10a4e016579bbbd8d9cc394788d3814c980ef3f5
Author: James Prestwood <james.prestwood@linux.intel.com>
Date: Wed, 14 Nov 2018 15:12:50 -0800
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/station.c b/src/station.c
@@ -544,7 +544,7 @@ static struct handshake_state *station_handshake_setup(struct station *station,
else
handshake_state_set_pmk(hs,
network_get_psk(network), 32);
- } else
+ } else if (security == SECURITY_8021X)
handshake_state_set_8021x_config(hs,
network_get_settings(network));