diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-06-25 16:20:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-06-25 16:20:13 +0000 |
commit | bf2ce6070e5e011d3afa910a85a99b26fdf6d851 (patch) | |
tree | cff0211ee73f1ff8a1751fd9c6e7fe368afb1582 | |
parent | 44746a7f68a3f19739d302b3fa48f3831a59631f (diff) | |
download | upstream-bf2ce6070e5e011d3afa910a85a99b26fdf6d851.tar.gz upstream-bf2ce6070e5e011d3afa910a85a99b26fdf6d851.tar.bz2 upstream-bf2ce6070e5e011d3afa910a85a99b26fdf6d851.zip |
small bugfixes for wifi (broadcom)
SVN-Revision: 4074
-rw-r--r-- | openwrt/package/broadcom-wl/files/lib/wifi/broadcom.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openwrt/package/broadcom-wl/files/lib/wifi/broadcom.sh b/openwrt/package/broadcom-wl/files/lib/wifi/broadcom.sh index 33a3ebb8fa..f5c1ccb026 100644 --- a/openwrt/package/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/openwrt/package/broadcom-wl/files/lib/wifi/broadcom.sh @@ -69,6 +69,7 @@ setup_broadcom() { _c=0 nas="$(which nas)" nas_cmd= + if_up= for vif in ${adhoc_if:-$sta_if $ap_if}; do append vif_pre_up "vif $_c" "$N" append vif_post_up "vif $_c" "$N" @@ -123,8 +124,9 @@ setup_broadcom() { append vif_post_up "ssid $ssid" "$N" append vif_post_up "enabled 1" "$N" + config_get ifname "$vif" ifname + append if_up "ifconfig $ifname up" ";$N" [ -z "$nasopts" ] || { - config_get ifname "$vif" ifname config_get bridge "$vif" bridge # XXX: integrate with /etc/config/network later eval "${vif}_ssid=\"\$ssid\"" mode="-A" @@ -134,7 +136,7 @@ setup_broadcom() { _c=$(($_c + 1)) done killall -KILL nas >&- 2>&- - cat <<EOF + wlc stdin <<EOF $ifdown mssid $mssid @@ -156,6 +158,7 @@ up $vif_post_up EOF eval "$nas_cmd" + eval "$if_up" } |