WRT1900ACS v2 how to update mwlwifi driver

Ok will do and post the result as I get home :wink:

@harrylwc I have done but I got no difference in iw reg get. Here is a dump of what I did:

root@LEDE:~# cd /sbin
root@LEDE:/sbin# iw reg get
global
country 98: 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
        (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)

phy#1
country FR: 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
        (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)

phy#0
country FR: 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
        (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)
root@LEDE:/sbin# wget http://harry-home.duckdns.org:2799/reghack2/reghack2
Downloading 'http://harry-home.duckdns.org:2799/reghack2/reghack2'
Connecting to 123.202.82.60:2799
Writing to 'reghack2'
reghack2             100% |*******************************| 26867   0:00:00 ETA
Download completed (26867 bytes)
root@LEDE:/sbin# /sbin/reghack2 /lib/modules/*/cfg80211.ko
Patching @ 0x000291e8: core world8(?) regdomain in cfg80211/reg.o (new rule)
Patching @ 0x0002aaec: embedded US regdomain in cfg80211/regdb.o (new rule)
Patching @ 0x00030568: embedded 00 regdomain in cfg80211/regdb.o
root@LEDE:/sbin# iw reg get
global
country 98: 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
        (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)

phy#1
country FR: 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
        (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)

phy#0
country FR: 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
        (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)
root@LEDE:/sbin# cd
root@LEDE:~# reboot

How can I check if reghack2 is working please as the signals are still weak, SSIDs in this analyzer screenshot are Lumen WiFi 2.4g and Lumen WiFi 5g

At least u can set max. dbm to 30 right?

@harrylwc no only 27dbm is maximum same as before. See screenshot

@harrylwc and 20dBM on the 2.4g

Maybe this patch only work on of router which have 'US' region code in eepom

https://wiki.openwrt.org/doc/howto/wireless.utilities

if i set country code to US(2.4 & 5 ghz) and region code to US by command 'iw reg set US' ,
after reboot I got this

root@WRT1200AC:~# iw reg get
global
country US: DFS-UNSET
(2400 - 2483 @ 40), (N/A, 30), (N/A)
(5140 - 5860 @ 160), (N/A, 30), (N/A)

phy#1
country US: DFS-UNSET
(2400 - 2483 @ 40), (N/A, 30), (N/A)
(5140 - 5860 @ 160), (N/A, 30), (N/A)

phy#0
country US: DFS-UNSET
(2400 - 2483 @ 40), (N/A, 30), (N/A)
(5140 - 5860 @ 160), (N/A, 30), (N/A)

I don't know what your txpower is, but i keep mine at 18-20 on my wrt1200, i find anything higher actually hurts signal instead of improve it in my environment.

1 Like

I have sent an email to Linksys to see into the very weak signal. I am doubting the antennas... an airport extreme gen 1 placed in the same location as the WRT1900ACS v2 out performs the signal strength of the 1900ACS.

@fab only the US and 00 World are patched with the suggested patch.
So after you applied the patch you should change the region to US or 00 to see if that has the effect on the dBm.

@harrylwc this patch seems to be mwlwifi, did your build it yourself?
I'm looking for a patch for ar71xx (mips) because the CC one from the following page doesn't seem to apply anymore it gives me the following error:
pkg_hash_fetch_best_installation_candidate: Packages for reghack2 found, but incompatible with the architectures configured

Source: https://forum.openwrt.org/viewtopic.php?id=63565

Thanks in advance.

@harrylwc never mind I figured it out, extracting the program from the ipk in the article I send earlier did the job.

Hey Harry,

I also applied your patch on my wrt1900acs v2 (LEDE). The patch worked fine, however it is impossible to change the region of the wifi card. iw reg get will always return "country FR: DFS-ETSI", no matter what I set in the wireless config or with iw reg set.
So while your patch was successfully applied, I can't use it because the country code is always read from the eeprom or somewhere.

Could you kindly provide a version of your patch which patches the FR country? Or could you point me in the right direction so that I can do it myself? Thank you in any case!

Hi just wonder if this driver works in wrt1900acs v1, any one have tried? Thanks!

reghack source code can be found here http://luci.subsignal.org/~jow/reghack/
I don't know how to modify source code,maybe need to change source code from US (.reg = REG_MATCH("US"........) to FR.
It work perfectly on openwrt CC version without any restriction.(ie:DFS/channel 12-13/wifi power).

Thank you! While I think your approach is the right one, I have no idea how I would even start to compile the patch for my platform :frowning:
I'll try to ask in a new thread to see if someone has created such a patch.

@Kaisen the updated source can be found on the following website since it has been updated last year for the latest Chaos Calmer and Designated Driver builds of OpenWRT:
https://forum.openwrt.org/viewtopic.php?id=63565

1 Like

Thank you for the link, that's a starting point!
Now I just have to learn how to compile for my platform and make the correct modifications in the reghack source. The work just never ends :wink:

The reghack2 file works great (disables radar detection, enables channels 12 and 13, raises maximum transmit power to 30dBm on all channels)...if you have a WRT1200AC V1, WRT1900AC V1 or V2, or a WRT1900ACS V1.

It will NOT work if you have a WRT1200AC V2, WRT1900ACS V2 or WRT3200ACM becuase these units read the power table from the eeprom and cannot be hacked.

In all other ways, WRT1200AC V1 and V2 (caimen) are identical, and so are WRT1900ACS V1 and V2 (shelby) and even use the same firmware.

It's what I've come to suspect as well, so thanks for the confirmation. It's really sad that I basically bought a device intentionally limited in its functionality.

Just to clarify: there is absolutely no way to overwrite these limitations in software with the 1900ACSv2, correct?

No. On the 1200AC V2, 1900ACS V2, and 3200 ACM, the power tables are purposely written to eeprom inside the router, and so they will just ignore the power tables in the drivers for the WiFI radios. This was definitely done to make the FCC happy -- whether the FCC forced Linksys to do it, I'm not sure.