aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_kay.c
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2016-09-20 07:43:09 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-03 10:26:26 (GMT)
commitcecdecdbe81c9ca86127413c6559be2d3ffcabd3 (patch)
tree52d4ae213ba07d03c259c624236dd718c73b56b9 /wpa_supplicant/wpas_kay.c
parent909c1b9835ecc9c115980e9827a9313c17dab22b (diff)
downloadhostap-cecdecdbe81c9ca86127413c6559be2d3ffcabd3.zip
hostap-cecdecdbe81c9ca86127413c6559be2d3ffcabd3.tar.gz
hostap-cecdecdbe81c9ca86127413c6559be2d3ffcabd3.tar.bz2
mka: Pass full structures down to macsec drivers' receive SA ops
Clean up the driver interface by passing pointers to struct receive_sa down the stack to the {create,enable,disable}_receive_sa() ops, instead of passing the individual properties of the SA. Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Diffstat (limited to 'wpa_supplicant/wpas_kay.c')
-rw-r--r--wpa_supplicant/wpas_kay.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/wpa_supplicant/wpas_kay.c b/wpa_supplicant/wpas_kay.c
index 4b74112..344c59e 100644
--- a/wpa_supplicant/wpas_kay.c
+++ b/wpa_supplicant/wpas_kay.c
@@ -117,22 +117,21 @@ static int wpas_delete_receive_sc(void *wpa_s, u32 channel)
}
-static int wpas_create_receive_sa(void *wpa_s, u32 channel, u8 an,
- u32 lowest_pn, const u8 *sak)
+static int wpas_create_receive_sa(void *wpa_s, struct receive_sa *sa)
{
- return wpa_drv_create_receive_sa(wpa_s, channel, an, lowest_pn, sak);
+ return wpa_drv_create_receive_sa(wpa_s, sa);
}
-static int wpas_enable_receive_sa(void *wpa_s, u32 channel, u8 an)
+static int wpas_enable_receive_sa(void *wpa_s, struct receive_sa *sa)
{
- return wpa_drv_enable_receive_sa(wpa_s, channel, an);
+ return wpa_drv_enable_receive_sa(wpa_s, sa);
}
-static int wpas_disable_receive_sa(void *wpa_s, u32 channel, u8 an)
+static int wpas_disable_receive_sa(void *wpa_s, struct receive_sa *sa)
{
- return wpa_drv_disable_receive_sa(wpa_s, channel, an);
+ return wpa_drv_disable_receive_sa(wpa_s, sa);
}