diff mbox

[2/2] cfg80211: regulatory, allow user to set world regdomain

Message ID 1392364441-4640-2-git-send-email-janusz.dziedzic@tieto.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Janusz.Dziedzic@tieto.com Feb. 14, 2014, 7:54 a.m. UTC
Allow to set world regulatory domain in case of user
request (iw reg set 00).

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
---
 net/wireless/reg.c |    3 ---
 1 file changed, 3 deletions(-)

Comments

Johannes Berg Feb. 25, 2014, 3:28 p.m. UTC | #1
On Fri, 2014-02-14 at 08:54 +0100, Janusz Dziedzic wrote:
> Allow to set world regulatory domain in case of user
> request (iw reg set 00).

Applied both, I took the first one for 3.14 still.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index c4c3af1..9e2450b 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -2373,9 +2373,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;