fix wep encryption setting for madwifi

SVN-Revision: 6655
This commit is contained in:
Felix Fietkau 2007-03-24 01:01:18 +00:00
parent 080d4f6710
commit 4a65dd20fe

View file

@ -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