aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_kay.c
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2016-09-20 07:43:05 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-03 09:54:08 (GMT)
commit7fa5eff8abbbff4f3385932175b080aad40bf211 (patch)
tree4e33ab0cb6b6de218a77a0422a646a76b79d830d /wpa_supplicant/wpas_kay.c
parentf75f6e2b03fa5e807142a37039b0b613565eafa7 (diff)
downloadhostap-7fa5eff8abbbff4f3385932175b080aad40bf211.zip
hostap-7fa5eff8abbbff4f3385932175b080aad40bf211.tar.gz
hostap-7fa5eff8abbbff4f3385932175b080aad40bf211.tar.bz2
mka: Pass full structures down to macsec drivers' packet number ops
Clean up the driver interface by passing pointers to structs transmit_sa and receive_sa down the stack to get_receive_lowest_pn(), get_transmit_next_pn(), and set_transmit_next_pn() ops, instead of passing the individual arguments. Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Diffstat (limited to 'wpa_supplicant/wpas_kay.c')
-rw-r--r--wpa_supplicant/wpas_kay.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/wpa_supplicant/wpas_kay.c b/wpa_supplicant/wpas_kay.c
index d6ec8c5..306d9f1 100644
--- a/wpa_supplicant/wpas_kay.c
+++ b/wpa_supplicant/wpas_kay.c
@@ -62,24 +62,21 @@ static int wpas_enable_controlled_port(void *wpa_s, Boolean enabled)
}
-static int wpas_get_receive_lowest_pn(void *wpa_s, u32 channel,
- u8 an, u32 *lowest_pn)
+static int wpas_get_receive_lowest_pn(void *wpa_s, struct receive_sa *sa)
{
- return wpa_drv_get_receive_lowest_pn(wpa_s, channel, an, lowest_pn);
+ return wpa_drv_get_receive_lowest_pn(wpa_s, sa);
}
-static int wpas_get_transmit_next_pn(void *wpa_s, u32 channel,
- u8 an, u32 *next_pn)
+static int wpas_get_transmit_next_pn(void *wpa_s, struct transmit_sa *sa)
{
- return wpa_drv_get_transmit_next_pn(wpa_s, channel, an, next_pn);
+ return wpa_drv_get_transmit_next_pn(wpa_s, sa);
}
-static int wpas_set_transmit_next_pn(void *wpa_s, u32 channel,
- u8 an, u32 next_pn)
+static int wpas_set_transmit_next_pn(void *wpa_s, struct transmit_sa *sa)
{
- return wpa_drv_set_transmit_next_pn(wpa_s, channel, an, next_pn);
+ return wpa_drv_set_transmit_next_pn(wpa_s, sa);
}