]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/wireless/reg.c
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)
commitdb8dfee57d37d2cd14a750477babbae52b69a494
tree6d52011ec10a6891b45886df8e00983d75a773cd
parent1bdd716cbccabc8127fbbaaa663c3090302ef78b
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