projects
/
openwrt
/
staging
/
blocktrron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb9db87
)
add wep support for broadcom-wl
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 17 Nov 2006 05:13:24 +0000
(
05:13
+0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 17 Nov 2006 05:13:24 +0000
(
05:13
+0000)
SVN-Revision: 5551
package/broadcom-wl/files/lib/wifi/broadcom.sh
patch
|
blob
|
history
diff --git
a/package/broadcom-wl/files/lib/wifi/broadcom.sh
b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index 9fed98f81824566e043590ebad5f78ade36d83ad..4dad011320d32c158c41da1ccd71692fac1f1eca 100644
(file)
--- 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