Current Asynchronous DBUS timeout value in net-config is 15secs. It is
very less time to notify Application about WiFiConnectFail. So when DBUS
timeout occurs then don't emit WiFiConnectFail signal. ConnMan will
notify about WiFi Connection failure with proper reason later.
Change-Id: I78e9a66be5181127c095eca06c2c86feb6adb536
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
g_dbus_connection_call_finish(conn, res, &error);
if (error != NULL) {
ERR("WiFi Connection Error [%s]", error->message);
+ /* No need to emit WiFiConnectFail signal if Connection is
+ * in progress */
+ if (error->code == G_IO_ERROR_TIMED_OUT) {
+ g_error_free(error);
+ DBG("WiFi Connection in Progress");
+ netconfig_gdbus_pending_call_unref();
+ return;
+ }
g_error_free(error);
if (netconfig_dbus_emit_signal(NULL, NETCONFIG_WIFI_PATH,
NETCONFIG_WIFI_INTERFACE, "WiFiConnectFail",