nl80211: mark frequencies where HE operation in not allowed
authorAndre Heider <a.heider@gmail.com>
Sun, 20 Nov 2022 15:52:42 +0000 (16:52 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 15 Dec 2022 22:51:47 +0000 (23:51 +0100)
Repurpose the IWINFO_FREQ_NO_2160MHZ define for that, which was
introduced but never used. nl80211 doesn't have such a flag either.

Signed-off-by: Andre Heider <a.heider@gmail.com>
include/iwinfo.h
iwinfo_nl80211.c

index f2d6d3593c2ca40f3fd27f7632d4e98e28349194..2965785767135ab6b82b636f7bc131e17747d367 100644 (file)
@@ -66,7 +66,7 @@
 #define IWINFO_FREQ_NO_HT40MINUS       (1 << 3)
 #define IWINFO_FREQ_NO_80MHZ           (1 << 4)
 #define IWINFO_FREQ_NO_160MHZ          (1 << 5)
-#define IWINFO_FREQ_NO_2160MHZ         (1 << 6)
+#define IWINFO_FREQ_NO_HE              (1 << 6)
 
 extern const char *IWINFO_CIPHER_NAMES[IWINFO_CIPHER_COUNT];
 extern const char *IWINFO_KMGMT_NAMES[IWINFO_KMGMT_COUNT];
index 128bb9e006725dd73712fb294064863d7fedba35..a78343fde43ee93bbe0c427c7bb28c1a04e8a72e 100644 (file)
@@ -3029,6 +3029,8 @@ static int nl80211_get_freqlist_cb(struct nl_msg *msg, void *arg)
                                                e->flags |= IWINFO_FREQ_NO_20MHZ;
                                        if (freqs[NL80211_FREQUENCY_ATTR_NO_10MHZ])
                                                e->flags |= IWINFO_FREQ_NO_10MHZ;
+                                       if (freqs[NL80211_FREQUENCY_ATTR_NO_HE])
+                                               e->flags |= IWINFO_FREQ_NO_HE;
 
                                        e++;
                                        arr->count++;