]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: scan: Decode additional WPA3 group ciphers
authorAlex Gavin <alex.gavin@candelatech.com>
Sun, 13 Apr 2025 18:24:55 +0000 (11:24 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Apr 2025 14:40:41 +0000 (16:40 +0200)
These values are taken from the publicly-available WPA3
specification available on the WFA website.

The values also match hostapd keys 'group_cipher'
and 'group_mgmt_cipher'.

Signed-off-by: Alex Gavin <alex.gavin@candelatech.com>
Link: https://patch.msgid.link/20250413182515.10755-3-alex.gavin@candelatech.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
scan.c

diff --git a/scan.c b/scan.c
index b3ddb66eecc7a0cd7c66caf4f0008b493e5205b4..748ead11822364233c29585fd10999c46dfbbdcb 100644 (file)
--- a/scan.c
+++ b/scan.c
@@ -809,6 +809,18 @@ static void print_cipher(const uint8_t *data)
                case 8:
                        printf("GCMP");
                        break;
+               case 9:
+                       printf("GCMP-256");
+                       break;
+               case 11:
+                       printf("BIP-GMAC-128");
+                       break;
+               case 12:
+                       printf("BIP-GMAC-256");
+                       break;
+               case 13:
+                       printf("BIP-CMAC-256");
+                       break;
                default:
                        printf("%.02x-%.02x-%.02x:%d",
                                data[0], data[1] ,data[2], data[3]);