diff options
author | Travis Kemen <thepeople@openwrt.org> | 2008-12-03 21:34:04 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2008-12-03 21:34:04 +0000 |
commit | 77d33295884098a0fb4c2d580e97f3ff8227d6db (patch) | |
tree | ba7d8c7de447c33db591a0f059f4f0b91159f158 /package/madwifi/files/lib | |
parent | 355a67401b24ea290f43128e288f7c7ba51aa377 (diff) | |
download | upstream-77d33295884098a0fb4c2d580e97f3ff8227d6db.tar.gz upstream-77d33295884098a0fb4c2d580e97f3ff8227d6db.tar.bz2 upstream-77d33295884098a0fb4c2d580e97f3ff8227d6db.zip |
Move txpower settings after the interface comes up. Thanks alisonken1
SVN-Revision: 13502
Diffstat (limited to 'package/madwifi/files/lib')
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 0ff9292600..638640a962 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -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" ] || { |