summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2014-02-14 08:54:01 +0100
committerJohannes Berg <johannes.berg@intel.com>2014-02-25 16:27:45 +0100
commitfb5c96368fa306dae0f79d0078d2d4e505278204 (patch)
treea34c9179ea5ca40902a0d82f15ee1bd40f64a717
parent1226d2587065f98dae54c79e14dd329879b896f7 (diff)
downloadlinux-stable-fb5c96368fa306dae0f79d0078d2d4e505278204.tar.gz
linux-stable-fb5c96368fa306dae0f79d0078d2d4e505278204.tar.bz2
linux-stable-fb5c96368fa306dae0f79d0078d2d4e505278204.zip
cfg80211: regulatory: allow user to set world regdomain
Allow to set world regulatory domain in case of user request (iw reg set 00). Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/wireless/reg.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index c9844d264312..651404c22de9 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -2362,9 +2362,6 @@ static int reg_set_rd_user(const struct ieee80211_regdomain *rd,
{
const struct ieee80211_regdomain *intersected_rd = NULL;
- if (is_world_regdom(rd->alpha2))
- return -EINVAL;
-
if (!regdom_changes(rd->alpha2))
return -EALREADY;