diff options
author | Arik Nemtsov <arik@wizery.com> | 2014-12-15 19:25:59 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-12-17 11:49:55 +0100 |
commit | ad30ca2c03cecfb1b0749874bdceead269542de6 (patch) | |
tree | 72f6782278fd458c5d57b38123c2c8e74ec51eab /net/wireless/reg.c | |
parent | 2ae70efcea7a695a62bb47170d3fb16674b8dbea (diff) | |
download | linux-ad30ca2c03cecfb1b0749874bdceead269542de6.tar.gz linux-ad30ca2c03cecfb1b0749874bdceead269542de6.tar.bz2 linux-ad30ca2c03cecfb1b0749874bdceead269542de6.zip |
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>
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r-- | net/wireless/reg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index d83480b6efde..2d9760084b74 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -142,7 +142,7 @@ static const struct ieee80211_regdomain *get_cfg80211_regdom(void) return rtnl_dereference(cfg80211_regdomain); } -static const struct ieee80211_regdomain *get_wiphy_regdom(struct wiphy *wiphy) +const struct ieee80211_regdomain *get_wiphy_regdom(struct wiphy *wiphy) { return rtnl_dereference(wiphy->regd); } |