From: Janusz Dziedzic Date: Fri, 14 Feb 2014 07:54:01 +0000 (+0100) Subject: cfg80211: regulatory: allow user to set world regdomain X-Git-Tag: v4.9.8~6652^2~18^2^2~47^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb5c96368fa306dae0f79d0078d2d4e505278204;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Johannes Berg --- diff --git a/net/wireless/reg.c b/net/wireless/reg.c index c9844d2..651404c 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;