]> asedeno.scripts.mit.edu Git - linux.git/commit
wireless: Require HANDLE_DFS flag to switch channel for non-AP mode
authorBenjamin Berg <benjamin@sipsolutions.net>
Tue, 16 May 2017 09:23:12 +0000 (11:23 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 19 May 2017 11:25:58 +0000 (13:25 +0200)
commit8d9de16f80d35f12198496640c4f09d35fd77715
tree74992d2e7684efa2e0f8a48f4607695f7c14b09a
parentd37d49c2f18fb53c6315b2b0fd7f1fb3d8be57ac
wireless: Require HANDLE_DFS flag to switch channel for non-AP mode

In the case the channel should be switched to one requiring DFS we need
to make sure that userspace will handle radar events when they happen.
For AP mode this is assumed to be the case, as a manager like hostapd
is required. However IBSS and MESH modes can work without further
userspace assistance, so refuse to use DFS channels unless userspace
vouches that it handles DFS.

NOTE: Userspace should have already flagged support earlier during mesh
or IBSS setup. However, this information is not readily accessible
currently.

Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
[sw: style cleanups]
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c