diff options
| author | Jo-Philipp Wich | 2015-03-31 11:56:00 +0000 |
|---|---|---|
| committer | Jo-Philipp Wich | 2015-03-31 11:56:03 +0000 |
| commit | 6e67940be59e1aee5d275dd61172b257cb34d726 (patch) | |
| tree | b8b23bc0fdad9cee9e330c129046f555228880de | |
| parent | 40f2844fadc05f4a4de7699dbc12fee295b7057b (diff) | |
| download | iwinfo-6e67940be59e1aee5d275dd61172b257cb34d726.tar.gz | |
nl80211: relax definition of restricted channels
Only mark channels restricted that do not have a radar flag set.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
| -rw-r--r-- | iwinfo_nl80211.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index e090052..2562492 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -2274,9 +2274,8 @@ static int nl80211_get_freqlist_cb(struct nl_msg *msg, void *arg) e->channel = nl80211_freq2channel(e->mhz); e->restricted = ( - freqs[NL80211_FREQUENCY_ATTR_PASSIVE_SCAN] || - freqs[NL80211_FREQUENCY_ATTR_NO_IBSS] || - freqs[NL80211_FREQUENCY_ATTR_RADAR] + freqs[NL80211_FREQUENCY_ATTR_NO_IR] && + !freqs[NL80211_FREQUENCY_ATTR_RADAR] ) ? 1 : 0; e++; |