* [PATCH 1/2] iw: scan: rename OWE Transition parsing function
@ 2026-03-16 5:16 Alex Gavin
2026-03-16 5:16 ` [PATCH 2/2] iw: scan: print RSN Element Override IEs Alex Gavin
0 siblings, 1 reply; 2+ messages in thread
From: Alex Gavin @ 2026-03-16 5:16 UTC (permalink / raw)
To: johannes; +Cc: linux-wireless, Alex Gavin
Signed-off-by: Alex Gavin <a_gavin@icloud.com>
---
scan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scan.c b/scan.c
index facb503..4d3284e 100644
--- a/scan.c
+++ b/scan.c
@@ -2311,7 +2311,7 @@ static inline void print_hs20_ind(const uint8_t type, uint8_t len,
printf("\t\tUnexpected length: %i\n", len);
}
-static void print_wifi_owe_tarns(const uint8_t type, uint8_t len,
+static void print_wifi_owe_trans(const uint8_t type, uint8_t len,
const uint8_t *data,
const struct ie_context *ctx)
{
@@ -2343,7 +2343,7 @@ static const struct ie_print wfa_printers[] = {
[9] = { "P2P", print_p2p, 2, 255, BIT(PRINT_SCAN), },
[16] = { "HotSpot 2.0 Indication", print_hs20_ind, 1, 255, BIT(PRINT_SCAN), },
[18] = { "HotSpot 2.0 OSEN", print_wifi_osen, 1, 255, BIT(PRINT_SCAN), },
- [28] = { "OWE Transition Mode", print_wifi_owe_tarns, 7, 255, BIT(PRINT_SCAN), },
+ [28] = { "OWE Transition Mode", print_wifi_owe_trans, 7, 255, BIT(PRINT_SCAN), },
};
static void print_vendor(unsigned char len, unsigned char *data,
--
2.51.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH 2/2] iw: scan: print RSN Element Override IEs
2026-03-16 5:16 [PATCH 1/2] iw: scan: rename OWE Transition parsing function Alex Gavin
@ 2026-03-16 5:16 ` Alex Gavin
0 siblings, 0 replies; 2+ messages in thread
From: Alex Gavin @ 2026-03-16 5:16 UTC (permalink / raw)
To: johannes; +Cc: linux-wireless, Alex Gavin
Parse body of RSN Element Override IEs as RSN IEs
using existing code.
RSN IEs are a minimum size of 4 octets, as detailed
in IEEE802.11-2024, 9.4.2.23.1
Example output:
RSN Element Override:
* Version: 1
* Group cipher: CCMP
* Pairwise ciphers: CCMP
* Authentication suites: SAE
* Capabilities: 16-PTKSA-RC 1-GTKSA-RC MFP-required MFP-capable (0x00cc)
RSN Element Override 2:
* Version: 1
* Group cipher: CCMP
* Pairwise ciphers: GCMP-256
* Authentication suites: SAE-EXT-KEY
* Capabilities: 16-PTKSA-RC 1-GTKSA-RC MFP-required MFP-capable (0x00cc)
Signed-off-by: Alex Gavin <a_gavin@icloud.com>
---
scan.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/scan.c b/scan.c
index 4d3284e..2b6e904 100644
--- a/scan.c
+++ b/scan.c
@@ -1893,6 +1893,14 @@ static void print_wifi_osen(const uint8_t type, uint8_t len,
print_osen_ie("OSEN", "OSEN", len, data);
}
+static void print_wifi_rsn_override(const uint8_t type, uint8_t len,
+ const uint8_t *data,
+ const struct ie_context *ctx)
+{
+ printf("\n\t");
+ print_rsn_ie("CCMP", "IEEE802.1X", len, data);
+}
+
static bool print_wifi_wmm_param(const uint8_t *data, uint8_t len)
{
int i;
@@ -2344,6 +2352,8 @@ static const struct ie_print wfa_printers[] = {
[16] = { "HotSpot 2.0 Indication", print_hs20_ind, 1, 255, BIT(PRINT_SCAN), },
[18] = { "HotSpot 2.0 OSEN", print_wifi_osen, 1, 255, BIT(PRINT_SCAN), },
[28] = { "OWE Transition Mode", print_wifi_owe_trans, 7, 255, BIT(PRINT_SCAN), },
+ [41] = { "RSN Element Override", print_wifi_rsn_override, 4, 255, BIT(PRINT_SCAN), },
+ [42] = { "RSN Element Override 2", print_wifi_rsn_override, 4, 255, BIT(PRINT_SCAN), },
};
static void print_vendor(unsigned char len, unsigned char *data,
--
2.51.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-16 5:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 5:16 [PATCH 1/2] iw: scan: rename OWE Transition parsing function Alex Gavin
2026-03-16 5:16 ` [PATCH 2/2] iw: scan: print RSN Element Override IEs Alex Gavin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox