mac80211: fix wpa in client mode
authorFelix Fietkau <nbd@openwrt.org>
Tue, 10 Nov 2009 19:27:13 +0000 (19:27 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Nov 2009 19:27:13 +0000 (19:27 +0000)
SVN-Revision: 18355

package/mac80211/files/lib/wifi/mac80211.sh

index 5af7a9a26c18f69bde7e68e4dc3ea8ac49ba1a6b..ccd4d2c389d95db8a620bfb69769b11a1df1817b 100644 (file)
@@ -248,7 +248,8 @@ enable_mac80211() {
                                                        fi
                                                fi
                                        ;;
-                                       wpa)
+                                       wpa*|psk*)
+                                               config_get key "$vif" key
                                                if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then
                                                        wpa_supplicant_setup_vif "$vif" wext || {
                                                                echo "enable_mac80211($device): Failed to set up wpa_supplicant for interface $ifname" >&2