diff options
author | Ilan Peer <ilan.peer@intel.com> | 2014-02-23 09:13:03 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-04-09 10:55:37 +0200 |
commit | c8866e55a94fb02b83b13f289e5e470fc928703a (patch) | |
tree | ac49e6b637f9b24dab338b3067f1aaf6fc2ce0e1 /net/wireless/reg.c | |
parent | 52616f2b446eaad8eb2cd78bbd052f0066069757 (diff) | |
download | lwn-c8866e55a94fb02b83b13f289e5e470fc928703a.tar.gz lwn-c8866e55a94fb02b83b13f289e5e470fc928703a.zip |
cfg80211: Enable GO operation on indoor channels
Allow GO operation on a channel marked with IEEE80211_CHAN_INDOOR_ONLY
iff there is a user hint indicating that the platform is operating in
an indoor environment, i.e., the platform is a printer or media center
device.
Signed-off-by: Ilan Peer <ilan.peer@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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 55d68c31ad72..bf3b0938891d 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2701,6 +2701,11 @@ int cfg80211_get_unii(int freq) return -EINVAL; } +bool regulatory_indoor_allowed(void) +{ + return reg_is_indoor; +} + int __init regulatory_init(void) { int err = 0; |