From: Arik Nemtsov Date: Mon, 15 Dec 2014 17:26:02 +0000 (+0200) Subject: cfg80211: avoid intersection when applying self-managed reg X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~206^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db8dfee57d37d2cd14a750477babbae52b69a494;p=pandora-kernel.git 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 Signed-off-by: Johannes Berg --- Reading git-diff-tree failed