hostapd: use wpa_supplicant for unencrypted mesh connections
[openwrt/openwrt.git] / package / kernel / mac80211 / files / lib / netifd / wireless / mac80211.sh
index ed2805213e4a5e295decd998a2edae071d31219b..0a7f787cff80fd494f9df5ac7b21524cc7eea32a 100644 (file)
@@ -1033,7 +1033,7 @@ mac80211_setup_vif() {
                mesh)
                        wireless_vif_parse_encryption
                        [ -z "$htmode" ] && htmode="NOHT";
-                       if [ "$wpa" -gt 0 -o "$auto_channel" -gt 0 ] || chan_is_dfs "$phy" "$channel"; then
+                       if wpa_supplicant -vmesh || [ "$wpa" -gt 0 -o "$auto_channel" -gt 0 ] || chan_is_dfs "$phy" "$channel"; then
                                mac80211_setup_supplicant $vif_enable || failed=1
                        else
                                mac80211_setup_mesh $vif_enable