diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-21 20:52:17 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-21 20:52:17 +0000 |
commit | 917da387ef18f93fe071221bc4f730e45134306e (patch) | |
tree | 9888db8b31bcf696b805cc474ec2f7f526f82cae /package/broadcom-wl/files/lib/wifi/broadcom.sh | |
parent | 3e3062918b74f0a0bd246b39279652afa6d785dc (diff) |
[package] broadcom-wl: implement wepauth in wlc and support it in broadcom.sh, allows switching between open and shared authentication
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19256 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/files/lib/wifi/broadcom.sh')
-rw-r--r-- | package/broadcom-wl/files/lib/wifi/broadcom.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh index f5d15f841d..94f220e0a1 100644 --- a/package/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh @@ -181,11 +181,15 @@ enable_broadcom() { nasopts= config_get enc "$vif" encryption case "$enc" in - WEP|wep) + *WEP*|*wep*) wsec_r=1 wsec=1 defkey=1 config_get key "$vif" key + case "$enc" in + *shared*) append vif_do_up "wepauth 1" "$N";; + *) append vif_do_up "wepauth 0" "$N";; + esac case "$key" in [1234]) defkey="$key" |