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>
This commit is contained in:
parent
40f2844fad
commit
6e67940be5
1 changed files with 2 additions and 3 deletions
|
@ -2274,9 +2274,8 @@ static int nl80211_get_freqlist_cb(struct nl_msg *msg, void *arg)
|
||||||
e->channel = nl80211_freq2channel(e->mhz);
|
e->channel = nl80211_freq2channel(e->mhz);
|
||||||
|
|
||||||
e->restricted = (
|
e->restricted = (
|
||||||
freqs[NL80211_FREQUENCY_ATTR_PASSIVE_SCAN] ||
|
freqs[NL80211_FREQUENCY_ATTR_NO_IR] &&
|
||||||
freqs[NL80211_FREQUENCY_ATTR_NO_IBSS] ||
|
!freqs[NL80211_FREQUENCY_ATTR_RADAR]
|
||||||
freqs[NL80211_FREQUENCY_ATTR_RADAR]
|
|
||||||
) ? 1 : 0;
|
) ? 1 : 0;
|
||||||
|
|
||||||
e++;
|
e++;
|
||||||
|
|
Loading…
Reference in a new issue