Fixed crash in accessing non allocated memory
[platform/core/connectivity/net-config.git] / include / wifi-tdls.h
index 616e540..9301971 100755 (executable)
@@ -32,7 +32,8 @@ typedef enum {
        NETCONFIG_ERROR_TDLS_FAIL_DISCOVER                      = 0x01,
        NETCONFIG_ERROR_TDLS_FAIL_DISCONNECT            = 0x02,
        NETCONFIG_ERROR_TDLS_FAIL_CONNECT                       = 0x03,
-       NETCONFIG_ERROR_TDLS_ALREADY_DONE                       = 0x04,
+       NETCONFIG_ERROR_TDLS_ALREADY_DONE                       = 0x04,
+       NETCONFIG_ERROR_TDLS_FAIL_CHANNEL_SWITCH        = 0x05,
 } netconfig_tdls_error_e;
 
 void netconfig_wifi_tdls_peer_found_event(GVariant *message);
@@ -43,6 +44,12 @@ gboolean handle_tdls_disconnect(Wifi *wifi, GDBusMethodInvocation *context, gcha
 gboolean handle_tdls_connected_peer(Wifi *wifi, GDBusMethodInvocation *context);
 gboolean handle_tdls_connect(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_Addr);
 gboolean handle_tdls_discover(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_Addr);
+gboolean handle_tdls_channel_switch(Wifi *wifi, GDBusMethodInvocation *context,
+                       gchar *peer_mac_Addr, int freq);
+gboolean handle_tdls_cancel_channel_switch(Wifi *wifi, GDBusMethodInvocation *context,
+                       gchar *peer_mac_Addr);
+
+
 
 #ifdef __cplusplus
 }