mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 09:09:44 +01:00
wifi-scripts: fix setting tx power on some drivers
On some drivers, setting the tx power on the interface is not enough. Set it for the phy as well. Fixes:04fb05914e("wifi-scripts: add multi-radio config support") Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commitb795e5cbcf)
This commit is contained in:
parent
6ba1f831c7
commit
2f60e7f006
1 changed files with 8 additions and 0 deletions
|
|
@ -1203,6 +1203,14 @@ drv_mac80211_setup() {
|
|||
wdev_tool "$phy$phy_suffix" set_config "$(json_dump)" $active_ifnames
|
||||
json_set_namespace "$prev"
|
||||
|
||||
[ -z "$phy_suffix" ] && {
|
||||
if [ -n "$txpower" ]; then
|
||||
iw phy "$phy" set txpower fixed "${txpower%%.*}00"
|
||||
else
|
||||
iw phy "$phy" set txpower auto
|
||||
fi
|
||||
}
|
||||
|
||||
for_each_interface "ap sta adhoc mesh monitor" mac80211_set_vif_txpower
|
||||
wireless_set_up
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue