mac80211: fix wpa in client mode

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18355 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Felix Fietkau
2009-11-10 19:27:13 +00:00
parent 7e6678ad22
commit 5e3e6c8c0d

View 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