summaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorBenjamin Berg2017-05-16 11:23:13 +0200
committerJohannes Berg2017-05-19 13:26:05 +0200
commit0ab2e55d33346972297972dd6bb4623159a1b239 (patch)
tree8e8c3aba76b625bff9f61a590f95ca15632a51b8 /net/mac80211/cfg.c
parentwireless: Require HANDLE_DFS flag to switch channel for non-AP mode (diff)
downloadkernel-qcow2-linux-0ab2e55d33346972297972dd6bb4623159a1b239.tar.gz
kernel-qcow2-linux-0ab2e55d33346972297972dd6bb4623159a1b239.tar.xz
kernel-qcow2-linux-0ab2e55d33346972297972dd6bb4623159a1b239.zip
mac80211: mesh: Allow following CSA to DFS channels if userspace handles it
If userspace has flagged support for DFS earlier, then we can follow CSA to DFS channels. So instead of rejecting the switch, allow it to happen if the flag has been set during mesh setup. Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 6c2e6060cd54..6980a936a437 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1874,6 +1874,7 @@ static int copy_mesh_setup(struct ieee80211_if_mesh *ifmsh,
ifmsh->user_mpm = setup->user_mpm;
ifmsh->mesh_auth_id = setup->auth_id;
ifmsh->security = IEEE80211_MESH_SEC_NONE;
+ ifmsh->userspace_handles_dfs = setup->userspace_handles_dfs;
if (setup->is_authenticated)
ifmsh->security |= IEEE80211_MESH_SEC_AUTHED;
if (setup->is_secure)