I am tryting change the primary channel and bandwidth using UCI.
uci set wireless.radio1.channel='44';uci set wireless.radio1.txpower='20';uci set wireless.radio1.htmode='VHT80';uci commit wireless; wifi reload;
But it ended up in channel 48. And whenever i try to change to channel40 with bandwidth 80, it goes to 36. Can someone help me on this? Thanks in advance.
The center frequencies for the 5 GHz range are strictly enforced by the standard. For instance, any channel selected between 36-48 (VHT80/HE80) will have a center frequency at channel 42.
In the 2.4 GHz bands bonded 40 MHz channels are uniquely named by the primary and secondary 20 MHz channels, e.g. 9+13. In the 5 GHz bands they are denoted by the center of the wider band and the primary 20 MHz channel e.g. 42[40]
Yes, but like I said, it doesn't matter which channel you select between 36-48, they will use the exact same frequency range for VHT80/HE80, so this isn't a problem at all.
But it ended up in channel 48.
Where did you see 48? What are the output of the following commands?
Your observation might depend on your hardware or wireless driver.
I tested on my WRT1900ACS running 23.05.5.
With 80 MHz channel width, I can set the primary channel to 36, 40, 44 or 48. iwinfo reports the primary (master) channel, and always channel 42 as Center Channel.
Luci's Status-Channel Analysis reports the primary channel, and also displays it as shading in the graphical overview.