diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-24 01:01:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-24 01:01:18 +0000 |
commit | 2c8d0980de8161ed8a897e18235c8a6164805ab9 (patch) | |
tree | 5798fe870a88fb640a0c088d7d82274fb86056e1 /package/madwifi | |
parent | 23d90b1c4d5c365c9c127799d73885df526987e7 (diff) | |
download | master-187ad058-2c8d0980de8161ed8a897e18235c8a6164805ab9.tar.gz master-187ad058-2c8d0980de8161ed8a897e18235c8a6164805ab9.tar.bz2 master-187ad058-2c8d0980de8161ed8a897e18235c8a6164805ab9.zip |
fix wep encryption setting for madwifi
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6655 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 720f3af87c..1cd727ade7 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -125,7 +125,11 @@ enable_atheros() { iwconfig "$ifname" enc "[$idx]" "${key:-off}" done config_get key "$vif" key - iwconfig "$ifname" enc "${key:-1}" + key="${key:-1}" + case "$key" in + [1234]) iwconfig "$ifname" enc "[$key]";; + *) iwconfig "$ifname" enc "$key";; + esac ;; PSK|psk|PSK2|psk2) config_get key "$vif" key |