mac80211: always use wpa_supplicant for client connections (patch by Stijn Tintel)
[openwrt.git] / package / hostapd / files / wpa_supplicant.sh
index ccf31ba..97a0082 100644 (file)
@@ -6,7 +6,10 @@ wpa_supplicant_setup_vif() {
        # wpa_supplicant should use wext for mac80211 cards
        [ "$driver" = "mac80211" ] && driver='wext'
 
-       # make sure we have the psk
+       # make sure we have the encryption type and the psk
+       [ -n "$enc" ] || {
+               config_get enc "$vif" encryption
+       }
        [ -n "$key" ] || {
                config_get key "$vif" key
        }
This page took 0.027117 seconds and 4 git commands to generate.