aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-11-16 19:38:55 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-11-16 19:38:55 +0000
commit2a4a3ffd6ae9503b14ff826d0d79046db4a47dae (patch)
tree169ba5a785090cf27daac900bc806fb5cdb31d21 /package
parent53f4888b7b3189a70daa79e01be4416820dd22a9 (diff)
downloadupstream-2a4a3ffd6ae9503b14ff826d0d79046db4a47dae.tar.gz
upstream-2a4a3ffd6ae9503b14ff826d0d79046db4a47dae.tar.bz2
upstream-2a4a3ffd6ae9503b14ff826d0d79046db4a47dae.zip
move the txpower option to wifi-iface to mimic madwifi configuration
SVN-Revision: 13239
Diffstat (limited to 'package')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index aa8258d3dc..b30a3d9fef 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -123,8 +123,7 @@ enable_broadcom() {
config_get macfilter "$device" macfilter
config_get maclist "$device" maclist
config_get macaddr "$device" macaddr
- config_get txpower "$device" txpower
- local vif_pre_up vif_post_up vif_do_up
+ local vif_pre_up vif_post_up vif_do_up txpower
_c=0
nas="$(which nas)"
@@ -153,6 +152,8 @@ enable_broadcom() {
esac
for vif in $vifs; do
+ config_get txpower "$vif" txpower
+
config_get mode "$vif" mode
append vif_pre_up "vif $_c" "$N"
append vif_post_up "vif $_c" "$N"