svpcom / rtl8812au

Patched rtl88xxau drivers for wfb-ng
https://github.com/svpcom/wfb-ng
GNU General Public License v2.0
103 stars 64 forks source link

add ability to override TX power index dynamically #32

Closed tpwrules closed 8 months ago

tpwrules commented 8 months ago

Index N (1-63) can be set using a fixed power to iw of -N*100.

e.g. index 45: iw dev <interface> set txpower fixed -4500

The current override index, if any, is displayed as a negative number by iw dev <interface> info. To disable the override, use a non-negative power value.

The TX power index override can still be set on load by using the module parameter rtw_tx_pwr_idx_override, but changing it through sysfs is (still) ineffective.

Tested on AWUS036ACH with a spectrum analyzer connected to the output.

svpcom commented 8 months ago

Thanks!