aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_kay.c
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2016-11-02 15:38:39 (GMT)
committerJouni Malinen <j@w1.fi>2016-11-19 22:35:31 (GMT)
commite0d9fd344d20bb35efcd5c37ece0a5d67632439d (patch)
tree47cd6cf33f914ebaaccf2d8c7829d9c4f22f7c5c /wpa_supplicant/wpas_kay.c
parent1d3d0666a6ed345da39886426c4416a4debfd094 (diff)
downloadhostap-e0d9fd344d20bb35efcd5c37ece0a5d67632439d.zip
hostap-e0d9fd344d20bb35efcd5c37ece0a5d67632439d.tar.gz
hostap-e0d9fd344d20bb35efcd5c37ece0a5d67632439d.tar.bz2
wpa_supplicant: Allow configuring the MACsec port for MKA
Previously, wpa_supplicant only supported hardcoded port == 1 in the SCI, but users may want to choose a different port. Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Diffstat (limited to 'wpa_supplicant/wpas_kay.c')
-rw-r--r--wpa_supplicant/wpas_kay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/wpas_kay.c b/wpa_supplicant/wpas_kay.c
index 2ff4895..d3fefda 100644
--- a/wpa_supplicant/wpas_kay.c
+++ b/wpa_supplicant/wpas_kay.c
@@ -232,8 +232,8 @@ int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
kay_ctx->enable_transmit_sa = wpas_enable_transmit_sa;
kay_ctx->disable_transmit_sa = wpas_disable_transmit_sa;
- res = ieee802_1x_kay_init(kay_ctx, policy, wpa_s->ifname,
- wpa_s->own_addr);
+ res = ieee802_1x_kay_init(kay_ctx, policy, ssid->macsec_port,
+ wpa_s->ifname, wpa_s->own_addr);
if (res == NULL) {
os_free(kay_ctx);
return -1;