diff options
author | Janusz Dziedzic <janusz.dziedzic@tieto.com> | 2014-02-14 02:54:01 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-02-25 10:27:45 -0500 |
commit | fb5c96368fa306dae0f79d0078d2d4e505278204 (patch) | |
tree | a34c9179ea5ca40902a0d82f15ee1bd40f64a717 /net/wireless | |
parent | 1226d2587065f98dae54c79e14dd329879b896f7 (diff) |
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>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/reg.c | 3 |
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, | |||
2362 | { | 2362 | { |
2363 | const struct ieee80211_regdomain *intersected_rd = NULL; | 2363 | const struct ieee80211_regdomain *intersected_rd = NULL; |
2364 | 2364 | ||
2365 | if (is_world_regdom(rd->alpha2)) | ||
2366 | return -EINVAL; | ||
2367 | |||
2368 | if (!regdom_changes(rd->alpha2)) | 2365 | if (!regdom_changes(rd->alpha2)) |
2369 | return -EALREADY; | 2366 | return -EALREADY; |
2370 | 2367 | ||