]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cfg80211: allow usermode to query wiphy specific regdom
authorArik Nemtsov <arik@wizery.com>
Mon, 15 Dec 2014 17:25:59 +0000 (19:25 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 17 Dec 2014 10:49:55 +0000 (11:49 +0100)
commitad30ca2c03cecfb1b0749874bdceead269542de6
tree72f6782278fd458c5d57b38123c2c8e74ec51eab
parent2ae70efcea7a695a62bb47170d3fb16674b8dbea
cfg80211: allow usermode to query wiphy specific regdom

If a wiphy-idx is specified, the kernel will return the wiphy specific
regdomain, if such exists. Otherwise return the global regdom.

When no wiphy-idx is specified, return the global regdomain as well as
all wiphy-specific regulatory domains in the system, via a new nested
list of attributes.

Add a new attribute for each wiphy-specific regdomain, for usermode to
identify it as such.

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