diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-10-27 11:25:59 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-10-27 11:25:59 +0000 |
commit | 114cdb3c01a3c53c14881e449acda60c1d6a5c29 (patch) | |
tree | baa241eb718609a14cb67d98e296e3b1195fc47f /package/madwifi | |
parent | 86882a55f9134224ccb066aa227d26571bb25ae2 (diff) |
[package] madwifi: add wep+open, wep+shared format support to madwifi as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23657 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi')
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 2b2e699d0..4d390dd1d 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -215,7 +215,11 @@ enable_atheros() { } case "$enc" in - WEP|wep) + wep*) + case "$enc" in + *open*) iwpriv "$ifname" authmode 1;; + *) iwpriv "$ifname" authmode 2;; + ;; for idx in 1 2 3 4; do config_get key "$vif" "key${idx}" iwconfig "$ifname" enc "[$idx]" "${key:-off}" |