1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 17:55:55 +02:00

fix bug with ap+sta modes using wpa

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7877 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm 2007-07-04 18:34:11 +00:00
parent 1ecb101e99
commit a91b345646

View File

@ -200,17 +200,18 @@ enable_broadcom() {
}
[ -z "$nasopts" ] || {
eval "${vif}_ssid=\"\$ssid\""
mode="-A"
[ "$ap" = "0" ] && {
mode="-S"
nas_mode="-A"
use_nas=1
[ "$mode" = "sta" ] && {
nas_mode="-S"
[ -z "$bridge" ] || {
append vif_pre_up "supplicant 1" "$N"
append vif_pre_up "passphrase $key" "$N"
nas=""
use_nas=0
}
}
[ -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 &"
[ -z "$nas" -o "$use_nas" = "0" ] || nas_cmd="${nas_cmd:+$nas_cmd$N}$nas -P /var/run/nas.$ifname.pid -H 34954 ${bridge:+ -l $bridge} -i $ifname $nas_mode -m $auth -w $wsec -s \"\$${vif}_ssid\" -g 3600 $nasopts &"
}
_c=$(($_c + 1))
done