wpa-supplicant: Get 802.11s ssid information from option mesh_id
[openwrt.git] / package / network / services / hostapd / files / netifd.sh
index 1c91bbf..5541e4d 100644 (file)
@@ -581,6 +581,9 @@ wpa_supplicant_add_network() {
        }
 
        [[ "$_w_mode" = "mesh" ]] && {
+               json_get_vars mesh_id
+               ssid="${mesh_id}"
+
                append network_data "mode=5" "$N$T"
                [ -n "$channel" ] && {
                        freq="$(get_freq "$phy" "$channel")"