diff options
author | Mike Baker <mbm@openwrt.org> | 2007-07-04 16:49:08 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2007-07-04 16:49:08 +0000 |
commit | dee4f1e4f30afaed1a14ddb3e68a7d89dbc2da3a (patch) | |
tree | 6ad37e72f04ff3f5e187126ee116122282f0cf08 /package/broadcom-wl/files | |
parent | 347ffad4cd3d35c449565df6b64724d0e40c40e7 (diff) | |
download | upstream-dee4f1e4f30afaed1a14ddb3e68a7d89dbc2da3a.tar.gz upstream-dee4f1e4f30afaed1a14ddb3e68a7d89dbc2da3a.tar.bz2 upstream-dee4f1e4f30afaed1a14ddb3e68a7d89dbc2da3a.zip |
patch wlc and scripts to control wl's builtin wpa supplicant
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7875 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/files')
-rw-r--r-- | package/broadcom-wl/files/lib/wifi/broadcom.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh index 4f11a51591..c6444d6725 100644 --- a/package/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh @@ -201,7 +201,15 @@ enable_broadcom() { [ -z "$nasopts" ] || { eval "${vif}_ssid=\"\$ssid\"" mode="-A" - [ "$vif" = "$sta_if" ] && mode="-S" + [ "$ap" = "0" ] && { + mode="-S" + [ -z "$bridge" ] || { + append vif_pre_up "supplicant 1" "$N" + append vif_pre_up "passphrase $key" "$N" + + nas="" + } + } [ -z "$nas" ] || nas_cmd="${nas_cmd:+$nas_cmd$N}$nas -P /var/run/nas.$ifname.pid -H 34954 ${bridge:+ -l $bridge} -i $ifname $mode -m $auth -w $wsec -s \"\$${vif}_ssid\" -g 3600 $nasopts &" } _c=$(($_c + 1)) |