Txpower for 5G on mt7610e limited to 11dbm (way under legal limit)

#1

iw phy shows it's txpower allowed up to 20dbm but It only goes up to 13dbm in openwrt, it's why weaker than same router on local stock firmware. TPlink archer C2 v1

Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2243 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)
        Available Antennas: TX 0x1 RX 0x1
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
        Band 1:
                Capabilities: 0x17e
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No 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-7
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm) (no IR)
                        * 2472 MHz [13] (20.0 dBm) (no IR)
                        * 2484 MHz [14] (20.0 dBm) (no IR)
        Band 2:
                Capabilities: 0x17e
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No 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-7
                VHT Capabilities (0x01800120):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        short GI (80 MHz)
                VHT RX MCS set:
                        1 streams: MCS 0-7
                        2 streams: not supported
                        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-7
                        2 streams: not supported
                        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] (20.0 dBm)
                        * 5200 MHz [40] (20.0 dBm)
                        * 5220 MHz [44] (20.0 dBm)
                        * 5240 MHz [48] (20.0 dBm)
                        * 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
                        * 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
                        * 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
                        * 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
                        * 5500 MHz [100] (20.0 dBm) (no IR, radar detection)
                        * 5520 MHz [104] (20.0 dBm) (no IR, radar detection)
                        * 5540 MHz [108] (20.0 dBm) (no IR, radar detection)
                        * 5560 MHz [112] (20.0 dBm) (no IR, radar detection)
                        * 5580 MHz [116] (20.0 dBm) (no IR, radar detection)
                        * 5600 MHz [120] (20.0 dBm) (no IR, radar detection)
                        * 5620 MHz [124] (20.0 dBm) (no IR, radar detection)
                        * 5640 MHz [128] (20.0 dBm) (no IR, radar detection)
                        * 5660 MHz [132] (20.0 dBm) (no IR, radar detection)
                        * 5680 MHz [136] (20.0 dBm) (no IR, radar detection)
                        * 5700 MHz [140] (20.0 dBm) (no IR, radar detection)
                        * 5745 MHz [149] (20.0 dBm) (no IR)
                        * 5765 MHz [153] (20.0 dBm) (no IR)
                        * 5785 MHz [157] (20.0 dBm) (no IR)
                        * 5805 MHz [161] (20.0 dBm) (no IR)
                        * 5825 MHz [165] (20.0 dBm) (no IR)
        valid interface combinations:
                 * #{ IBSS } <= 1, #{ managed, AP, mesh point } <= 8,
                   total <= 8, #channels <= 1, STA/AP BI must match, radar detec                                                                                                                                                             t widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 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
        Device supports VHT-IBSS.
#2

Same problem here!
I really hope someone can help us.
Also may be worth mentioning that in the system logs I get a error message from hostapd saying " ACS: Survey is missing noise floor" and some more errors.

#3

This is usually down to the drivers available

What do this show
lsmod | grep 802

#4
root@OpenWrt:~# lsmod | grep 802
cfg80211              231808  4 rt2x00lib,mt76x02_lib,mt76,mac80211
compat                  6519  4 rt2800soc,rt2800pci,mac80211,cfg80211
mac80211              452353  8 mt2800lib,mt76x0e,mt76x0_common,rt2x00soc,rt2x00pci,rt2x00lib,mt76x02_lib,mt76

while both say mac80211 on luci, only 5GHz (mt7610e) has low txpower problem.

#5

:+1: i see you already found this:

As i see it, two options:

  1. Wait for improvements in this driver
  2. There might be some other alternate driver available, but thats a long shot. Youd likely have to compile it manually
#6

Actually, I think a found alternative driver: https://github.com/Nossiac/mtk-openwrt-feeds
will try if it works. but doew menuconfig allow not including default drivers?

#7

No theres definitely a way to do it, but i cant remember off the top of my head and the wiki isnt loading for me right now.

Do a search for the articles on how to add a package to openwrt. In your case may need to alter slightly since its a kernel module. Follow the steps and compile it locally . Copy the resulting .ko files over to openwrt. The hard part then will be how to remove the current module(s) eithwr rmmod or modprobe -r modulename , then modprobe your new modules.

Failing that, if the old driver initializing the radios puts in in funny state when it boots, should be a file to blacklist them from being loaded. Last resort would be to compile a custom image and flash it (although others might actually say to just try this first :thinking: )

#8

Hi,

it's really annoying that this topic still continues...

Is anyone able to conclude the situation and why it's not already implemented into the standard-kernel? There are already patch-solutions.

Look here: https://www.kickstarter.com/projects/1327597961/better-support-for-mt7620a-n-in-openwrt-lede

Is anyone able to implement this to our kmod-mt76x0e package oder kmod-mt76?

At the moment I tried MT76x0e devices which is not able to transmit more than 2m without any wall 5GHz. Tested on Archer C20i, Archer C2, Newifi Mini alias Leonvo Y1. I think also the Xiomi MI 3 Router on Openwrt is a mess on 5 GHz. They use also the same MT-Chipset-Mess.

Maybe these are also good addresses to find the needed information for patching: