aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2016-10-07 10:08:12 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-09 08:30:48 (GMT)
commita25e4efc9e428d968e83398bd8c9c94698ba5851 (patch)
tree475e77c6d9fbf7be9fb819193db14d12cd7bc0eb /wpa_supplicant/driver_i.h
parent53b2555f676b17cf2bd255ccde7e789753a57fe6 (diff)
downloadhostap-a25e4efc9e428d968e83398bd8c9c94698ba5851.zip
hostap-a25e4efc9e428d968e83398bd8c9c94698ba5851.tar.gz
hostap-a25e4efc9e428d968e83398bd8c9c94698ba5851.tar.bz2
mka: Add driver op to get macsec capabilities
This also implements the macsec_get_capability for the macsec_qca driver to maintain the existing behavior. Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index d47395c..5d5dcf0 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -715,6 +715,14 @@ static inline int wpa_drv_macsec_deinit(struct wpa_supplicant *wpa_s)
return wpa_s->driver->macsec_deinit(wpa_s->drv_priv);
}
+static inline int wpa_drv_macsec_get_capability(struct wpa_supplicant *wpa_s,
+ enum macsec_cap *cap)
+{
+ if (!wpa_s->driver->macsec_get_capability)
+ return -1;
+ return wpa_s->driver->macsec_get_capability(wpa_s->drv_priv, cap);
+}
+
static inline int wpa_drv_enable_protect_frames(struct wpa_supplicant *wpa_s,
Boolean enabled)
{