aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_kay.c
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2016-10-07 10:08:10 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-07 21:45:19 (GMT)
commit5f5ca28414de7ae0b86d4c2aa09c3e67b697dd56 (patch)
treef9c2ea56616559bda2d34713ad06b07bbb9484e2 /wpa_supplicant/wpas_kay.c
parent8ebfc7c2ba77ac1f71577b3ddc46a050d9fb1103 (diff)
downloadhostap-5f5ca28414de7ae0b86d4c2aa09c3e67b697dd56.zip
hostap-5f5ca28414de7ae0b86d4c2aa09c3e67b697dd56.tar.gz
hostap-5f5ca28414de7ae0b86d4c2aa09c3e67b697dd56.tar.bz2
mka: Pass full structures down to macsec drivers' receive SC ops
Clean up the driver interface by passing pointers to struct receive_sc down the stack to the {create,delete}_recevie_sc() ops, instead of passing the individual properties of the SC. Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Diffstat (limited to 'wpa_supplicant/wpas_kay.c')
-rw-r--r--wpa_supplicant/wpas_kay.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/wpa_supplicant/wpas_kay.c b/wpa_supplicant/wpas_kay.c
index e0f8e28..4163b61 100644
--- a/wpa_supplicant/wpas_kay.c
+++ b/wpa_supplicant/wpas_kay.c
@@ -100,20 +100,17 @@ static unsigned int conf_offset_val(enum confidentiality_offset co)
}
-static int wpas_create_receive_sc(void *wpa_s, u32 channel,
- struct ieee802_1x_mka_sci *sci,
+static int wpas_create_receive_sc(void *wpa_s, struct receive_sc *sc,
enum validate_frames vf,
enum confidentiality_offset co)
{
- return wpa_drv_create_receive_sc(wpa_s, channel, sci->addr,
- be_to_host16(sci->port),
- conf_offset_val(co), vf);
+ return wpa_drv_create_receive_sc(wpa_s, sc, conf_offset_val(co), vf);
}
-static int wpas_delete_receive_sc(void *wpa_s, u32 channel)
+static int wpas_delete_receive_sc(void *wpa_s, struct receive_sc *sc)
{
- return wpa_drv_delete_receive_sc(wpa_s, channel);
+ return wpa_drv_delete_receive_sc(wpa_s, sc);
}