]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/wireless/nl80211.c
cfg80211: return private regdom for self-managed devices
authorArik Nemtsov <arik@wizery.com>
Mon, 15 Dec 2014 17:26:01 +0000 (19:26 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 17 Dec 2014 10:49:55 +0000 (11:49 +0100)
commit1bdd716cbccabc8127fbbaaa663c3090302ef78b
tree6640c2203455f00eae2599976c20d8cf833dd289
parentb0d7aa59592b4270531de5ce65dcf18338a2d98c
cfg80211: return private regdom for self-managed devices

If a device has self-managed regulatory, insist on returning the wiphy
specific regdomain if a wiphy-idx is specified. The global regdomain is
meaningless for such devices.

Also add an attribute for self-managed devices, so usermode can
distinguish them as such.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Luis R. Rodriguez <mcgrof@suse.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h
net/wireless/nl80211.c