mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
Move txpower settings after the interface comes up. Thanks alisonken1
SVN-Revision: 13502
This commit is contained in:
parent
355a67401b
commit
77d3329588
@ -211,9 +211,6 @@ enable_atheros() {
|
||||
config_get distance "$device" distance
|
||||
[ -n "$distance" ] && athctrl -i "$device" -d "$distance" >&-
|
||||
|
||||
config_get txpwr "$vif" txpower
|
||||
[ -n "$txpwr" ] && iwconfig "$ifname" txpower "${txpwr%%.*}"
|
||||
|
||||
config_get rate "$vif" rate
|
||||
[ -n "$rate" ] && iwconfig "$ifname" rate "${rate%%.*}"
|
||||
|
||||
@ -277,6 +274,11 @@ enable_atheros() {
|
||||
esac
|
||||
|
||||
ifconfig "$ifname" up
|
||||
|
||||
# TXPower settings only work if device is up already
|
||||
config_get txpwr "$vif" txpower
|
||||
[ -n "$txpwr" ] && iwconfig "$ifname" txpower "${txpwr%%.*}"
|
||||
|
||||
local net_cfg bridge
|
||||
net_cfg="$(find_net_config "$vif")"
|
||||
[ -z "$net_cfg" ] || {
|
||||
|
Loading…
Reference in New Issue
Block a user