From 8bfd8d88001e0d239d741c954c2421052b858fc1 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 5 Jan 2021 14:21:14 +0000 Subject: iwinfo: add support for GCMP cipher Extend support for WPA ciphers by GCMP which is required for 802.11ad. Breaks ABI as ciphers now needs to be a field of 16 bits instead of 8. Signed-off-by: Daniel Golle --- iwinfo_nl80211.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'iwinfo_nl80211.c') diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index b067fc1..5ca5c03 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -1654,10 +1654,11 @@ static struct { { "WEP-40", IWINFO_CIPHER_WEP40 }, { "NONE", IWINFO_CIPHER_NONE }, { "TKIP", IWINFO_CIPHER_TKIP }, - { "CCMP", IWINFO_CIPHER_CCMP } + { "CCMP", IWINFO_CIPHER_CCMP }, + { "GCMP", IWINFO_CIPHER_GCMP } }; -static void parse_wpa_ciphers(const char *str, uint8_t *ciphers) +static void parse_wpa_ciphers(const char *str, uint16_t *ciphers) { int i; size_t l; -- cgit v1.2.1