mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-19 08:16:16 +02:00
add wep support for broadcom-wl
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5551 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
34b5995eff
commit
3a056ac80d
@ -117,7 +117,23 @@ enable_broadcom() {
|
|||||||
config_get enc "$vif" encryption
|
config_get enc "$vif" encryption
|
||||||
case "$enc" in
|
case "$enc" in
|
||||||
WEP|wep)
|
WEP|wep)
|
||||||
wsec_r=1
|
wsec_r=0
|
||||||
|
wsec=1
|
||||||
|
defkey=1
|
||||||
|
config_get key "$vif" key
|
||||||
|
case "$key" in
|
||||||
|
[1234])
|
||||||
|
defkey="$key"
|
||||||
|
for knr in 1 2 3 4; do
|
||||||
|
config_get k "$vif" key$knr
|
||||||
|
[ -n "$k" ] || continue
|
||||||
|
[ "$defkey" = "$knr" ] && def="=" || def=""
|
||||||
|
append vif_pre_up "wepkey $def$knr,$k" "$N"
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
"");;
|
||||||
|
*) append vif_pre_up "wepkey 1,$key" "$N";;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
*psk*|*PSK*)
|
*psk*|*PSK*)
|
||||||
wsec_r=1
|
wsec_r=1
|
||||||
|
Loading…
Reference in New Issue
Block a user