mac80211: Re-enable encrypted 11s meshpoint
[openwrt/openwrt.git] / package / kernel / mac80211 / files / lib / netifd / wireless / mac80211.sh
index dbe4aac..70def75 100644 (file)
@@ -634,8 +634,8 @@ mac80211_setup_vif() {
        case "$mode" in
                mesh)
                        json_get_vars key
+                       wireless_vif_parse_encryption
                        if [ "$wpa" -gt 0 -o "$auto_channel" -gt 0 ] || chan_is_dfs "$phy" "$channel"; then
-                               wireless_vif_parse_encryption
                                freq="$(get_freq "$phy" "$channel")"
                                mac80211_setup_supplicant || failed=1
                        else