Opened 2 years ago
Last modified 2 years ago
#21734 new defect
mt76x2 (mqmaker witi board) can't set txpower higher than 14
Reported by: | cfilipescu | Owned by: | developers |
---|---|---|---|
Priority: | normal | Milestone: | Designated Driver (Trunk) |
Component: | packages | Version: | Trunk |
Keywords: | Cc: |
Description
when I read the iw info for both wireless lans I see txpower 14 even if I set it higher. in the wireless config file I set both to values higher than 14.
I am using witi snapshot from Jan-27.
https://downloads.openwrt.org/snapshots/trunk/ramips/mt7621/
# iw dev wlan0 info
Interface wlan0
ifindex 11
wdev 0x3
type AP
wiphy 0
channel 44 (5220 MHz), width: 80 MHz, center1: 5210 MHz
txpower 14.00 dBm
# iw dev wlan1 info
Interface wlan1
ifindex 10
wdev 0x100000003
type AP
wiphy 1
channel 11 (2462 MHz), width: 40 MHz, center1: 2452 MHz
txpower 14.00 dBm
/etc/config/wireless
config wifi-device 'radio1'
option type 'mac80211'
option path 'pci0000:00/0000:00:01.0/0000:02:00.0'
option txpower '22'
option hwmode '11g'
option country 'CA'
option channel '11'
option htmode 'HT40'
config wifi-device 'radio0'
option type 'mac80211'
option path 'pci0000:00/0000:00:00.0/0000:01:00.0'
option txpower '17'
option htmode 'VHT80'
option country 'CA'
option hwmode '11a'
option channel '44'
Attachments (1)
Change History (11)
comment:1 Changed 2 years ago by anonymous
comment:2 Changed 2 years ago by anonymous
comment:3 Changed 2 years ago by cfilipescu
I have attached the partition copy, however I have a few question:
What is the difference between /dev/mtd2 and /dev/mtdblock2?
Also does the driver just read the existing values in the registers and just programs new values when settings are changed by the user? If that is the case can I manually write the registers to play around with the settings?
The values in the /etc/config/wireless file get converted to register values that are written to the EEPROM?
Thank you,
Cristian
comment:4 Changed 2 years ago by anonymous
not exactly. the values from EEPROM are being read by the driver.
try build an image with the revert posted, it seems to be the issue as you can read here: https://dev.openwrt.org/ticket/20343#comment:7
comment:5 Changed 2 years ago by cfilipescu
How would I revert the change, I can't seem to find the file in the build tree?
comment:6 Changed 2 years ago by anonymous
look for the modified content in the file: /openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.12/linux-ramips_mt7620/mt76-2016-01-28/mt76x2_main.c
comment:7 Changed 2 years ago by cfilipescu
It seems there is another problem, I can't boot the image when I build the image myself using Mqmaker Witi profile. Should I file another ticket for that?
The snapshots work but they build different packages.
comment:8 Changed 2 years ago by cfilipescu
I figure out why trunk wasn't booting (had to remove kmod-sdhci-mt7620 and kmod-mmc).
I reverted the change you pointed out and txpower is reported correctly, however the performance is lower than before on 5Ghz.
comment:9 Changed 2 years ago by anonymous
performance or signal strength? because on xiaomi mini performance is same but signal strength is a bit weaker. to test performance use iperf package. what is the status of wlan1 interface?
comment:10 Changed 2 years ago by cfilipescu
Performance is worse, I tested with iperf3 before (trunk) and after (changelist reverted).
I reverted to trunk (latest changelist) for the time being.
can you post here your mtd2 partition copy? (you can delete MAC addresses from it if you wish)