wpa_supplicant: make key_mgmt default to NONE
[openwrt.git] / package / hostapd / files / wpa_supplicant.sh
index bbd928b..9c475a8 100644 (file)
@@ -35,12 +35,10 @@ wpa_supplicant_setup_vif() {
        }
        [ "$mode" = "adhoc" ] && modestr="mode=1"
 
+       key_mgmt='NONE'
        case "$enc" in
-               *none*)
-                       key_mgmt='NONE'
-               ;;
+               *none*) ;;
                *wep*)
-                       key_mgmt='NONE'
                        config_get key "$vif" key
                        key="${key:-1}"
                        case "$key" in
This page took 0.020993 seconds and 4 git commands to generate.