Skip to contentSkip to conversation

iw: add support to parse UHR capabilities

PATCH New Harshitha Prem 1 participant 1 message Nov 4

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iw: add support to parse UHR capabilities

From: Karthikeyan Kathirvel <[email protected]>

Parse and print the UHR capabilities advertised by the driver according to IEEE P802.11bn/D2.1.

Example output from hwsim:
iw phy0 info
Wiphy phy0
wiphy index: 0
max # scan SSIDs: 255
max scan IEs length: 2095 bytes
...
Band 1:
UHR Iftypes: managed, P2P-client
UHR MAC Capabilities (0x100400000000):
NPCA Supported
DBE Supported
UHR PHY Capabilities (0x4000000000):
ELR Tx Supported
...

UHR Iftypes: AP, P2P-GO
UHR MAC Capabilities (0x100400000000):
NPCA Supported
DBE Supported
UHR PHY Capabilities (0xc000000000):
ELR Tx Supported
ELR Rx Supported
...

UHR Iftypes: mesh point
UHR MAC Capabilities (0x100000000000):
NPCA Supported
UHR PHY Capabilities (0xc000000000):
ELR Tx Supported
ELR Rx Supported

---
 info.c |   1 +
 iw.h   |   1 +
 util.c | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 139 insertions(+)
info.c +1 -0
index 1d123a2..6a9a436 100644
@@ -475,6 +475,7 @@ static int print_phy_handler(struct nl_msg *msg, void *arg)
 						    rem_band) {
 					print_he_info(nl_iftype);
 					print_eht_info(nl_iftype, last_band);
+					print_uhr_info(nl_iftype);
 				}
 			}
 			if (tb_band[NL80211_BAND_ATTR_FREQS]) {
iw.h +1 -0
index 01ef365..93d4ea9 100644
@@ -250,6 +250,7 @@ void print_eht_capability(const uint8_t *ie, int len, const uint8_t *he_cap,
 void print_multi_link(const uint8_t *ie, int len);
 void print_eht_operation(const uint8_t *ie, int len);
 void print_eht_info(struct nlattr *nl_iftype, int band);
+void print_uhr_info(struct nlattr *nl_iftype);
 void print_s1g_capability(const uint8_t *caps);
 
 char *channel_width_name(enum nl80211_chan_width width);
util.c +137 -0

143 lines not on this page · raw message

base-commit: e86c54660e67af2382cb15ee21fa756cf5206c4e

Signature · 1 line
2.34.1