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 0b24886903de29bc4b3c1288b7407a1d20e4519b..001ea0933d95282a9e45561240cb9ea9010d9fd5 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