diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-11-16 19:38:55 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-11-16 19:38:55 +0000 |
commit | 74d543111ac1a2a8de70a6b7f9bbc38ed2239993 (patch) | |
tree | 8f8b9cddd559925db31b67a6cc67acd67569f0d4 /package/broadcom-wl/files/lib/wifi | |
parent | 7d9767f970a4092a66a6ef90e4c084c1f8b63b56 (diff) |
move the txpower option to wifi-iface to mimic madwifi configuration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13239 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/files/lib/wifi')
-rw-r--r-- | package/broadcom-wl/files/lib/wifi/broadcom.sh | 5 |
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 aa8258d3d..b30a3d9fe 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" |