aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
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/driver_i.h
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/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 2dc74bf..d47395c 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -782,23 +782,21 @@ static inline int wpa_drv_get_available_receive_sc(struct wpa_supplicant *wpa_s,
}
static inline int
-wpa_drv_create_receive_sc(struct wpa_supplicant *wpa_s, u32 channel,
- const u8 *sci_addr, u16 sci_port,
+wpa_drv_create_receive_sc(struct wpa_supplicant *wpa_s, struct receive_sc *sc,
unsigned int conf_offset, int validation)
{
if (!wpa_s->driver->create_receive_sc)
return -1;
- return wpa_s->driver->create_receive_sc(wpa_s->drv_priv, channel,
- sci_addr, sci_port, conf_offset,
- validation);
+ return wpa_s->driver->create_receive_sc(wpa_s->drv_priv, sc,
+ conf_offset, validation);
}
static inline int wpa_drv_delete_receive_sc(struct wpa_supplicant *wpa_s,
- u32 channel)
+ struct receive_sc *sc)
{
if (!wpa_s->driver->delete_receive_sc)
return -1;
- return wpa_s->driver->delete_receive_sc(wpa_s->drv_priv, channel);
+ return wpa_s->driver->delete_receive_sc(wpa_s->drv_priv, sc);
}
static inline int wpa_drv_create_receive_sa(struct wpa_supplicant *wpa_s,