summaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl/files/lib/wifi
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-06-25 16:20:13 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-06-25 16:20:13 +0000
commit63229950505eca498f933e8f993533368f78a4ac (patch)
treee4530a39dc66c0fbbb956d07613acff5cdb12e78 /package/broadcom-wl/files/lib/wifi
parent5bd73a12052f8e9182ac1f51372cf6d0323f9dad (diff)
small bugfixes for wifi (broadcom)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4074 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/files/lib/wifi')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index 33a3ebb8f..f5c1ccb02 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/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"
}