]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: avoid intersection when applying self-managed reg
authorArik Nemtsov <arik@wizery.com>
Mon, 15 Dec 2014 17:26:02 +0000 (19:26 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 17 Dec 2014 10:49:55 +0000 (11:49 +0100)
commitd45150db6c451913a46e74178e514fbdf7a37907
tree6d52011ec10a6891b45886df8e00983d75a773cd
parent7b14968fe66805222742da740cc6129800bf6ebe
cfg80211: avoid intersection when applying self-managed reg

The custom-reg handling function can currently only add flags to a given
channel. This results in stale flags being left applied. In some cases
a channel was disabled and even the orig_flags were changed to reflect
this.

Previously the API was designed for a single invocation before wiphy
registration, so this didn't matter. The previous approach doesn't scale
well to self-managed regulatory devices, particularly when a more
permissive regdom is applied after a restrictive one.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c