Skip to contentSkip to conversation

iw: S1G: add parsing for 802.11ah scan IE's

PATCH New Gilad Itzkovitch 1 participant 1 message Feb 27, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 iw: S1G: add parsing for 802.11ah scan IE's

From: Gilad Itzkovitch <[email protected]>

In order to support scan display for 802.11ah, this change adds parsing for S1G capabilities, operation, and short beacon interval information elements.

---
 iw.h   |   5 ++
 scan.c | 109 ++++++++++++++++++++++++++++-
 util.c | 218 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 330 insertions(+), 2 deletions(-)
iw.h +5 -0
index e712c59..b15e6ca 100644
@@ -221,6 +221,7 @@ void print_vht_info(__u32 capa, const __u8 *mcs);
 void print_he_capability(const uint8_t *ie, int len);
 void print_he_info(struct nlattr *nl_iftype);
 void print_eht_info(struct nlattr *nl_iftype, int band);
+void print_s1g_capability(const uint8_t *caps);
 
 char *channel_width_name(enum nl80211_chan_width width);
 const char *iftype_name(enum nl80211_iftype iftype);
@@ -256,6 +257,9 @@ int get_cf1(const struct chanmode *chanmode, unsigned long freq);
 
 int parse_random_mac_addr(struct nl_msg *msg, char *addrs);
 
+char *s1g_ss_max_support(__u8 maxss);
+char *s1g_ss_min_support(__u8 minss);
+
 #define SCHED_SCAN_OPTIONS "[interval <in_msecs> | scan_plans [<interval_secs:iterations>*] <interval_secs>] "	\
 	"[delay <in_secs>] [freqs <freq>+] [matches [ssid <ssid>]+]] [active [ssid <ssid>]+|passive] "	\
 	"[randomise[=<addr>/<mask>]] [coloc] [flush]"
@@ -269,6 +273,7 @@ char *hex2bin(const char *hex, char *buf);
 int set_bitrates(struct nl_msg *msg, int argc, char **argv,
 		 enum nl80211_attrs attr);
 
+int calc_s1g_ch_center_freq(__u8 ch_index, __u8 s1g_oper_class);
 
 /* sections */
 DECLARE_SECTION(ap);
scan.c +107 -2

139 lines not on this page · raw message

util.c +218 -0

221 lines not on this page · raw message

base-commit: d6fd2757f7aab638022ffa635e32e21594ec382d

Signature · 1 line
2.25.1