aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/reg.c
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2014-02-23 02:13:03 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-04-09 04:55:37 -0400
commitc8866e55a94fb02b83b13f289e5e470fc928703a (patch)
treeac49e6b637f9b24dab338b3067f1aaf6fc2ce0e1 /net/wireless/reg.c
parent52616f2b446eaad8eb2cd78bbd052f0066069757 (diff)
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.c5
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)
2701 return -EINVAL; 2701 return -EINVAL;
2702} 2702}
2703 2703
2704bool regulatory_indoor_allowed(void)
2705{
2706 return reg_is_indoor;
2707}
2708
2704int __init regulatory_init(void) 2709int __init regulatory_init(void)
2705{ 2710{
2706 int err = 0; 2711 int err = 0;