iwinfo: add support for 802.11ad and GCMP
authorDaniel Golle <daniel@makrotopia.org>
Tue, 5 Jan 2021 14:40:42 +0000 (14:40 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 5 Jan 2021 19:09:17 +0000 (19:09 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
iwinfo.c

index c723fbcb979b89874c62f5a70a82dec88e01bb12..4133dc46ed14de733f4b66db0b5bc0a22f55a260 100644 (file)
--- a/iwinfo.c
+++ b/iwinfo.c
@@ -199,6 +199,9 @@ rpc_iwinfo_add_encryption(const char *name, struct iwinfo_crypto_entry *e)
                if (ciph & IWINFO_CIPHER_CCMP)
                        blobmsg_add_string(&buf, NULL, "ccmp");
 
+               if (ciph & IWINFO_CIPHER_GCMP)
+                       blobmsg_add_string(&buf, NULL, "gcmp");
+
                if (ciph & IWINFO_CIPHER_WRAP)
                        blobmsg_add_string(&buf, NULL, "wrap");
 
@@ -271,6 +274,9 @@ rpc_iwinfo_call_hwmodes(const char *name)
        {
                c = blobmsg_open_array(&buf, name);
 
+               if (modes & IWINFO_80211_AD)
+                       blobmsg_add_string(&buf, NULL, "ad");
+
                if (modes & IWINFO_80211_AC)
                        blobmsg_add_string(&buf, NULL, "ac");