1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-26 03:33:19 +02:00

fix wep encryption setting for madwifi

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6655 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-03-24 01:01:18 +00:00
parent cd3aa7e128
commit 6e8c336f90

View File

@ -125,7 +125,11 @@ enable_atheros() {
iwconfig "$ifname" enc "[$idx]" "${key:-off}" iwconfig "$ifname" enc "[$idx]" "${key:-off}"
done done
config_get key "$vif" key 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) PSK|psk|PSK2|psk2)
config_get key "$vif" key config_get key "$vif" key