From: Rafał Miłecki Date: Tue, 15 Aug 2017 08:36:19 +0000 (+0200) Subject: nl80211: store info about freq being not available for some bandwidths X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5638567dc7ab23e4bd04ea6619bc597d4e51a43f;p=oweals%2Fiwinfo.git nl80211: store info about freq being not available for some bandwidths Signed-off-by: Rafał Miłecki Acked-by: Jo-Philipp Wich --- 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++; }