[wireless-regdb] 19/38: regulatory: fix world regdomain

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sun Dec 4 23:56:09 UTC 2016


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository wireless-regdb.

commit 6f99d7b1f10cf70c597a2a1b5117f279f2b97a6e
Author: Johannes Berg <johannes.berg at intel.com>
Date:   Fri Dec 11 17:45:19 2015 +0100

    regulatory: fix world regdomain
    
    Back in 2012, in commit 6d87df6f9657 ("regdb: allow 40 MHz on world
    roaming channels 12/13") I evidently broke the world regulatory data
    to the point where it was always discarded by the kernel because the
    40 MHz bandwidth doesn't fit into the rule range.
    
    Around the same time, I updated the in-kernel regulatory domain with
    the same mistake, but unlike the userspace data, the in-kernel data
    isn't actually checked for validity.
    
    The end result was that the (inconsequentially invalid) data in the
    kernel was always used because the userspace data was rejected.
    
    Fix this by changing the rule to 20 MHz and adding the AUTO-BW flag.
    It seems that Janusz had made a similar change in commit 5cfc8073ce35
    ("wireless-regdb: set AUTO bandwidth for world regulatory"), but it
    was reverted for unknown reasons a little less than half a year later
    (commit cfa3734b11b2).
    
    The kernel uses very similar invalid rules, but it never checks them
    for validity and just uses them, so HT40- ends up getting enabled on
    these channels. Thus, when the kernel requests the world regdomain
    from userspace, gets the invalid data and rejects it, it falls back
    to using the built-in data which is very similar and not validated.
    
    I've tested this now, and the ruleset is now accepted by the kernel
    and results in the correct data.
    
    This also means that Jouni's 160 MHz fixes were inconsequentialy and
    only the corresponding kernel changes could have been used.
    
    Signed-off-by: Johannes Berg <johannes.berg at intel.com>
    Signed-off-by: Seth Forshee <seth.forshee at canonical.com>
---
 db.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db.txt b/db.txt
index a6eb033..13cc7ad 100644
--- a/db.txt
+++ b/db.txt
@@ -2,7 +2,7 @@
 country 00:
 	(2402 - 2472 @ 40), (20)
 	# Channel 12 - 13.
-	(2457 - 2482 @ 40), (20), NO-IR
+	(2457 - 2482 @ 20), (20), NO-IR, AUTO-BW
 	# Channel 14. Only JP enables this and for 802.11b only
 	(2474 - 2494 @ 20), (20), NO-IR, NO-OFDM
 	# Channel 36 - 48

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/wireless-regdb.git



More information about the Kernel-svn-changes mailing list