From 5638567dc7ab23e4bd04ea6619bc597d4e51a43f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Tue, 15 Aug 2017 10:36:19 +0200 Subject: [PATCH] nl80211: store info about freq being not available for some bandwidths MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki Acked-by: Jo-Philipp Wich --- iwinfo_nl80211.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 0f9800b..6bc1318 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -2401,6 +2401,19 @@ static int nl80211_get_freqlist_cb(struct nl_msg *msg, void *arg) !freqs[NL80211_FREQUENCY_ATTR_RADAR] ) ? 1 : 0; + if (freqs[NL80211_FREQUENCY_ATTR_NO_HT40_MINUS]) + e->flags |= IWINFO_FREQ_NO_HT40MINUS; + if (freqs[NL80211_FREQUENCY_ATTR_NO_HT40_PLUS]) + e->flags |= IWINFO_FREQ_NO_HT40PLUS; + if (freqs[NL80211_FREQUENCY_ATTR_NO_80MHZ]) + e->flags |= IWINFO_FREQ_NO_80MHZ; + if (freqs[NL80211_FREQUENCY_ATTR_NO_160MHZ]) + e->flags |= IWINFO_FREQ_NO_160MHZ; + if (freqs[NL80211_FREQUENCY_ATTR_NO_20MHZ]) + e->flags |= IWINFO_FREQ_NO_20MHZ; + if (freqs[NL80211_FREQUENCY_ATTR_NO_10MHZ]) + e->flags |= IWINFO_FREQ_NO_10MHZ; + e++; arr->count++; } -- 2.25.1