]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: add more extended capa bits
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 23 Aug 2023 10:10:02 +0000 (13:10 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 24 Aug 2023 07:15:51 +0000 (09:15 +0200)
Those were missing

While at it, fix a bug in the default case, we want to print the actual
bit offset which is bit + base.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
scan.c

diff --git a/scan.c b/scan.c
index 747922018b04d2d500f8dc1d74f6387e3591e9c5..faf406d237de428c69e9738c7c8f4d4417b003da 100644 (file)
--- a/scan.c
+++ b/scan.c
@@ -1445,8 +1445,12 @@ static void print_capabilities(const uint8_t type, uint8_t len,
                        CAPA(72, "Reserved");
                        CAPA(73, "Extended Spectrum Management Capable");
                        CAPA(74, "Reserved");
+                       CAPA(77, "TWT Requester Support");
+                       CAPA(78, "TWT Responder Support");
+                       CAPA(79, "OBSS Narrow Bandwith RU in UL OFDMA Tolerance Support");
+
                        default:
-                               printf(" %d", bit);
+                               printf(" %d", bit + base);
                                break;
                        }
 #undef ADD_BIT_VAL