First of all, thank you so much for making OpenWRT available for TP-Link Archer A7 v5. Everything is working good in version 21.02.1 including SQM over PPPoE WAN interface. The only issue I have is the 2.4 GHz WiFi range seems to be low for this device. Country is "India". Below is my /etc/config/wireless:
I have tried Channel 1, 6, 11 but the TXPOWER always seems to be set only to 17 dBm (as shown in LuCI) although India allows upto Max 20 dBm.
For comparison, I have a TP-Link TD-W9970 v4 (VDSL2 Modem Router combo) device running OEM firmware (no OpenWRT available for that device) that has better 2.4 GHz WiFi range than the Archer A7 running OpenWRT. The ISP provided ONT device (re-badged https://www.gpononu.com/dual-mode-onu/xpon-hg323rwf858464def80de3769691395.html ) also has better 2.4 GHz WiFi range compared to the Archer A7.
How do I make sure the 2.4 GHz TXPOWER is set to 20 dBm?
Would you please share the output from the command iw phy phy0 channels? This should list the maximum power for all 2.4GHz channels provided by the Wifi driver.
You are right. Changing the country code to 'US' for the 2.4 GHz radio allows full 20 dBm TXPOWER. Looks like for 'US' the max allowed TXPOWER is 24 dBm which is higher than 20 dBm allowed for 'IN'. So I restricted the max txpower using 'option txpower' in the config and that seems to work.
Hi Felix @nbd , from what I understand you wrote the ath9k driver. Can you please tell me why the TP-Link Archer A7 v5 is limiting its TXPOWER to 17 dBm rather than max allowed 20 dBm (for Country: India). I tried web searching for answers but couldn't find any. Can you please point me to any document that explains why the TXPOWER is restricted?
I am not seeing similar behavior from a Belkin RT3200 (currently running 22.03-SNAPSHOT) in a different location but in the same city and ISP. The mt76 driver in RT3200 is providing TXPOWER of 20 dBm.
Below is the /etc/config/wireless from the TP-Link Archer A7 v5:
This might be because of limits included in the radio's configuration settings (which might be configured incorrectly). These settings are usually included in a separate mtd partition (e.g. often names "art", "caldata" or similar).
Also there may be an adjustment for the antenna gain (e.g. if your regulations state that you need to have max 20dBm EIRP, and you have a 3dbi gain antenna, then you would need to set the txpower to 17dBm). I'm not sure how the regulatory db actually handles this - because as far as I understand it, some countries specify their max tx power in absolute terms (i.e. "you can transmit at 300mW into any antenna", and some specify it as maximum EIRP (i.e. maximum directional antenna gain is counted into the limit like the 17dBm into a 3dBi antenna = 20dBm EIRP example).