info->hwmp_root_mode = hwmp_root_mode;
info->stp = stp;
+ /* Set STP and gate_announce for connmand */
+ ret = mesh_gdbus_set_mesh_gate(service);
+ if (MESHD_ERROR_NONE != ret)
+ MESH_LOGE("Failed to mesh_gdbus_set_mesh_gate [%d]", ret);
+
/* Set STP and gate_announce right now */
ret = mesh_request_set_mesh_gate(info->bridge_interface,
info->mesh_interface, info->external_interface);
if (MESHD_ERROR_NONE != ret)
MESH_LOGE("Failed to mesh_gdbus_set_mesh_gate [%d]", ret);
- /* Set STP and gate_announce for connmand */
- ret = mesh_gdbus_set_mesh_gate(service);
- if (MESHD_ERROR_NONE != ret)
- MESH_LOGE("Failed to mesh_gdbus_set_mesh_gate [%d]", ret);
net_mesh_complete_set_gate(object, invocation, ret);
info->hwmp_root_mode = 0;
info->stp = 0;
+ /* Set STP and gate_announce for connmand */
+ ret = mesh_gdbus_set_mesh_gate(service);
+ if (MESHD_ERROR_NONE != ret)
+ MESH_LOGE("Failed to mesh_gdbus_set_mesh_gate [%d]", ret);
+
/* Unset STP and Gate Annouce right now */
ret = mesh_request_unset_mesh_gate(info->bridge_interface,
info->mesh_interface, info->external_interface);
if (MESHD_ERROR_NONE != ret)
MESH_LOGE("Failed to mesh_request_unset_mesh_gate [%d]", ret);
- /* Set STP and gate_announce for connmand */
- ret = mesh_gdbus_set_mesh_gate(service);
- if (MESHD_ERROR_NONE != ret)
- MESH_LOGE("Failed to mesh_gdbus_set_mesh_gate [%d]", ret);
-
net_mesh_complete_unset_gate(object, invocation, ret);
return TRUE;