From: Felix Fietkau Date: Sat, 24 Mar 2007 01:01:18 +0000 (+0000) Subject: fix wep encryption setting for madwifi X-Git-Tag: reboot~29659 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a65dd20fe69b1017365028d9777cdbf739de870;p=oweals%2Fopenwrt.git fix wep encryption setting for madwifi SVN-Revision: 6655 --- 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