#include "wifi-background-scan.h"
#include "wifi-tdls.h"
-#if defined TIZEN_DEBUG_DISABLE
-#include "wifi-dump.h"
-#endif
-
#define DBUS_SERVICE_DBUS "org.freedesktop.DBus"
#define DBUS_INTERFACE_DBUS "org.freedesktop.DBus"
#define SIGNAL_INTERFACE_REMOVED "InterfaceRemoved"
};
static int supp_subscription_ids[SIG_MAX] = {0};
-static int dumpservice_subscription_id = 0;
typedef void (*supplicant_signal_cb)(GDBusConnection *conn,
const gchar *name, const gchar *path, const gchar *interface,
DBG("Driver session overlapped handling!");
ERR("WPS PBC SESSION OVERLAPPED");
#if defined TIZEN_WEARABLE
- wc_launch_syspopup(WC_POPUP_TYPE_SESSION_OVERLAPPED);
+ return;
#else
netconfig_send_message_to_net_popup("WPS Error",
"wps session overlapped", "popup", NULL);
_supplicant_tdls_peer_found
};
-#if defined TIZEN_DEBUG_DISABLE
-static void __netconfig_dumpservice_handler(GDBusConnection *conn,
- const gchar *name, const gchar *path, const gchar *interface,
- const gchar *sig, GVariant *param, gpointer user_data)
-{
- int mode;
- gchar *signal_path = NULL;
-
- if (param == NULL)
- return;
-
- g_variant_get(param, "(io)", &mode, &signal_path);
- DBG("Path: %s and mode: %d", signal_path, mode);
- netconfig_dump_log(path);
- if (signal_path)
- g_free(signal_path);
-
- return;
-}
-#endif
-
void register_gdbus_signal(void)
{
GDBusConnection *connection = NULL;
INFO("Successfully register Supplicant DBus signal filters");
-#if defined TIZEN_DEBUG_DISABLE
- dumpservice_subscription_id = g_dbus_connection_signal_subscribe(
- connection,
- /*
- * Sender => For testing purpose made NULL
- *WPA_SUPPLICANT,
- */
- NULL,
- DUMP_SERVICE_INTERFACE,
- DUMP_SIGNAL,
- NULL,
- NULL,
- G_DBUS_SIGNAL_FLAGS_NONE,
- __netconfig_dumpservice_handler,
- NULL,
- NULL);
-
- INFO("Successfully register Dumpservice DBus signal filter");
-#endif
/* In case ConnMan precedes this signal register,
* net-config should update the default connected profile.
*/
}
}
- g_dbus_connection_signal_unsubscribe(connection,
- dumpservice_subscription_id);
}