Skip to content

# Free REGDOMAIN

ValCher1961 edited this page Sep 24, 2017 · 5 revisions

Currently, all Linksys routers, after the release of the 06.2016 year, are programmed for use in a specific regulatory domain without the possibility of changing the region. That is, if you try to change the region for some reason, you will not be able to do so. In general, the reasons for changing the region may vary, for example, if you have moved from America to Europe or vice versa, or bought a router that is not appropriate for your region. Using such a device in a non-region, you will violate the established rules of your host region. Thus, using the European version of the router in the American region, your router will broadcast 12 and 13 channels of range 2, 4 GHz, which would violate the FCC standards and, using the American version in Europe, violate the norms of ETSI.

There's been a lot of talk about this in the forums, but because the driver refused to change the regulatory domain as much as possible, everything stays the same.

To solve this problem, there is a small mwlwifi driver patch that is applied during the kernel module compilation phase.

To do this, you need to:

  • In the kernel configuration file, enable CRDA support.
CONFIG_CFG80211_INTERNAL_REGDB=y
CONFIG_CFG80211_CRDA_SUPPORT=y
  • Place the database db.txt assembly of a kernel net/wireless/db.txt.

  • Install patch.regfree on mwlwifi driver.

  • Compile the kernel and modules and sew the router.

  • Also in Debian, the packets of wireless-regdb and iw and the region (country) in /etc/default/crda (e.g. REGDOMAIN=DE) must be installed.

In the end, we'll get the next result.

root@wrt3200acm:/# cat /sys/kernel/debug/ieee80211/phy0/mwlwifi/info

driver name: mwlwifi
chip type: 88W8964
hw version: 7
driver version: 10.3.4.0-20170810
firmware version: 0x09030007
power table loaded from dts: yes
firmware region code: 0x0
mac address: 60:38:55:44:33:22
2g: disable
5g: enable
antenna: 4 4
irq number: 49
ap macid support: 0000ffff
sta macid support: 00010000
macid used: 00000001
radio: enable
iobase0: e1200000
iobase1: e1480000
tx limit: 1024
rx limit: 16384

root@wrt3200acm:~# iw reg set DE
root@wrt3200acm:~# iw reg get
global
country DE: DFS-ETSI
        (2400 - 2483 @ 40), (N/A, 20), (N/A)
        (5150 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR, AUTO-BW
        (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
        (5470 - 5725 @ 160), (N/A, 27), (0 ms), DFS
        (5725 - 5875 @ 80), (N/A, 14), (N/A)
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)

root@wrt3200acm:~# iw reg set JP
root@wrt3200acm:~# iw reg get
global
country JP: DFS-JP
        (2402 - 2482 @ 40), (N/A, 20), (N/A)
        (2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM
        (4910 - 4990 @ 40), (N/A, 23), (N/A)
        (5030 - 5090 @ 40), (N/A, 23), (N/A)
        (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
        (5490 - 5710 @ 160), (N/A, 23), (0 ms), DFS
        (59000 - 66000 @ 2160), (N/A, 10), (N/A)

root@wrt3200acm:~# iw reg set US
root@wrt3200acm:~# iw reg get
global
country US: DFS-FCC
        (2402 - 2472 @ 40), (N/A, 30), (N/A)
        (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
        (5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
        (5735 - 5835 @ 80), (N/A, 30), (N/A)
        (57240 - 63720 @ 2160), (N/A, 40), (N/A)

root@wrt3200acm:~# iw reg set RU
root@wrt3200acm:~# iw reg get
global
country RU: DFS-ETSI
        (2402 - 2482 @ 40), (N/A, 20), (N/A)
        (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
        (5650 - 5730 @ 80), (N/A, 30), (0 ms), DFS
        (5735 - 5835 @ 80), (N/A, 30), (N/A)
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)

root@wrt3200acm:~#
Clone this wiki locally