cfg80211: leave invalid channels on regdomain change
authorArik Nemtsov <arik@wizery.com>
Thu, 27 Nov 2014 07:44:55 +0000 (09:44 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 28 Nov 2014 13:33:41 +0000 (14:33 +0100)
commitad932f046fbe9839479350e7b88082a7d1dea498
treebde027962f8f061558db060102872d7de0435adf
parent336004e29115e47253f7e7d007df9e1f9e73dcdd
cfg80211: leave invalid channels on regdomain change

When the regulatory settings change, some channels might become invalid.
Disconnect interfaces acting on these channels, after giving userspace
code a grace period to leave them.

This mode is currently opt-in, and not all interface operating modes are
supported for regulatory-enforcement checks. A wiphy that wishes to use
the new enforcement code must specify an appropriate regulatory flag,
and all its supported interface modes must be supported by the checking
code.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Luis R. Rodriguez <mcgrof@suse.com>
[fix some indentation, typos]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/regulatory.h
net/wireless/core.c
net/wireless/reg.c