rpc-mod-luci: Add support for ccmp-256/gcmp/gcmp-256 ciphers
authorJoerg Werner <schreibubi@gmail.com>
Tue, 16 Aug 2022 14:25:45 +0000 (16:25 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Thu, 25 Aug 2022 12:28:11 +0000 (15:28 +0300)
Signed-off-by: Joerg Werner <schreibubi@gmail.com>
libs/rpcd-mod-luci/src/luci.c

index 131180a750a23eb78d043e075981bd1a16cbc79e..4bef961c350f740dd864ca886b36f40dee96f46f 100644 (file)
@@ -1083,6 +1083,15 @@ static bool rpc_luci_get_iwinfo(struct blob_buf *buf, const char *devname,
                                if (nret & IWINFO_CIPHER_CCMP)
                                        blobmsg_add_string(buf, NULL, "ccmp");
 
+                               if (nret & IWINFO_CIPHER_CCMP256)
+                                       blobmsg_add_string(buf, NULL, "ccmp-256");
+
+                               if (nret & IWINFO_CIPHER_GCMP)
+                                       blobmsg_add_string(buf, NULL, "gcmp");
+
+                               if (nret & IWINFO_CIPHER_GCMP256)
+                                       blobmsg_add_string(buf, NULL, "gcmp-256");
+
                                if (nret & IWINFO_CIPHER_WRAP)
                                        blobmsg_add_string(buf, NULL, "wrap");