summaryrefslogtreecommitdiff
path: root/iwinfo_nl80211.c
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2022-11-20 16:52:42 +0100
committerJo-Philipp Wich <jo@mein.io>2022-12-15 23:51:47 +0100
commitfddc015704ef32c9d656df2b086d76dbaaffd99b (patch)
tree3f6595dddd41194057c6737bd3493c20312815cf /iwinfo_nl80211.c
parent6d50a7cc0be0b1814d74400b457f394b4de4d253 (diff)
downloadiwinfo-fddc015704ef32c9d656df2b086d76dbaaffd99b.tar.gz
nl80211: mark frequencies where HE operation in not allowed
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>
Diffstat (limited to 'iwinfo_nl80211.c')
-rw-r--r--iwinfo_nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c
index 128bb9e..a78343f 100644
--- a/iwinfo_nl80211.c
+++ b/iwinfo_nl80211.c
@@ -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++;