summaryrefslogtreecommitdiff
path: root/net/wireless/chan.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/chan.c')
-rw-r--r--net/wireless/chan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c
index 5497d022fada..a8c6bd03ec35 100644
--- a/net/wireless/chan.c
+++ b/net/wireless/chan.c
@@ -592,7 +592,8 @@ static bool cfg80211_secondary_chans_ok(struct wiphy *wiphy,
for (freq = start_freq; freq <= end_freq; freq += 20) {
c = ieee80211_get_channel(wiphy, freq);
- if (!c || c->flags & prohibited_flags)
+ if (!c || ((c->flags & prohibited_flags) &&
+ !(wiphy->flags & WIPHY_FLAG_DFS_OFFLOAD)))
return false;
}