cfg80211: regulatory: allow user to set world regdomain
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Fri, 14 Feb 2014 07:54:01 +0000 (08:54 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 25 Feb 2014 15:27:45 +0000 (16:27 +0100)
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>
net/wireless/reg.c

index c9844d2643123d3e9edfcd3c62e63163d7c1cba1..651404c22de971b26bd831aa6bd85212423efc32 100644 (file)
@@ -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;