madwifi: fix encryption type check
authorFelix Fietkau <nbd@openwrt.org>
Thu, 28 Aug 2008 12:41:55 +0000 (12:41 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 28 Aug 2008 12:41:55 +0000 (12:41 +0000)
SVN-Revision: 12421

package/madwifi/files/lib/wifi/madwifi.sh

index 0b24886..001ea09 100755 (executable)
@@ -151,9 +151,8 @@ enable_atheros() {
                                        *) iwconfig "$ifname" enc "$key";;
                                esac
                        ;;
-                       PSK|psk|PSK2|psk2)
+                       psk*|wpa*)
                                start_hostapd=1
-                               config_get key "$vif" key
                        ;;
                esac