blob: 0759f36807a5f13c17793a8f521631692e4b3721 [file] [log] [blame]
Gopichand Nakkalabd9fa2d2013-01-08 13:16:22 -08001/*
Kiet Lam842dad02014-02-18 18:44:02 -08002 * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
Gopichand Nakkalabd9fa2d2013-01-08 13:16:22 -080020 */
Kiet Lam842dad02014-02-18 18:44:02 -080021
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
Kiran V1ccee932012-12-12 14:49:46 -080028#ifndef __HDD_TDSL_H
29#define __HDD_TDSL_H
30/**===========================================================================
31
32\file wlan_hdd_tdls.h
33
34\brief Linux HDD TDLS include file
Kiran V1ccee932012-12-12 14:49:46 -080035==========================================================================*/
36
Chilam NG571c65a2013-01-19 12:27:36 +053037#define MAX_NUM_TDLS_PEER 3
Kiran V1ccee932012-12-12 14:49:46 -080038
Gopichand Nakkalac3694582013-02-13 20:51:22 -080039#define TDLS_SUB_DISCOVERY_PERIOD 100
40
41#define TDLS_MAX_DISCOVER_REQS_PER_TIMER 1
Kiran V1ccee932012-12-12 14:49:46 -080042
Chilam NG571c65a2013-01-19 12:27:36 +053043#define TDLS_DISCOVERY_PERIOD 3600000
Kiran V1ccee932012-12-12 14:49:46 -080044
Chilam NG571c65a2013-01-19 12:27:36 +053045#define TDLS_TX_STATS_PERIOD 3600000
46
47#define TDLS_IMPLICIT_TRIGGER_PKT_THRESHOLD 100
48
49#define TDLS_RX_IDLE_TIMEOUT 5000
50
51#define TDLS_RSSI_TRIGGER_HYSTERESIS 50
52
Gopichand Nakkalaccd3a382013-03-19 13:56:10 -070053/* before UpdateTimer expires, we want to timeout discovery response.
54should not be more than 2000 */
55#define TDLS_DISCOVERY_TIMEOUT_BEFORE_UPDATE 1000
Gopichand Nakkala75e7b282013-03-15 18:37:13 -070056
Hoonki Lee93e67ff2013-03-19 15:49:25 -070057#define TDLS_CTX_MAGIC 0x54444c53 // "TDLS"
58
59#define TDLS_MAX_SCAN_SCHEDULE 10
Hoonki Leefb8df672013-04-10 18:20:34 -070060#define TDLS_MAX_SCAN_REJECT 5
Hoonki Lee93e67ff2013-03-19 15:49:25 -070061#define TDLS_DELAY_SCAN_PER_CONNECTION 100
62
Gopichand Nakkalae7cbc5d2013-03-27 21:09:23 -070063#define TDLS_IS_CONNECTED(peer) \
64 ((eTDLS_LINK_CONNECTED == (peer)->link_status) || \
65 (eTDLS_LINK_TEARING == (peer)->link_status))
Chilam NG571c65a2013-01-19 12:27:36 +053066typedef struct
67{
Chilam Ng01120412013-02-19 18:32:21 -080068 tANI_U32 tdls;
Chilam NG571c65a2013-01-19 12:27:36 +053069 tANI_U32 tx_period_t;
70 tANI_U32 tx_packet_n;
71 tANI_U32 discovery_period_t;
72 tANI_U32 discovery_tries_n;
Chilam Ng01120412013-02-19 18:32:21 -080073 tANI_U32 idle_timeout_t;
74 tANI_U32 idle_packet_n;
Chilam NG571c65a2013-01-19 12:27:36 +053075 tANI_U32 rssi_hysteresis;
Chilam Ng01120412013-02-19 18:32:21 -080076 tANI_S32 rssi_trigger_threshold;
77 tANI_S32 rssi_teardown_threshold;
Chilam NG571c65a2013-01-19 12:27:36 +053078} tdls_config_params_t;
79
Hoonki Lee93e67ff2013-03-19 15:49:25 -070080typedef struct
81{
82 struct wiphy *wiphy;
83#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0))
84 struct net_device *dev;
85#endif
86 struct cfg80211_scan_request *scan_request;
87 int magic;
88 int attempt;
Hoonki Leefb8df672013-04-10 18:20:34 -070089 int reject;
Hoonki Lee93e67ff2013-03-19 15:49:25 -070090 struct delayed_work tdls_scan_work;
91} tdls_scan_context_t;
92
Chilam NG571c65a2013-01-19 12:27:36 +053093typedef enum {
Hoonki Lee27511902013-03-14 18:19:06 -070094 eTDLS_SUPPORT_NOT_ENABLED = 0,
95 eTDLS_SUPPORT_DISABLED, /* suppress implicit trigger and not respond to the peer */
96 eTDLS_SUPPORT_EXPLICIT_TRIGGER_ONLY, /* suppress implicit trigger, but respond to the peer */
97 eTDLS_SUPPORT_ENABLED, /* implicit trigger */
Chilam Ng01120412013-02-19 18:32:21 -080098} eTDLSSupportMode;
99
Gopichand Nakkala901e8922013-03-04 23:45:58 -0800100typedef enum eTDLSCapType{
Chilam NG571c65a2013-01-19 12:27:36 +0530101 eTDLS_CAP_NOT_SUPPORTED = -1,
102 eTDLS_CAP_UNKNOWN = 0,
103 eTDLS_CAP_SUPPORTED = 1,
Gopichand Nakkala901e8922013-03-04 23:45:58 -0800104} tTDLSCapType;
Chilam NG571c65a2013-01-19 12:27:36 +0530105
Gopichand Nakkala901e8922013-03-04 23:45:58 -0800106typedef enum eTDLSLinkStatus {
107 eTDLS_LINK_IDLE = 0,
108 eTDLS_LINK_DISCOVERING,
Gopichand Nakkala05922802013-03-14 12:23:19 -0700109 eTDLS_LINK_DISCOVERED,
Gopichand Nakkala901e8922013-03-04 23:45:58 -0800110 eTDLS_LINK_CONNECTING,
111 eTDLS_LINK_CONNECTED,
Gopichand Nakkalae7cbc5d2013-03-27 21:09:23 -0700112 eTDLS_LINK_TEARING,
Gopichand Nakkala901e8922013-03-04 23:45:58 -0800113} tTDLSLinkStatus;
Chilam NG571c65a2013-01-19 12:27:36 +0530114
Atul Mittal115287b2014-07-08 13:26:33 +0530115
116typedef enum {
117 eTDLS_LINK_SUCCESS, /* Success */
118 eTDLS_LINK_UNSPECIFIED = -1, /* Unspecified reason */
119 eTDLS_LINK_NOT_SUPPORTED = -2, /* Remote side doesn't support TDLS */
120 eTDLS_LINK_UNSUPPORTED_BAND = -3, /* Remote side doesn't support this band */
121 eTDLS_LINK_NOT_BENEFICIAL = -4, /* Going to AP is better than going direct */
122 eTDLS_LINK_DROPPED_BY_REMOTE = -5 /* Remote side doesn't want it anymore */
123} tTDLSLinkReason;
124
125typedef struct {
126 int channel; /* channel hint, in channel number (NOT frequency ) */
127 int global_operating_class; /* operating class to use */
128 int max_latency_ms; /* max latency that can be tolerated by apps */
129 int min_bandwidth_kbps; /* bandwidth required by apps, in kilo bits per second */
130} tdls_req_params_t;
131
132typedef enum {
133 WIFI_TDLS_DISABLED, /* TDLS is not enabled, or is disabled now */
134 WIFI_TDLS_ENABLED, /* TDLS is enabled, but not yet tried */
135 WIFI_TDLS_TRYING, /* Direct link is being attempted (optional) */
136 WIFI_TDLS_ESTABLISHED, /* Direct link is established */
137 WIFI_TDLS_ESTABLISHED_OFF_CHANNEL, /* Direct link is established using MCC */
138 WIFI_TDLS_DROPPED, /* Direct link was established, but is now dropped */
139 WIFI_TDLS_FAILED /* Direct link failed */
140} tdls_state_t;
141
142typedef int (*cfg80211_exttdls_callback)(tANI_U8* mac,
143 tANI_S32 state,
144 tANI_S32 reason,
145 void *ctx);
Chilam NG571c65a2013-01-19 12:27:36 +0530146typedef struct {
147 tANI_U16 period;
148 tANI_U16 bytes;
149} tdls_tx_tput_config_t;
150
151typedef struct {
152 tANI_U16 period;
153 tANI_U16 tries;
154} tdls_discovery_config_t;
155
156typedef struct {
157 tANI_U16 timeout;
158} tdls_rx_idle_config_t;
159
160typedef struct {
161 tANI_U16 rssi_thres;
162} tdls_rssi_config_t;
163
Hoonki Leed37cbb32013-04-20 00:31:14 -0700164struct _hddTdlsPeer_t;
Sunil Dutt41de4e22013-11-14 18:09:02 +0530165
166typedef struct {
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800167 struct list_head peer_list[256];
168 hdd_adapter_t *pAdapter;
Hoonki Leed37cbb32013-04-20 00:31:14 -0700169#ifdef TDLS_USE_SEPARATE_DISCOVERY_TIMER
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800170 vos_timer_t peerDiscoverTimer;
Hoonki Leed37cbb32013-04-20 00:31:14 -0700171#endif
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800172 vos_timer_t peerUpdateTimer;
Gopichand Nakkala75e7b282013-03-15 18:37:13 -0700173 vos_timer_t peerDiscoveryTimeoutTimer;
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800174 tdls_config_params_t threshold_config;
175 tANI_S32 discovery_peer_cnt;
Gopichand Nakkala75e7b282013-03-15 18:37:13 -0700176 tANI_U32 discovery_sent_cnt;
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800177 tANI_S8 ap_rssi;
Hoonki Leed37cbb32013-04-20 00:31:14 -0700178 struct _hddTdlsPeer_t *curr_candidate;
179 struct work_struct implicit_setup;
180 v_U32_t magic;
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800181} tdlsCtx_t;
182
Hoonki Leed37cbb32013-04-20 00:31:14 -0700183typedef struct _hddTdlsPeer_t {
Hoonki Lee387663d2013-02-05 18:08:43 -0800184 struct list_head node;
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800185 tdlsCtx_t *pHddTdlsCtx;
Hoonki Lee387663d2013-02-05 18:08:43 -0800186 tSirMacAddr peerMac;
187 tANI_U16 staId ;
188 tANI_S8 rssi;
Gopichand Nakkala901e8922013-03-04 23:45:58 -0800189 tTDLSCapType tdls_support;
190 tTDLSLinkStatus link_status;
Hoonki Lee11f7dda2013-02-14 16:55:44 -0800191 tANI_U8 signature;
Hoonki Leea34dd892013-02-05 22:56:02 -0800192 tANI_U8 is_responder;
Gopichand Nakkalac3694582013-02-13 20:51:22 -0800193 tANI_U8 discovery_processed;
Hoonki Lee387663d2013-02-05 18:08:43 -0800194 tANI_U16 discovery_attempt;
195 tANI_U16 tx_pkt;
196 tANI_U16 rx_pkt;
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530197 tANI_U8 uapsdQueues;
Agarwal Ashish16020c42014-12-29 22:01:11 +0530198 tANI_U8 qos;
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530199 tANI_U8 maxSp;
200 tANI_U8 isBufSta;
Naresh Jayaram3180aa42014-02-12 21:47:26 +0530201 tANI_U8 isOffChannelSupported;
202 tANI_U8 supported_channels_len;
203 tANI_U8 supported_channels[SIR_MAC_MAX_SUPP_CHANNELS];
204 tANI_U8 supported_oper_classes_len;
205 tANI_U8 supported_oper_classes[SIR_MAC_MAX_SUPP_OPER_CLASSES];
Hoonki Lee387663d2013-02-05 18:08:43 -0800206 vos_timer_t peerIdleTimer;
Hoonki Lee14621352013-04-16 17:51:19 -0700207 vos_timer_t initiatorWaitTimeoutTimer;
Naresh Jayaram937abdf2013-11-26 19:50:25 +0530208 tANI_BOOLEAN isForcedPeer;
Atul Mittal115287b2014-07-08 13:26:33 +0530209 /*EXT TDLS*/
210 tTDLSLinkReason reason;
211 cfg80211_exttdls_callback state_change_notification;
Hoonki Lee387663d2013-02-05 18:08:43 -0800212} hddTdlsPeer_t;
213
Hoonki Lee387663d2013-02-05 18:08:43 -0800214typedef struct {
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800215 /* Session ID */
216 tANI_U8 sessionId;
217 /*TDLS peer station id */
218 v_U8_t staId;
219 /* TDLS peer mac Address */
220 v_MACADDR_t peerMac;
221} tdlsConnInfo_t;
Chilam NG571c65a2013-01-19 12:27:36 +0530222
Agarwal Ashish4b87f922014-06-18 03:03:21 +0530223int wlan_hdd_sta_tdls_init(hdd_adapter_t *pAdapter);
224
225void wlan_hdd_tdls_init(hdd_context_t * pHddCtx);
Chilam NG571c65a2013-01-19 12:27:36 +0530226
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800227void wlan_hdd_tdls_exit(hdd_adapter_t *pAdapter);
Chilam NG571c65a2013-01-19 12:27:36 +0530228
Hoonki Lee387663d2013-02-05 18:08:43 -0800229void wlan_hdd_tdls_extract_da(struct sk_buff *skb, u8 *mac);
Chilam NG571c65a2013-01-19 12:27:36 +0530230
Hoonki Lee387663d2013-02-05 18:08:43 -0800231void wlan_hdd_tdls_extract_sa(struct sk_buff *skb, u8 *mac);
Chilam Ng1279e232013-01-25 15:06:52 -0800232
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800233int wlan_hdd_tdls_increment_pkt_count(hdd_adapter_t *pAdapter, u8 *mac, u8 tx);
Chilam NG571c65a2013-01-19 12:27:36 +0530234
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800235int wlan_hdd_tdls_set_sta_id(hdd_adapter_t *pAdapter, u8 *mac, u8 staId);
Chilam NG571c65a2013-01-19 12:27:36 +0530236
Madan Mohan Koyyalamudi96797442013-10-08 16:04:42 +0530237hddTdlsPeer_t *wlan_hdd_tdls_find_peer(hdd_adapter_t *pAdapter, u8 *mac, tANI_BOOLEAN mutexLock);
Chilam NG571c65a2013-01-19 12:27:36 +0530238
Hoonki Leea6d49be2013-04-05 09:43:25 -0700239hddTdlsPeer_t *wlan_hdd_tdls_find_all_peer(hdd_context_t *pHddCtx, u8 *mac);
240
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530241int wlan_hdd_tdls_get_link_establish_params(hdd_adapter_t *pAdapter, u8 *mac,
242 tCsrTdlsLinkEstablishParams* tdlsLinkEstablishParams);
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800243hddTdlsPeer_t *wlan_hdd_tdls_get_peer(hdd_adapter_t *pAdapter, u8 *mac);
Hoonki Lee387663d2013-02-05 18:08:43 -0800244
Gopichand Nakkala34d1b062013-03-19 15:28:33 -0700245int wlan_hdd_tdls_set_cap(hdd_adapter_t *pAdapter, u8* mac, tTDLSCapType cap);
Hoonki Lee27511902013-03-14 18:19:06 -0700246
Atul Mittal115287b2014-07-08 13:26:33 +0530247void wlan_hdd_tdls_set_peer_link_status(hddTdlsPeer_t *curr_peer,
248 tTDLSLinkStatus status,
249 tTDLSLinkReason reason);
250void wlan_hdd_tdls_set_link_status(hdd_adapter_t *pAdapter,
251 u8* mac,
252 tTDLSLinkStatus linkStatus,
253 tTDLSLinkReason reason);
Chilam NG571c65a2013-01-19 12:27:36 +0530254
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800255int wlan_hdd_tdls_recv_discovery_resp(hdd_adapter_t *pAdapter, u8 *mac);
Chilam NG571c65a2013-01-19 12:27:36 +0530256
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530257int wlan_hdd_tdls_set_peer_caps(hdd_adapter_t *pAdapter,
258 u8 *mac,
Naresh Jayaram3180aa42014-02-12 21:47:26 +0530259 tCsrStaParams *StaParams,
260 tANI_BOOLEAN isBufSta,
261 tANI_BOOLEAN isOffChannelSupported);
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530262
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800263int wlan_hdd_tdls_set_rssi(hdd_adapter_t *pAdapter, u8 *mac, tANI_S8 rxRssi);
Chilam NG571c65a2013-01-19 12:27:36 +0530264
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800265int wlan_hdd_tdls_set_responder(hdd_adapter_t *pAdapter, u8 *mac, tANI_U8 responder);
Hoonki Leea34dd892013-02-05 22:56:02 -0800266
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800267int wlan_hdd_tdls_get_responder(hdd_adapter_t *pAdapter, u8 *mac);
Hoonki Leea34dd892013-02-05 22:56:02 -0800268
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800269int wlan_hdd_tdls_set_signature(hdd_adapter_t *pAdapter, u8 *mac, tANI_U8 uSignature);
Hoonki Lee11f7dda2013-02-14 16:55:44 -0800270
Chilam Ng01120412013-02-19 18:32:21 -0800271int wlan_hdd_tdls_set_params(struct net_device *dev, tdls_config_params_t *config);
Chilam NG571c65a2013-01-19 12:27:36 +0530272
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800273int wlan_hdd_tdls_reset_peer(hdd_adapter_t *pAdapter, u8 *mac);
Hoonki Lee387663d2013-02-05 18:08:43 -0800274
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800275tANI_U16 wlan_hdd_tdlsConnectedPeers(hdd_adapter_t *pAdapter);
Lee Hoonkic1262f22013-01-24 21:59:00 -0800276
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800277int wlan_hdd_tdls_get_all_peers(hdd_adapter_t *pAdapter, char *buf, int buflen);
Chilam Ng16a2a1c2013-01-29 01:27:29 -0800278
Gopichand Nakkalac3694582013-02-13 20:51:22 -0800279void wlan_hdd_tdls_connection_callback(hdd_adapter_t *pAdapter);
280
281void wlan_hdd_tdls_disconnection_callback(hdd_adapter_t *pAdapter);
282
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800283void wlan_hdd_tdls_mgmt_completion_callback(hdd_adapter_t *pAdapter, tANI_U32 statusCode);
284
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800285void wlan_hdd_tdls_increment_peer_count(hdd_adapter_t *pAdapter);
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800286
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800287void wlan_hdd_tdls_decrement_peer_count(hdd_adapter_t *pAdapter);
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800288
Gopichand Nakkala4327a152013-03-04 23:22:42 -0800289void wlan_hdd_tdls_check_bmps(hdd_adapter_t *pAdapter);
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800290
Gopichand Nakkala34d1b062013-03-19 15:28:33 -0700291u8 wlan_hdd_tdls_is_peer_progress(hdd_adapter_t *pAdapter, u8 *mac);
292
Madan Mohan Koyyalamudi96797442013-10-08 16:04:42 +0530293hddTdlsPeer_t *wlan_hdd_tdls_is_progress(hdd_context_t *pHddCtx, u8* mac, u8 skip_self);
Hoonki Lee387663d2013-02-05 18:08:43 -0800294
Gopichand Nakkaladcbcf4e2013-03-23 14:32:39 -0700295void wlan_hdd_tdls_set_mode(hdd_context_t *pHddCtx,
296 eTDLSSupportMode tdls_mode,
297 v_BOOL_t bUpdateLast);
Hoonki Lee27511902013-03-14 18:19:06 -0700298
Gopichand Nakkalaccd3a382013-03-19 13:56:10 -0700299tANI_U32 wlan_hdd_tdls_discovery_sent_cnt(hdd_context_t *pHddCtx);
300
Gopichand Nakkala34d1b062013-03-19 15:28:33 -0700301void wlan_hdd_tdls_check_power_save_prohibited(hdd_adapter_t *pAdapter);
Gopichand Nakkalaccd3a382013-03-19 13:56:10 -0700302
Hoonki Lee93e67ff2013-03-19 15:49:25 -0700303void wlan_hdd_tdls_free_scan_request (tdls_scan_context_t *tdls_scan_ctx);
304
305int wlan_hdd_tdls_copy_scan_context(hdd_context_t *pHddCtx,
306 struct wiphy *wiphy,
307#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0))
308 struct net_device *dev,
309#endif
310 struct cfg80211_scan_request *request);
311
312int wlan_hdd_tdls_scan_callback (hdd_adapter_t *pAdapter,
313 struct wiphy *wiphy,
314#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0))
315 struct net_device *dev,
316#endif
317 struct cfg80211_scan_request *request);
318
319void wlan_hdd_tdls_scan_done_callback(hdd_adapter_t *pAdapter);
320
Gopichand Nakkala3046fc92013-03-23 13:56:43 -0700321void wlan_hdd_tdls_timer_restart(hdd_adapter_t *pAdapter,
322 vos_timer_t *timer,
323 v_U32_t expirationTime);
Gopichand Nakkalae7cbc5d2013-03-27 21:09:23 -0700324void wlan_hdd_tdls_indicate_teardown(hdd_adapter_t *pAdapter,
Atul Mittal115287b2014-07-08 13:26:33 +0530325 hddTdlsPeer_t *curr_peer,
326 tANI_U16 reason);
Gopichand Nakkalae7cbc5d2013-03-27 21:09:23 -0700327
Naresh Jayaram937abdf2013-11-26 19:50:25 +0530328int wlan_hdd_tdls_set_force_peer(hdd_adapter_t *pAdapter, u8 *mac,
329 tANI_BOOLEAN forcePeer);
Atul Mittal115287b2014-07-08 13:26:33 +0530330int wlan_hdd_tdls_extctrl_deconfig_peer(hdd_adapter_t *pAdapter, u8 *peer);
331int wlan_hdd_tdls_extctrl_config_peer(hdd_adapter_t *pAdapter,
332 u8 *peer,
333 cfg80211_exttdls_callback callback);
334/*EXT TDLS*/
335int wlan_hdd_tdls_get_status(hdd_adapter_t *pAdapter,
336 tANI_U8* mac,
337 tANI_S32 *state,
338 tANI_S32 *reason);
339void wlan_hdd_tdls_get_wifi_hal_state(hddTdlsPeer_t *curr_peer,
340 tANI_S32 *state,
341 tANI_S32 *reason);
342int wlan_hdd_set_callback(hddTdlsPeer_t *curr_peer,
343 cfg80211_exttdls_callback callback);
Agarwal Ashishef54a182014-12-16 15:07:31 +0530344int hdd_set_tdls_scan_type(hdd_adapter_t *pAdapter,
345 tANI_U8 *ptr);
Gopichand Nakkala3046fc92013-03-23 13:56:43 -0700346
Atul Mittalc0f739f2014-07-31 13:47:47 +0530347// tdlsoffchan
348hddTdlsPeer_t *wlan_hdd_tdls_get_first_connected_peer(hdd_adapter_t *pAdapter);
Kiran V1ccee932012-12-12 14:49:46 -0800349#endif // __HDD_TDSL_H