static unsigned int last_connected_bss_timeout = 0;
#endif
-static void interface_get_params(DBusMessageIter *iter, void *user_data);
-static void interface_get_result(const char *error,
- DBusMessageIter *iter, void *user_data);
-
static int network_remove(struct interface_data *data);
#if defined TIZEN_EXT_WIFI_MESH
struct interface_create_data *data = user_data;
const char *path = NULL;
int err;
-#if defined TIZEN_EXT
- int ret;
-#endif
SUPPLICANT_DBG("");
if (error) {
g_message("error %s", error);
-#if defined TIZEN_EXT
- SUPPLICANT_DBG("error %s", error);
- if (strcmp(error, "fi.w1.wpa_supplicant1.InterfaceExists") == 0) {
- SUPPLICANT_DBG("Send method: GetInterface");
- ret = supplicant_dbus_method_call(SUPPLICANT_PATH,
- SUPPLICANT_INTERFACE,
- "GetInterface",
- interface_get_params,
- interface_get_result, user_data,
- NULL);
- if (ret < 0)
- interface_create_data_free(data);
- return;
- }
-#endif
err = -EIO;
goto done;
}
data->callback = callback;
data->user_data = user_data;
-#if !defined TIZEN_EXT
ret = supplicant_dbus_method_call(SUPPLICANT_PATH,
SUPPLICANT_INTERFACE,
"GetInterface",
NULL);
if (ret < 0)
interface_create_data_free(data);
-#else
- ret = supplicant_dbus_method_call(SUPPLICANT_PATH,
- SUPPLICANT_INTERFACE,
- "CreateInterface",
- interface_create_params,
- interface_create_result, data,
- NULL);
- if (ret < 0)
- interface_create_data_free(data);
-#endif
return ret;
}