wifi_mesh_connected_peer_cb cb, void *user_data);
/**
- * @brief Enables the Wi-Fi mesh network.
- * @details This function is to join or create Wi-Fi mesh network using saved Wi-Fi mesh network configuration
+ * @brief Start the Wi-Fi mesh network.
+ * @details This function is to create a Wi-Fi mesh network and do auto-connection
+ * using saved Wi-Fi mesh network configuration
*
* @since_tizen 4.0
*
* @retval #WIFI_MESH_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #WIFI_MESH_ERROR_IO_ERROR Unexpected d-bus error
*
- * @see wifi_mesh_stop_mesh()
+ * @see wifi_mesh_stop()
*
*/
-int wifi_mesh_start_mesh(wifi_mesh_h handle);
+int wifi_mesh_start(wifi_mesh_h handle);
/**
- * @brief Disables the Wi-Fi mesh network.
- * @details This function is to disjoin or destroy current Wi-Fi mesh network
+ * @brief Stop the Wi-Fi mesh network.
+ * @details This function is to disconnect the current Wi-Fi mesh network and
+ * destroy all related to the Wi-Fi mesh network
*
* @since_tizen 4.0
*
* @retval #WIFI_MESH_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #WIFI_MESH_ERROR_IO_ERROR Unexpected d-bus error
*
- * @see wifi_mesh_start_mesh()
+ * @see wifi_mesh_start()
*
*/
-int wifi_mesh_stop_mesh(wifi_mesh_h handle);
+int wifi_mesh_stop(wifi_mesh_h handle);
/**
* @brief Get the Wi-Fi mesh connection state.
* @retval #WIFI_MESH_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #WIFI_MESH_ERROR_IO_ERROR Unexpected d-bus error
*
- * @see wifi_mesh_start_mesh()
+ * @see wifi_mesh_start()
* @see wifi_mesh_found_network_cb()
*
*/
* @retval #WIFI_MESH_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #WIFI_MESH_ERROR_IO_ERROR Unexpected d-bus error
*
- * @see wifi_mesh_start_mesh()
+ * @see wifi_mesh_start()
*
*/
int wifi_mesh_get_joined_network(wifi_mesh_h handle, wifi_mesh_network_h* network);
return rv;
}
-EXPORT_API int wifi_mesh_start_mesh(wifi_mesh_h handle)
+EXPORT_API int wifi_mesh_start(wifi_mesh_h handle)
{
int rv = 0;
CHECK_FEATURE_SUPPORTED(MESH_FEATURE);
return rv;
}
-EXPORT_API int wifi_mesh_stop_mesh(wifi_mesh_h handle)
+EXPORT_API int wifi_mesh_stop(wifi_mesh_h handle)
{
int rv = 0;
CHECK_FEATURE_SUPPORTED(MESH_FEATURE);
int ret;
msg("Enable Mesh");
- ret = wifi_mesh_start_mesh(mesh);
+ ret = wifi_mesh_start(mesh);
if (WIFI_MESH_ERROR_NONE != ret) {
msgr("Failed to enable mesh network: [%s(0x%X)]",
wifi_mesh_error_to_string(ret), ret);
return RET_FAILURE;
}
- msg(" - wifi_mesh_start_mesh() ret: [0x%X] [%s]", ret, wifi_mesh_error_to_string(ret));
+ msg(" - wifi_mesh_start() ret: [0x%X] [%s]", ret, wifi_mesh_error_to_string(ret));
return RET_SUCCESS;
}
int ret;
msg("Disable Mesh");
- ret = wifi_mesh_stop_mesh(mesh);
+ ret = wifi_mesh_stop(mesh);
if (WIFI_MESH_ERROR_NONE != ret) {
msgr("Failed to disable mesh network: [%s(0x%X)]", wifi_mesh_error_to_string(ret), ret);
return RET_FAILURE;
}
- msg(" - wifi_mesh_stop_mesh() ret: [0x%X] [%s]", ret, wifi_mesh_error_to_string(ret));
+ msg(" - wifi_mesh_stop() ret: [0x%X] [%s]", ret, wifi_mesh_error_to_string(ret));
return RET_SUCCESS;
}