diff options
author | Daniel Golle <daniel@makrotopia.org> | 2021-01-05 14:21:14 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-01-05 22:19:43 +0000 |
commit | 8bfd8d88001e0d239d741c954c2421052b858fc1 (patch) | |
tree | 02dee1e9f9ddfc625e8e6b57c7cf8c73118371b6 /iwinfo_nl80211.c | |
parent | 74d13fb98730a7a8af6e6662d0f4281b6655ddd0 (diff) | |
download | iwinfo-8bfd8d88001e0d239d741c954c2421052b858fc1.tar.gz |
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 <daniel@makrotopia.org>
Diffstat (limited to 'iwinfo_nl80211.c')
-rw-r--r-- | iwinfo_nl80211.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |