2 * Network Configuration Module
4 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef __TIZEN_NETWORK_WIFI_TDLS_H__
20 #define __TIZEN_NETWORK_WIFI_TDLS_H__
27 #include "netsupplicant.h"
31 NETCONFIG_ERROR_TDLS_NO_ERROR = 0x00,
32 NETCONFIG_ERROR_TDLS_FAIL_DISCOVER = 0x01,
33 NETCONFIG_ERROR_TDLS_FAIL_DISCONNECT = 0x02,
34 NETCONFIG_ERROR_TDLS_FAIL_CONNECT = 0x03,
35 NETCONFIG_ERROR_TDLS_ALREADY_DONE = 0x04,
36 NETCONFIG_ERROR_TDLS_FAIL_CHANNEL_SWITCH = 0x05,
37 } netconfig_tdls_error_e;
39 void netconfig_wifi_tdls_peer_found_event(GVariant *message);
40 void netconfig_wifi_tdls_connected_event(GVariant *message);
41 void netconfig_wifi_tdls_disconnected_event(GVariant *message);
42 void __netconfig_wifi_notify_tdls_connected_event(const char *peer_mac);
43 gboolean handle_tdls_disconnect(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_addr);
44 gboolean handle_tdls_connected_peer(Wifi *wifi, GDBusMethodInvocation *context);
45 gboolean handle_tdls_connect(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_Addr);
46 gboolean handle_tdls_discover(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_Addr);
47 gboolean handle_tdls_channel_switch(Wifi *wifi, GDBusMethodInvocation *context,
48 gchar *peer_mac_Addr, int freq);
49 gboolean handle_tdls_cancel_channel_switch(Wifi *wifi, GDBusMethodInvocation *context,
50 gchar *peer_mac_Addr);
58 #endif /* __TIZEN_NETWORK_WIFI_TDLS_H__ */