mac80211: Re-enable encrypted 11s meshpoint
[openwrt/openwrt.git] / package / kernel / mac80211 / files / lib / netifd / wireless / mac80211.sh
index dbe4aac7d78832fdd8005b539be6bb1af0eb915d..70def756b2d5dc0f361a293f12dea5782ff8b6fe 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