#include <glib.h>
#include "netsupplicant.h"
-void netconfig_wifi_tlds_connected_event(GVariant *message);
-void netconfig_wifi_tlds_disconnected_event(GVariant *message);
+void netconfig_wifi_tdls_peer_found_event(GVariant *message);
+void netconfig_wifi_tdls_connected_event(GVariant *message);
+void netconfig_wifi_tdls_disconnected_event(GVariant *message);
void __netconfig_wifi_notify_tdls_connected_event(const char *peer_mac);
gboolean handle_tdls_disconnect(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_addr);
gboolean handle_tdls_connected_peer(Wifi *wifi, GDBusMethodInvocation *context);
const gchar *name, const gchar *path, const gchar *interface,
const gchar *sig, GVariant *param, gpointer user_data)
{
- ERR("Received TDLS Connected Signal");
- netconfig_wifi_tlds_connected_event(param);
+ DBG("Received TDLS Connected Signal");
+ netconfig_wifi_tdls_connected_event(param);
return;
}
const gchar *name, const gchar *path, const gchar *interface,
const gchar *sig, GVariant *param, gpointer user_data)
{
- ERR("Received TDLS Disconnected Signal");
- netconfig_wifi_tlds_disconnected_event(param);
+ DBG("Received TDLS Disconnected Signal");
+ netconfig_wifi_tdls_disconnected_event(param);
return;
}
const gchar *name, const gchar *path, const gchar *interface,
const gchar *sig, GVariant *param, gpointer user_data)
{
- ERR("Received TDLS Peer Found Signal");
+ DBG("Received TDLS Peer Found Signal");
+ netconfig_wifi_tdls_peer_found_event(param);
return;
}
return TRUE;
}
-void netconfig_wifi_tlds_connected_event(GVariant *message)
+void netconfig_wifi_tdls_connected_event(GVariant *message)
{
DBG("[TizenMW<--WPAS] WiFi TDLS Connected EVENT");
__netconfig_wifi_notify_tdls_event("TDLSConnect", peer_mac);
}
-void netconfig_wifi_tlds_disconnected_event(GVariant *message)
+void netconfig_wifi_tdls_disconnected_event(GVariant *message)
{
DBG("[TizenMW<--WPAS]: WiFi TDLS Disconnected EVENT");
const gchar *peer_mac_addr = NULL;
} else
INFO("TDLS Peer Disconnected peer_mac(%s) != peer_mac_address(%s)", peer_mac, peer_mac_addr);
}
+
+
+void netconfig_wifi_tdls_peer_found_event(GVariant *message)
+{
+ DBG("[TizenMW<--WPAS]: WiFi TDLS Discovery EVENT");
+ const gchar *peer_mac_addr = NULL;
+
+ g_variant_get(message, "(s)", &peer_mac_addr);
+ INFO("Discover Peer Mac Address: [%s]", peer_mac_addr);
+
+ __netconfig_wifi_notify_tdls_event("TDLSPeerFound", peer_mac_addr);
+}
+