mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-25 20:47:56 +02:00
Move txpower settings after the interface comes up. Thanks alisonken1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13502 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
14dd5e30b6
commit
5cfdd78360
@ -211,9 +211,6 @@ enable_atheros() {
|
|||||||
config_get distance "$device" distance
|
config_get distance "$device" distance
|
||||||
[ -n "$distance" ] && athctrl -i "$device" -d "$distance" >&-
|
[ -n "$distance" ] && athctrl -i "$device" -d "$distance" >&-
|
||||||
|
|
||||||
config_get txpwr "$vif" txpower
|
|
||||||
[ -n "$txpwr" ] && iwconfig "$ifname" txpower "${txpwr%%.*}"
|
|
||||||
|
|
||||||
config_get rate "$vif" rate
|
config_get rate "$vif" rate
|
||||||
[ -n "$rate" ] && iwconfig "$ifname" rate "${rate%%.*}"
|
[ -n "$rate" ] && iwconfig "$ifname" rate "${rate%%.*}"
|
||||||
|
|
||||||
@ -277,6 +274,11 @@ enable_atheros() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
ifconfig "$ifname" up
|
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
|
local net_cfg bridge
|
||||||
net_cfg="$(find_net_config "$vif")"
|
net_cfg="$(find_net_config "$vif")"
|
||||||
[ -z "$net_cfg" ] || {
|
[ -z "$net_cfg" ] || {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user