aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-17 05:13:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-17 05:13:24 +0000
commit4d09fbd1d933a11150280c52f565516cab51fe3f (patch)
tree902e8852181b932a5180985f1cdf4f04f06a3efe /package
parent98206a36dffd9d76fc7fc2afa68436fba8b8e638 (diff)
downloadupstream-4d09fbd1d933a11150280c52f565516cab51fe3f.tar.gz
upstream-4d09fbd1d933a11150280c52f565516cab51fe3f.tar.bz2
upstream-4d09fbd1d933a11150280c52f565516cab51fe3f.zip
add wep support for broadcom-wl
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5551 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index 9fed98f818..4dad011320 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -117,7 +117,23 @@ enable_broadcom() {
config_get enc "$vif" encryption
case "$enc" in
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*)
wsec_r=1