kaloz / mwlwifi

mac80211 driver for the Marvell 88W8864 802.11ac chip
395 stars 119 forks source link

WRT3200ACM-EU new driver power table discrepancy #151

Open inteliboy opened 7 years ago

inteliboy commented 7 years ago

With LEDE and latest mwlwifi driver on WRT3200ACM-EU version the power table and available channels are different from the latest Linksys stock software. It would either suggest that the power table can be manipulated despite being fixed in EEPROM or that there is some issue with the new driver.

LEDE:

root@rango:~# cat /sys/kernel/debug/ieee80211/phy0/mwlwifi/device_pwrtbl

power table loaded from dts: no
firmware region code: 0x30
number of channel: 33
  1 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
  2 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
  3 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
  4 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
  5 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
  6 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
  7 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
  8 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
  9 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
 10 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
 11 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
 12 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
 13 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
 14 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
 36 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
 40 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
 44 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
 48 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   0  15   0
 52 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
 56 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
 60 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
 64 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
100 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
104 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
108 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
112 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
116 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
120 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
124 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
128 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
132 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
136 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0
140 252 254   0   2   4   5   6   7   8   9  10  11  12  13  14  15   1  15   0

Linksys 1.0.5.179030 data form sysinfo.cgi diagnostics:

Power table for 2.4GHz
1 0 0x17 0x10 0x10 0x10 0x0F 0x0F 0x0F 0x0F 0x0E 0x0E 0x0E 0x0E 0x00 0x00 0x00 0x00 off 0x00F
2 0 0x18 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x11 0x11 0x11 0x11 0x00 0x00 0x00 0x00 off 0x00F
3 0 0x18 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x11 0x11 0x11 0x11 0x00 0x00 0x00 0x00 off 0x00F
4 0 0x18 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x11 0x11 0x11 0x11 0x00 0x00 0x00 0x00 off 0x00F
5 0 0x18 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x11 0x11 0x11 0x11 0x00 0x00 0x00 0x00 off 0x00F
6 0 0x18 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x11 0x11 0x11 0x11 0x00 0x00 0x00 0x00 off 0x00F
7 0 0x18 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x11 0x11 0x11 0x11 0x00 0x00 0x00 0x00 off 0x00F
8 0 0x18 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x11 0x11 0x11 0x11 0x00 0x00 0x00 0x00 off 0x00F
9 0 0x18 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x11 0x11 0x11 0x11 0x00 0x00 0x00 0x00 off 0x00F
10 0 0x18 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x11 0x11 0x11 0x11 0x00 0x00 0x00 0x00 off 0x00F
11 0 0x17 0x12 0x12 0x12 0x13 0x13 0x13 0x13 0x0F 0x0F 0x0F 0x0F 0x00 0x00 0x00 0x00 off 0x00F
Power table for 5GHz
36 0 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x0F 0x0F 0x0F 0x0F off 0x00F
40 0 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x0F 0x0F 0x0F 0x0F off 0x00F
44 0 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x0F 0x0F 0x0F 0x0F off 0x00F
48 0 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x0F 0x0F 0x0F 0x0F off 0x00F
149 0 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 off 0x00F
153 0 0x16 0x16 0x16 0x16 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 off 0x00F
157 0 0x16 0x16 0x16 0x16 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 off 0x00F
161 0 0x16 0x16 0x16 0x16 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 off 0x00F
165 0 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 off 0x00F
yuhhaurlin commented 7 years ago

For mwlwifi:

  1. It displays raw data of device power table.
  2. The way and the sequence to display power table is different.
yuhhaurlin commented 7 years ago

Maybe I should check it. Thanks.

starcms commented 7 years ago

What's up with this? This is on a WRT1200AC V1. Is this normal? Everything works fine. Driver is with all the very latest commits on @davidc502's latest build

root@WRT1200AC:/sys/kernel/debug/ieee80211/phy0/mwlwifi# cat /sys/kernel/debug/i
eee80211/phy0/mwlwifi/device_pwrtbl

power table loaded from dts: yes
firmware region code: 0x0
number of channel: 0

--------------------------------------------------------------------------

root@WRT1200AC:/sys/kernel/debug/ieee80211/phy0/mwlwifi# iw phy0 info
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2247 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports T-DLS.
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
        Band 2:
                Capabilities: 0x106f
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 4 usec (0x05)
                HT TX/RX MCS rate indexes supported: 0-15, 32
                VHT Capabilities (0x33813930):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        RX LDPC
                        short GI (80 MHz)
                        SU Beamformer
                        SU Beamformee
                        RX antenna pattern consistency
                        TX antenna pattern consistency
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 5180 MHz [36] (23.0 dBm)
                        * 5200 MHz [40] (23.0 dBm)
                        * 5220 MHz [44] (23.0 dBm)
                        * 5240 MHz [48] (23.0 dBm)
                        * 5260 MHz [52] (23.0 dBm) (radar detection)
                        * 5280 MHz [56] (23.0 dBm) (radar detection)
                        * 5300 MHz [60] (23.0 dBm) (radar detection)
                        * 5320 MHz [64] (23.0 dBm) (radar detection)
                        * 5500 MHz [100] (23.0 dBm) (radar detection)
                        * 5520 MHz [104] (23.0 dBm) (radar detection)
                        * 5540 MHz [108] (23.0 dBm) (radar detection)
                        * 5560 MHz [112] (23.0 dBm) (radar detection)
                        * 5580 MHz [116] (23.0 dBm) (radar detection)
                        * 5600 MHz [120] (23.0 dBm) (radar detection)
                        * 5620 MHz [124] (23.0 dBm) (radar detection)
                        * 5640 MHz [128] (23.0 dBm) (radar detection)
                        * 5660 MHz [132] (23.0 dBm) (radar detection)
                        * 5680 MHz [136] (23.0 dBm) (radar detection)
                        * 5700 MHz [140] (23.0 dBm) (radar detection)
                        * 5720 MHz [144] (23.0 dBm) (radar detection)
                        * 5745 MHz [149] (30.0 dBm)
                        * 5765 MHz [153] (30.0 dBm)
                        * 5785 MHz [157] (30.0 dBm)
                        * 5805 MHz [161] (30.0 dBm)
        valid interface combinations:
                 * #{ AP } <= 16, #{ managed } <= 1,
                   total <= 16, #channels <= 1, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz, 160 MHz }

        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
root@WRT1200AC:/sys/kernel/debug/ieee80211/phy0/mwlwifi# iw phy1 info
Wiphy phy1
        max # scan SSIDs: 4
        max scan IEs length: 2242 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports T-DLS.
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
        Band 1:
                Capabilities: 0x106f
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 4 usec (0x05)
                HT TX/RX MCS rate indexes supported: 0-15, 32
                VHT Capabilities (0x33813930):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        RX LDPC
                        short GI (80 MHz)
                        SU Beamformer
                        SU Beamformee
                        RX antenna pattern consistency
                        TX antenna pattern consistency
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 2412 MHz [1] (30.0 dBm)
                        * 2417 MHz [2] (30.0 dBm)
                        * 2422 MHz [3] (30.0 dBm)
                        * 2427 MHz [4] (30.0 dBm)
                        * 2432 MHz [5] (30.0 dBm)
                        * 2437 MHz [6] (30.0 dBm)
                        * 2442 MHz [7] (30.0 dBm)
                        * 2447 MHz [8] (30.0 dBm)
                        * 2452 MHz [9] (30.0 dBm)
                        * 2457 MHz [10] (30.0 dBm)
                        * 2462 MHz [11] (30.0 dBm)
                        * 2467 MHz [12] (disabled)
                        * 2472 MHz [13] (disabled)
                        * 2484 MHz [14] (disabled)
        valid interface combinations:
                 * #{ AP } <= 16, #{ managed } <= 1,
                   total <= 16, #channels <= 1, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz, 160 MHz }

        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing

---------------------------

root@WRT1200AC:/sys/kernel/debug/ieee80211/phy0/mwlwifi# 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)
inteliboy commented 7 years ago

Your WRT1200AC V1 is simply not locked to certain region and power limits and the power table is adjusted via data in DTS file.

starcms commented 7 years ago

@inteliboy Ok, so since my model doesn't have the power table built into the eeprom, it's normal for

cat /sys/kernel/debug/ieee80211/phy0/mwlwifi/device_pwrtbl

to show 0 which I'm guessing it's reading directly from the eeprom? Just curious, where is the DTS file located?

Thanks!!

inteliboy commented 7 years ago

Yes, its fine. No idea where it is in compiled image, I guess it's built into the kernel. In source for example here https://github.com/lede-project/source/tree/master/target/linux/mvebu/files/arch/arm/boot/dts

yuhhaurlin commented 7 years ago

It is only display problem. Device with power table will not be affected by driver for power setting.

inteliboy commented 7 years ago

I still believe there might be a way to influence the power output somehow as while analyzing the stock Linksys fimrware file in a hex-editor i stumbled upon references to such file 'W8964-eeprom.bin' which I am guessing is the firmware file, however I dont know if the power table is encoded in that file or in a physical chip on the PCB. There is also an interesting reference in sysinfo.cgi disgnostic file 'wl0_power_table=/etc/24G_power_table_CE'. Thre seem to be CE, AP, FCC and AU power tables as well. If only I knew how to decompress the image file maybe there would be more to find out.

BrainSlayer commented 7 years ago

@inteliboy use the linux tool binwalk. it can extract almost any image type including the wrt3200acm

BrainSlayer commented 7 years ago

bit it wont help you. the power tables are only made for devices without preprogrammed eeprom. if a preprogrammed eeprom has been found , the wifi hw will ignore any external power table. for sure there is still a possibility to modify the firmware image, but that might be very complicated and also unwanted by marvell or any of the developers here

gufus commented 7 years ago

@inteliboy

Mamba_FCC_v1.2_5G4TX

1 0 0x17 0x11 0x11 0x11 0x10 0x10 0x10 0x10 0x0F 0x0F 0x0F 0x0F 0x00 0x00 0x00 0x00 off 0x00F 2 0 0x17 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 3 0 0x17 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 4 0 0x17 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 5 0 0x17 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 6 0 0x17 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 7 0 0x17 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 8 0 0x17 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 9 0 0x17 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 10 0 0x17 0x16 0x16 0x16 0x16 0x16 0x16 0x14 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 11 0 0x17 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 12 0 0x17 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 13 0 0x17 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 14 0 0x17 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x10 0x10 0x10 0x10 0x00 0x00 0x00 0x00 off 0x00F 36 0 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 off 0x00F 40 0 0x08 0x08 0x08 0x08 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 off 0x00F 44 0 0x08 0x08 0x08 0x08 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 off 0x00F 48 0 0x08 0x08 0x08 0x08 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 off 0x00F 52 0 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 off 0x00F 56 0 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 off 0x00F 60 0 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 off 0x00F 64 0 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 off 0x00F 100 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 104 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 108 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 112 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 116 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 120 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 124 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 128 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 132 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 136 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 140 0 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 0x14 off 0x00F 149 0 0x16 0x16 0x16 0x16 0x14 0x14 0x14 0x14 0x15 0x15 0x15 0x15 0x14 0x14 0x14 0x14 off 0x00F 153 0 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x14 0x14 0x14 0x14 off 0x00F 157 0 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x14 0x14 0x14 0x14 off 0x00F 161 0 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x15 0x14 0x14 0x14 0x14 off 0x00F 165 0 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x16 0x15 0x15 0x15 0x15 0x14 0x14 0x14 0x14 off 0x00F

ValCher1961 commented 6 years ago

That's what is in rootfs wrt32x, this is how I think loadable power tables.

root@wrt32x:/etc/mrvl# ls
129.ini  144.ini  145.ini  16.ini  32.ini  48.ini

For example, the contents of a file 48.ini

[TX_PWR_TBL]
1 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 8 11 on 0xf
2 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 12 on 0xf
3 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 12 on 0xf
4 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 12 on 0xf
5 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 12 on 0xf
6 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 12 on 0xf
7 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 12 on 0xf
8 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 12 on 0xf
9 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 12 on 0xf
10 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 12 on 0xf
11 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 11 on 0xf
12 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 11 on 0xf
13 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22 22 5 5 5 5 5 9 11 on 0xf
14 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 5 5 5 9 11 on 0xf
36 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 14 14 14 5 5 on 0xf
40 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 14 14 14 5 5 on 0xf
44 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 14 14 14 5 5 on 0xf
48 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 14 14 14 5 5 on 0xf
52 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 14 14 14 5 5 on 0xf
56 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 14 14 14 5 5 on 0xf
60 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 14 14 14 5 5 on 0xf
64 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 14 14 14 5 5 on 0xf
100 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf
104 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf
108 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf
112 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf
116 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf
120 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf
124 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf
128 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf
132 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf
136 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf
140 0 -4 -2 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 5 20 20 20 5 5 on 0xf

[RATE_GRPS_CONF]
0 4 0xf 0x0500 0x0600 0x0700 0x0800
1 2 0xf 0x0900 0x0a00
2 2 0xf 0x0b00 0x0c00
3 8 0xf 0x0001 0x0101 0x0201 0x0301 0x0002 0x0102 0x0202 0x0302
4 2 0xf 0x0401 0x0402
5 6 0xf 0x0501 0x0601 0x0701 0x0502 0x0602 0x0702
6 2 0xf 0x0802 0x0902
7 16 0xf 0x0801 0x0901 0x0a01 0x0b01 0x1001 0x1101 0x1201 0x1301 0x4002 0x4102 0x4202 0x4302 0x8002 0x8102 0x8202 0x8302
8 4 0xf 0x0c01 0x1401 0x4402 0x8402
9 12 0xf 0x0d01 0x0e01 0x0f01 0x1501 0x1601 0x1701 0x4502 0x4602 0x4702 0x8502 0x8602 0x8702
10 4 0xf 0x4802 0x4902 0x8802 0x8902
11 18 0xf 0x0005 0x0105 0x0205 0x0305 0x0405 0x0505 0x0605 0x0705 0x0006 0x0106 0x0206 0x0306 0x0406 0x0506 0x0606 0x0706 0x0806 0x0906
12 8 0xf 0x0011 0x0111 0x0211 0x0311 0x0012 0x0112 0x0212 0x0312
13 2 0xf 0x0411 0x0412
14 6 0xf 0x0511 0x0611 0x0711 0x0512 0x0612 0x0712
15 2 0xf 0x0812 0x0912
16 16 0xf 0x0811 0x0911 0x0a11 0x0b11 0x1011 0x1111 0x1211 0x1311 0x4012 0x4112 0x4212 0x4312 0x8012 0x8112 0x8212 0x8312
17 4 0xf 0x0c11 0x1411 0x4412 0x8412
18 12 0xf 0x0d11 0x0e11 0x0f11 0x1511 0x1611 0x1711 0x4512 0x4612 0x4712 0x8512 0x8612 0x8712
19 4 0xf 0x4812 0x4912 0x8812 0x8912
20 18 0xf 0x0015 0x0115 0x0215 0x0315 0x0415 0x0515 0x0615 0x0715 0x0016 0x0116 0x0216 0x0316 0x0416 0x0516 0x0616 0x0716 0x0816 0x0916
21 4 0xf 0x0022 0x0122 0x0222 0x0322
22 1 0xf 0x0422
23 3 0xf 0x0522 0x0622 0x0722
24 2 0xf 0x0822 0x0922
25 8 0xf 0x4022 0x4122 0x4222 0x4322 0x8022 0x8122 0x8222 0x8322
26 2 0xf 0x4422 0x8422
27 6 0xf 0x4522 0x4622 0x4722 0x8522 0x8622 0x8722
28 4 0xf 0x4822 0x4922 0x8822 0x8922
29 10 0xf 0x0026 0x0126 0x0226 0x0326 0x0426 0x0526 0x0626 0x0726 0x0826 0x0926
30 4 0xf 0x0032 0x0132 0x0232 0x0332
31 1 0xf 0x0432
32 3 0xf 0x0532 0x0632 0x0732
33 2 0xf 0x0832 0x0932
34 8 0xf 0x4032 0x4132 0x4232 0x4332 0x8032 0x8132 0x8232 0x8332
35 2 0xf 0x4432 0x8432
36 6 0xf 0x4532 0x4632 0x4732 0x8532 0x8632 0x8732
37 4 0xf 0x4832 0x4932 0x8832 0x8932
38 10 0xf 0x0036 0x0136 0x0236 0x0336 0x0436 0x0536 0x0636 0x0736 0x0836 0x0936

[PWR_PER_RATE_GRPS]
1 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
2 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
3 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
4 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
5 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
6 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
7 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
8 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
9 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
10 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
11 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
12 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
13 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
14 8 8 8 8 8 8 8 11 11 11 11 12 8 8 8 8 11 11 11 11 12 255
36 9 9 9 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 255
40 9 9 9 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 255
44 9 9 9 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 255
48 9 9 9 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 255
52 9 9 9 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 255
56 9 9 9 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 255
60 9 9 9 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 255
64 9 9 9 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 9 9 9 9 13 13 13 13 15 255
100 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255
104 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255
108 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255
112 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255
116 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255
120 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255
124 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255
128 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255
132 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255
136 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255
140 16 16 16 16 16 16 16 19 19 19 19 21 16 16 16 16 19 19 19 19 20 16 16 16 16 19 19 19 19 20 16 16 16 16 21 19 18 16 16 255

Question, in EEPROM router wrt32x not recorded TX-power table or recorded as in WRT3200ACM?

BrainSlayer commented 6 years ago

both are identical and from the things you found here it seems that marvell is not telling the truth at all. it seems that its possible to override the internal power table. i'm just not sure if these ini files are usually just for prototypes and if it works with production models

ValCher1961 commented 6 years ago

I think somewhere there is this point to change the power table, but where it is...

BrainSlayer commented 6 years ago

i found it already. it uses a private driver call. but the wrt32x does not make use of the mwlwifi driver. it uses a propertiäry driver. but the wifi chipset firmware used is the same

ValCher1961 commented 6 years ago

Yes, I also found this entry, but this is not enough, because you said correctly - propertary driver :) I can not understand why Marvell/Linksys does not allow the user to change it within the allowed boundaries, it can only be turned on and off.

lantis1008 commented 6 years ago

Slightly off-topic @BrainSlayer have you got a working dd-wrt build for wrt32x yet? If not, what is the barrier to this?

BrainSlayer commented 6 years ago

i have a working one. its just not yet possible to install it with web. just from commandline. the blocking point is that i was never able to test it on a original device since i dont own one and also got no usefull feedback yet from owners how to deal with it. from the firmware format it doesnt seem to be a problem. without having access to a test device its hard to deal with it

BrainSlayer commented 6 years ago

@ValCher1961 : there is no legal reason for it. they may just handle it with low priority. unlike other vendors they just offer whats needed. who knows what else is possible with it

ValCher1961 commented 6 years ago

@BrainSlayer I think you're right.

In the continuation of the non-main topic. Unlike us, for many users the connection to the serial cable router and the command line does not cause much enthusiasm, they like to access only through the web-interface. I also tried to make OpenWRT / LEDE for wrt32x / wrt3200, but not for flashing in the NAND router, but for downloading from USB-flash. Also I can not check the result, since there is no wrt32x, wrt3200 works.

BrainSlayer commented 6 years ago

the wrt32x is identical to the wrt3200. it just uses a different partition layout and the webif flashing may use a signature check. but commandline flashing works

ValCher1961 commented 6 years ago

That's right, why I tried to assemble Openwrt on USB-Flash, that would not touch the NAND partitions. In this case, you can leave the stok firmware on the router, and start the device from USB2/eSATA.

lantis1008 commented 6 years ago

I have a device and am willing to assist either of you. I would offer to send it to you if I was a little closer.

UI definitely does basic firmware magic check. I produced an image which would pass this, but not boot.

BrainSlayer commented 6 years ago

a remote serial access and web access would be enough. so i'm able todo all the test and see also whats happening on console

ValCher1961 commented 6 years ago

Can we open a new topic or go to an already open profile topic?

lantis1008 commented 6 years ago

Ok. I will organise a serial cable and then remote access. It will take me a week or so.

Yes, is there a better place we can discuss this?

ValCher1961 commented 6 years ago

Probably on DD-WRT, if not against @BrainSlayer.
There's a similar theme.

BrainSlayer commented 6 years ago

best is writing me a email

ghost commented 6 years ago

For those that have used the wrt32x, is using the proprietary driver worth it.

Thanks to the work of Sebastian, we all know the WRT3200ACM and WRT32X are identical just merely a different software/partitioning wrapper plus exterior color.

I personally love both OpenWRT and DD-WRT.

yuhhaurlin commented 6 years ago

I will modify mwlwifi to load power table from DTS later. However, if your device is programmed with device power table, loading of power table will not take effect. This job is tracked via issue #280.

yuhhaurlin commented 6 years ago

The same rule is also applied for WRT32X.

lantis1008 commented 6 years ago

@BrainSlayer I have sent a support message via the contact page on ddwrt

BrainSlayer commented 6 years ago

send me a direct email to s.gottschall@dd-wrt.com everything else will be received by our staff and usually forwarded to me if there any open questions

lantis1008 commented 5 years ago

Hey @BrainSlayer , i'm helping a user at the moment who has a WRT32X which is reporting the following info:

power table loaded from dts: no
firmware region code: 0x30

And when looking at mtd3 it shows EU as the cert region, which doesn't match up against any of the allowed values in the driver (although, 0x30 lines up with FR). How are you handling this in ddwrt? He's saying that its working ok in your firmware but no dfs at all in Openwrt. We've tried no countrycode, FR, EU (invalid), GB, 00 without much success. Radio 2 (mwifiex) isn't involved here and isn't even installed.