Gopichand Nakkala | bd9fa2d | 2013-01-08 13:16:22 -0800 | [diff] [blame] | 1 | /* |
Bala Venkatesh | 5c06a25 | 2018-07-12 16:08:04 +0530 | [diff] [blame] | 2 | * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. |
Kiet Lam | 842dad0 | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 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 Nakkala | bd9fa2d | 2013-01-08 13:16:22 -0800 | [diff] [blame] | 20 | */ |
Kiet Lam | 842dad0 | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 21 | |
| 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 V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 28 | #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 V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 35 | ==========================================================================*/ |
| 36 | |
Masti, Narayanraddi | fdde4d0 | 2015-04-16 14:41:51 +0530 | [diff] [blame] | 37 | #ifdef FEATURE_WLAN_TDLS |
| 38 | |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 39 | #define MAX_NUM_TDLS_PEER 3 |
Kiran V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 40 | |
Gopichand Nakkala | c369458 | 2013-02-13 20:51:22 -0800 | [diff] [blame] | 41 | #define TDLS_SUB_DISCOVERY_PERIOD 100 |
| 42 | |
| 43 | #define TDLS_MAX_DISCOVER_REQS_PER_TIMER 1 |
Kiran V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 44 | |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 45 | #define TDLS_DISCOVERY_PERIOD 3600000 |
Kiran V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 46 | |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 47 | #define TDLS_TX_STATS_PERIOD 3600000 |
| 48 | |
| 49 | #define TDLS_IMPLICIT_TRIGGER_PKT_THRESHOLD 100 |
| 50 | |
| 51 | #define TDLS_RX_IDLE_TIMEOUT 5000 |
| 52 | |
| 53 | #define TDLS_RSSI_TRIGGER_HYSTERESIS 50 |
| 54 | |
Gopichand Nakkala | ccd3a38 | 2013-03-19 13:56:10 -0700 | [diff] [blame] | 55 | /* before UpdateTimer expires, we want to timeout discovery response. |
| 56 | should not be more than 2000 */ |
| 57 | #define TDLS_DISCOVERY_TIMEOUT_BEFORE_UPDATE 1000 |
Gopichand Nakkala | 75e7b28 | 2013-03-15 18:37:13 -0700 | [diff] [blame] | 58 | |
Hoonki Lee | 93e67ff | 2013-03-19 15:49:25 -0700 | [diff] [blame] | 59 | #define TDLS_CTX_MAGIC 0x54444c53 // "TDLS" |
| 60 | |
| 61 | #define TDLS_MAX_SCAN_SCHEDULE 10 |
Hoonki Lee | fb8df67 | 2013-04-10 18:20:34 -0700 | [diff] [blame] | 62 | #define TDLS_MAX_SCAN_REJECT 5 |
Hoonki Lee | 93e67ff | 2013-03-19 15:49:25 -0700 | [diff] [blame] | 63 | #define TDLS_DELAY_SCAN_PER_CONNECTION 100 |
| 64 | |
Gopichand Nakkala | e7cbc5d | 2013-03-27 21:09:23 -0700 | [diff] [blame] | 65 | #define TDLS_IS_CONNECTED(peer) \ |
| 66 | ((eTDLS_LINK_CONNECTED == (peer)->link_status) || \ |
| 67 | (eTDLS_LINK_TEARING == (peer)->link_status)) |
Pradeep Reddy POTTETI | e309c15 | 2015-02-06 13:21:07 +0530 | [diff] [blame] | 68 | |
| 69 | /* TDLS Off Channel Bandwidth Offset */ |
| 70 | #define TDLS_OFF_CHANNEL_BW_OFFSET 0 |
| 71 | |
| 72 | /* TDLS Channel Switch Request */ |
| 73 | #define TDLS_CHANNEL_SWITCH_ENABLE 1 |
| 74 | #define TDLS_CHANNEL_SWITCH_DISABLE 2 |
| 75 | |
Masti, Narayanraddi | 20494af | 2015-12-17 20:56:42 +0530 | [diff] [blame] | 76 | enum tdls_disable_source { |
| 77 | HDD_SET_TDLS_MODE_SOURCE_USER = 1, |
| 78 | HDD_SET_TDLS_MODE_SOURCE_SCAN = 2, |
| 79 | HDD_SET_TDLS_MODE_SOURCE_OFFCHANNEL = 4, |
| 80 | HDD_SET_TDLS_MODE_SOURCE_BTC = 8, |
Bala Venkatesh | 5c06a25 | 2018-07-12 16:08:04 +0530 | [diff] [blame] | 81 | HDD_SET_TDLS_MODE_SOURCE_CONCURRENCY = 16 |
Masti, Narayanraddi | 20494af | 2015-12-17 20:56:42 +0530 | [diff] [blame] | 82 | }; |
| 83 | |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 84 | typedef struct |
| 85 | { |
Chilam Ng | 0112041 | 2013-02-19 18:32:21 -0800 | [diff] [blame] | 86 | tANI_U32 tdls; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 87 | tANI_U32 tx_period_t; |
| 88 | tANI_U32 tx_packet_n; |
| 89 | tANI_U32 discovery_period_t; |
| 90 | tANI_U32 discovery_tries_n; |
Chilam Ng | 0112041 | 2013-02-19 18:32:21 -0800 | [diff] [blame] | 91 | tANI_U32 idle_timeout_t; |
| 92 | tANI_U32 idle_packet_n; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 93 | tANI_U32 rssi_hysteresis; |
Chilam Ng | 0112041 | 2013-02-19 18:32:21 -0800 | [diff] [blame] | 94 | tANI_S32 rssi_trigger_threshold; |
| 95 | tANI_S32 rssi_teardown_threshold; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 96 | } tdls_config_params_t; |
| 97 | |
| 98 | typedef enum { |
Hoonki Lee | 2751190 | 2013-03-14 18:19:06 -0700 | [diff] [blame] | 99 | eTDLS_SUPPORT_NOT_ENABLED = 0, |
| 100 | eTDLS_SUPPORT_DISABLED, /* suppress implicit trigger and not respond to the peer */ |
| 101 | eTDLS_SUPPORT_EXPLICIT_TRIGGER_ONLY, /* suppress implicit trigger, but respond to the peer */ |
| 102 | eTDLS_SUPPORT_ENABLED, /* implicit trigger */ |
Chilam Ng | 0112041 | 2013-02-19 18:32:21 -0800 | [diff] [blame] | 103 | } eTDLSSupportMode; |
| 104 | |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 105 | typedef enum eTDLSCapType{ |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 106 | eTDLS_CAP_NOT_SUPPORTED = -1, |
| 107 | eTDLS_CAP_UNKNOWN = 0, |
| 108 | eTDLS_CAP_SUPPORTED = 1, |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 109 | } tTDLSCapType; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 110 | |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 111 | typedef enum eTDLSLinkStatus { |
| 112 | eTDLS_LINK_IDLE = 0, |
| 113 | eTDLS_LINK_DISCOVERING, |
Gopichand Nakkala | 0592280 | 2013-03-14 12:23:19 -0700 | [diff] [blame] | 114 | eTDLS_LINK_DISCOVERED, |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 115 | eTDLS_LINK_CONNECTING, |
| 116 | eTDLS_LINK_CONNECTED, |
Gopichand Nakkala | e7cbc5d | 2013-03-27 21:09:23 -0700 | [diff] [blame] | 117 | eTDLS_LINK_TEARING, |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 118 | } tTDLSLinkStatus; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 119 | |
Abhishek Singh | 9656892 | 2016-01-05 15:28:12 +0530 | [diff] [blame] | 120 | /** |
| 121 | * enum tdls_teardown_reason - Reason for TDLS teardown |
| 122 | * @eTDLS_TEARDOWN_EXT_CTRL: Reason ext ctrl. |
| 123 | * @eTDLS_TEARDOWN_CONCURRENCY: Reason concurrency. |
| 124 | * @eTDLS_TEARDOWN_RSSI_THRESHOLD: Reason rssi threashold. |
| 125 | * @eTDLS_TEARDOWN_TXRX_THRESHOLD: Reason txrx threashold. |
| 126 | * @eTDLS_TEARDOWN_BTCOEX: Reason BTCOEX. |
| 127 | * @eTDLS_TEARDOWN_SCAN: Reason scan. |
| 128 | * @eTDLS_TEARDOWN_BSS_DISCONNECT: Reason bss disconnected. |
| 129 | * |
| 130 | * Reason to indicate in diag event of tdls teardown. |
| 131 | */ |
| 132 | |
| 133 | enum tdls_teardown_reason { |
| 134 | eTDLS_TEARDOWN_EXT_CTRL, |
| 135 | eTDLS_TEARDOWN_CONCURRENCY, |
| 136 | eTDLS_TEARDOWN_RSSI_THRESHOLD, |
| 137 | eTDLS_TEARDOWN_TXRX_THRESHOLD, |
| 138 | eTDLS_TEARDOWN_BTCOEX, |
| 139 | eTDLS_TEARDOWN_SCAN, |
| 140 | eTDLS_TEARDOWN_BSS_DISCONNECT, |
| 141 | }; |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 142 | |
| 143 | typedef enum { |
| 144 | eTDLS_LINK_SUCCESS, /* Success */ |
| 145 | eTDLS_LINK_UNSPECIFIED = -1, /* Unspecified reason */ |
| 146 | eTDLS_LINK_NOT_SUPPORTED = -2, /* Remote side doesn't support TDLS */ |
| 147 | eTDLS_LINK_UNSUPPORTED_BAND = -3, /* Remote side doesn't support this band */ |
| 148 | eTDLS_LINK_NOT_BENEFICIAL = -4, /* Going to AP is better than going direct */ |
| 149 | eTDLS_LINK_DROPPED_BY_REMOTE = -5 /* Remote side doesn't want it anymore */ |
| 150 | } tTDLSLinkReason; |
| 151 | |
| 152 | typedef struct { |
| 153 | int channel; /* channel hint, in channel number (NOT frequency ) */ |
| 154 | int global_operating_class; /* operating class to use */ |
| 155 | int max_latency_ms; /* max latency that can be tolerated by apps */ |
| 156 | int min_bandwidth_kbps; /* bandwidth required by apps, in kilo bits per second */ |
| 157 | } tdls_req_params_t; |
| 158 | |
| 159 | typedef enum { |
| 160 | WIFI_TDLS_DISABLED, /* TDLS is not enabled, or is disabled now */ |
| 161 | WIFI_TDLS_ENABLED, /* TDLS is enabled, but not yet tried */ |
| 162 | WIFI_TDLS_TRYING, /* Direct link is being attempted (optional) */ |
| 163 | WIFI_TDLS_ESTABLISHED, /* Direct link is established */ |
| 164 | WIFI_TDLS_ESTABLISHED_OFF_CHANNEL, /* Direct link is established using MCC */ |
| 165 | WIFI_TDLS_DROPPED, /* Direct link was established, but is now dropped */ |
| 166 | WIFI_TDLS_FAILED /* Direct link failed */ |
| 167 | } tdls_state_t; |
| 168 | |
Anand N Sunkad | b3ab97d | 2015-07-29 09:58:13 +0530 | [diff] [blame] | 169 | typedef int (*cfg80211_exttdls_callback)( |
| 170 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 171 | const tANI_U8* mac, |
| 172 | #else |
| 173 | tANI_U8* mac, |
| 174 | #endif |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 175 | tANI_S32 state, |
| 176 | tANI_S32 reason, |
| 177 | void *ctx); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 178 | typedef struct { |
| 179 | tANI_U16 period; |
| 180 | tANI_U16 bytes; |
| 181 | } tdls_tx_tput_config_t; |
| 182 | |
| 183 | typedef struct { |
| 184 | tANI_U16 period; |
| 185 | tANI_U16 tries; |
| 186 | } tdls_discovery_config_t; |
| 187 | |
| 188 | typedef struct { |
| 189 | tANI_U16 timeout; |
| 190 | } tdls_rx_idle_config_t; |
| 191 | |
| 192 | typedef struct { |
| 193 | tANI_U16 rssi_thres; |
| 194 | } tdls_rssi_config_t; |
| 195 | |
Hoonki Lee | d37cbb3 | 2013-04-20 00:31:14 -0700 | [diff] [blame] | 196 | struct _hddTdlsPeer_t; |
Sunil Dutt | 41de4e2 | 2013-11-14 18:09:02 +0530 | [diff] [blame] | 197 | |
| 198 | typedef struct { |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 199 | struct list_head peer_list[256]; |
| 200 | hdd_adapter_t *pAdapter; |
Hoonki Lee | d37cbb3 | 2013-04-20 00:31:14 -0700 | [diff] [blame] | 201 | #ifdef TDLS_USE_SEPARATE_DISCOVERY_TIMER |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 202 | vos_timer_t peerDiscoverTimer; |
Hoonki Lee | d37cbb3 | 2013-04-20 00:31:14 -0700 | [diff] [blame] | 203 | #endif |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 204 | vos_timer_t peerUpdateTimer; |
Gopichand Nakkala | 75e7b28 | 2013-03-15 18:37:13 -0700 | [diff] [blame] | 205 | vos_timer_t peerDiscoveryTimeoutTimer; |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 206 | tdls_config_params_t threshold_config; |
| 207 | tANI_S32 discovery_peer_cnt; |
Gopichand Nakkala | 75e7b28 | 2013-03-15 18:37:13 -0700 | [diff] [blame] | 208 | tANI_U32 discovery_sent_cnt; |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 209 | tANI_S8 ap_rssi; |
Hoonki Lee | d37cbb3 | 2013-04-20 00:31:14 -0700 | [diff] [blame] | 210 | struct _hddTdlsPeer_t *curr_candidate; |
| 211 | struct work_struct implicit_setup; |
Ganesh Kondabattini | 17e6066 | 2017-05-25 12:36:07 +0530 | [diff] [blame] | 212 | bool is_tdls_disabled_bmps; |
Hoonki Lee | d37cbb3 | 2013-04-20 00:31:14 -0700 | [diff] [blame] | 213 | v_U32_t magic; |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 214 | } tdlsCtx_t; |
| 215 | |
Hoonki Lee | d37cbb3 | 2013-04-20 00:31:14 -0700 | [diff] [blame] | 216 | typedef struct _hddTdlsPeer_t { |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 217 | struct list_head node; |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 218 | tdlsCtx_t *pHddTdlsCtx; |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 219 | tSirMacAddr peerMac; |
| 220 | tANI_U16 staId ; |
| 221 | tANI_S8 rssi; |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 222 | tTDLSCapType tdls_support; |
| 223 | tTDLSLinkStatus link_status; |
Hoonki Lee | 11f7dda | 2013-02-14 16:55:44 -0800 | [diff] [blame] | 224 | tANI_U8 signature; |
Hoonki Lee | a34dd89 | 2013-02-05 22:56:02 -0800 | [diff] [blame] | 225 | tANI_U8 is_responder; |
Gopichand Nakkala | c369458 | 2013-02-13 20:51:22 -0800 | [diff] [blame] | 226 | tANI_U8 discovery_processed; |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 227 | tANI_U16 discovery_attempt; |
| 228 | tANI_U16 tx_pkt; |
| 229 | tANI_U16 rx_pkt; |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 230 | tANI_U8 uapsdQueues; |
Agarwal Ashish | 16020c4 | 2014-12-29 22:01:11 +0530 | [diff] [blame] | 231 | tANI_U8 qos; |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 232 | tANI_U8 maxSp; |
| 233 | tANI_U8 isBufSta; |
Naresh Jayaram | 3180aa4 | 2014-02-12 21:47:26 +0530 | [diff] [blame] | 234 | tANI_U8 isOffChannelSupported; |
| 235 | tANI_U8 supported_channels_len; |
| 236 | tANI_U8 supported_channels[SIR_MAC_MAX_SUPP_CHANNELS]; |
| 237 | tANI_U8 supported_oper_classes_len; |
| 238 | tANI_U8 supported_oper_classes[SIR_MAC_MAX_SUPP_OPER_CLASSES]; |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 239 | vos_timer_t peerIdleTimer; |
Hoonki Lee | 1462135 | 2013-04-16 17:51:19 -0700 | [diff] [blame] | 240 | vos_timer_t initiatorWaitTimeoutTimer; |
Naresh Jayaram | 937abdf | 2013-11-26 19:50:25 +0530 | [diff] [blame] | 241 | tANI_BOOLEAN isForcedPeer; |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 242 | /*EXT TDLS*/ |
| 243 | tTDLSLinkReason reason; |
| 244 | cfg80211_exttdls_callback state_change_notification; |
Pradeep Reddy POTTETI | e309c15 | 2015-02-06 13:21:07 +0530 | [diff] [blame] | 245 | tANI_BOOLEAN isOffChannelConfigured; |
Pradeep Reddy POTTETI | 16d8333 | 2015-03-26 18:28:13 +0530 | [diff] [blame] | 246 | tANI_BOOLEAN isOffChannelEstablished; |
Pradeep Reddy POTTETI | e309c15 | 2015-02-06 13:21:07 +0530 | [diff] [blame] | 247 | tdls_req_params_t peerParams; |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 248 | } hddTdlsPeer_t; |
| 249 | |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 250 | typedef struct { |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 251 | /* Session ID */ |
| 252 | tANI_U8 sessionId; |
| 253 | /*TDLS peer station id */ |
| 254 | v_U8_t staId; |
| 255 | /* TDLS peer mac Address */ |
| 256 | v_MACADDR_t peerMac; |
| 257 | } tdlsConnInfo_t; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 258 | |
Agarwal Ashish | 4b87f92 | 2014-06-18 03:03:21 +0530 | [diff] [blame] | 259 | int wlan_hdd_sta_tdls_init(hdd_adapter_t *pAdapter); |
| 260 | |
| 261 | void wlan_hdd_tdls_init(hdd_context_t * pHddCtx); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 262 | |
Pradeep Reddy POTTETI | 2d4d5c4 | 2015-03-03 14:34:19 +0530 | [diff] [blame] | 263 | void wlan_hdd_tdls_exit(hdd_adapter_t *pAdapter, tANI_BOOLEAN mutexLock); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 264 | |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 265 | void wlan_hdd_tdls_extract_da(struct sk_buff *skb, u8 *mac); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 266 | |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 267 | void wlan_hdd_tdls_extract_sa(struct sk_buff *skb, u8 *mac); |
Chilam Ng | 1279e23 | 2013-01-25 15:06:52 -0800 | [diff] [blame] | 268 | |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 269 | int wlan_hdd_tdls_set_sta_id(hdd_adapter_t *pAdapter, |
| 270 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 271 | const u8 *mac, |
| 272 | #else |
| 273 | u8 *mac, |
| 274 | #endif |
| 275 | u8 staId); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 276 | |
Anand N Sunkad | b3ab97d | 2015-07-29 09:58:13 +0530 | [diff] [blame] | 277 | hddTdlsPeer_t *wlan_hdd_tdls_find_peer(hdd_adapter_t *pAdapter, |
Anand N Sunkad | b3ab97d | 2015-07-29 09:58:13 +0530 | [diff] [blame] | 278 | const u8 *mac, |
Anand N Sunkad | b3ab97d | 2015-07-29 09:58:13 +0530 | [diff] [blame] | 279 | tANI_BOOLEAN mutexLock); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 280 | |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 281 | hddTdlsPeer_t *wlan_hdd_tdls_find_all_peer(hdd_context_t *pHddCtx, |
| 282 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 283 | const u8 *mac |
| 284 | #else |
| 285 | u8 *mac |
| 286 | #endif |
| 287 | ); |
Hoonki Lee | a6d49be | 2013-04-05 09:43:25 -0700 | [diff] [blame] | 288 | |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 289 | int wlan_hdd_tdls_get_link_establish_params(hdd_adapter_t *pAdapter, |
| 290 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 291 | const u8 *mac, |
| 292 | #else |
| 293 | u8 *mac, |
| 294 | #endif |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 295 | tCsrTdlsLinkEstablishParams* tdlsLinkEstablishParams); |
Anand N Sunkad | b3ab97d | 2015-07-29 09:58:13 +0530 | [diff] [blame] | 296 | hddTdlsPeer_t *wlan_hdd_tdls_get_peer(hdd_adapter_t *pAdapter, |
| 297 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 298 | const u8 *mac |
| 299 | #else |
| 300 | u8 *mac |
| 301 | #endif |
| 302 | ); |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 303 | |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 304 | int wlan_hdd_tdls_set_cap(hdd_adapter_t *pAdapter, |
| 305 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 306 | const u8* mac, |
| 307 | #else |
| 308 | u8* mac, |
| 309 | #endif |
| 310 | tTDLSCapType cap); |
Hoonki Lee | 2751190 | 2013-03-14 18:19:06 -0700 | [diff] [blame] | 311 | |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 312 | void wlan_hdd_tdls_set_peer_link_status(hddTdlsPeer_t *curr_peer, |
| 313 | tTDLSLinkStatus status, |
| 314 | tTDLSLinkReason reason); |
| 315 | void wlan_hdd_tdls_set_link_status(hdd_adapter_t *pAdapter, |
Anand N Sunkad | b3ab97d | 2015-07-29 09:58:13 +0530 | [diff] [blame] | 316 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 317 | const u8 *mac, |
| 318 | #else |
| 319 | u8 *mac, |
| 320 | #endif |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 321 | tTDLSLinkStatus linkStatus, |
| 322 | tTDLSLinkReason reason); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 323 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 324 | int wlan_hdd_tdls_recv_discovery_resp(hdd_adapter_t *pAdapter, u8 *mac); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 325 | |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 326 | int wlan_hdd_tdls_set_peer_caps(hdd_adapter_t *pAdapter, |
Anand N Sunkad | b3ab97d | 2015-07-29 09:58:13 +0530 | [diff] [blame] | 327 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 328 | const u8 *mac, |
| 329 | #else |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 330 | u8 *mac, |
Anand N Sunkad | b3ab97d | 2015-07-29 09:58:13 +0530 | [diff] [blame] | 331 | #endif |
Naresh Jayaram | 3180aa4 | 2014-02-12 21:47:26 +0530 | [diff] [blame] | 332 | tCsrStaParams *StaParams, |
| 333 | tANI_BOOLEAN isBufSta, |
Masti, Narayanraddi | c754cdc | 2015-12-24 18:22:36 +0530 | [diff] [blame] | 334 | tANI_BOOLEAN isOffChannelSupported, |
| 335 | tANI_BOOLEAN isQosWmmSta); |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 336 | |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 337 | int wlan_hdd_tdls_set_rssi(hdd_adapter_t *pAdapter, |
| 338 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 339 | const u8 *mac, |
| 340 | #else |
| 341 | u8 *mac, |
| 342 | #endif |
| 343 | tANI_S8 rxRssi); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 344 | |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 345 | int wlan_hdd_tdls_set_responder(hdd_adapter_t *pAdapter, |
| 346 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 347 | const u8 *mac, |
| 348 | #else |
| 349 | u8 *mac, |
| 350 | #endif |
| 351 | tANI_U8 responder); |
Hoonki Lee | a34dd89 | 2013-02-05 22:56:02 -0800 | [diff] [blame] | 352 | |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 353 | int wlan_hdd_tdls_set_signature(hdd_adapter_t *pAdapter, |
| 354 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 355 | const u8 *mac, |
| 356 | #else |
| 357 | u8 *mac, |
| 358 | #endif |
| 359 | tANI_U8 uSignature); |
Hoonki Lee | 11f7dda | 2013-02-14 16:55:44 -0800 | [diff] [blame] | 360 | |
Chilam Ng | 0112041 | 2013-02-19 18:32:21 -0800 | [diff] [blame] | 361 | int wlan_hdd_tdls_set_params(struct net_device *dev, tdls_config_params_t *config); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 362 | |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 363 | int wlan_hdd_tdls_reset_peer(hdd_adapter_t *pAdapter, |
| 364 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 365 | const u8 *mac |
| 366 | #else |
| 367 | u8 *mac |
| 368 | #endif |
| 369 | ); |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 370 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 371 | tANI_U16 wlan_hdd_tdlsConnectedPeers(hdd_adapter_t *pAdapter); |
Lee Hoonki | c1262f2 | 2013-01-24 21:59:00 -0800 | [diff] [blame] | 372 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 373 | int wlan_hdd_tdls_get_all_peers(hdd_adapter_t *pAdapter, char *buf, int buflen); |
Chilam Ng | 16a2a1c | 2013-01-29 01:27:29 -0800 | [diff] [blame] | 374 | |
Gopichand Nakkala | c369458 | 2013-02-13 20:51:22 -0800 | [diff] [blame] | 375 | void wlan_hdd_tdls_connection_callback(hdd_adapter_t *pAdapter); |
| 376 | |
| 377 | void wlan_hdd_tdls_disconnection_callback(hdd_adapter_t *pAdapter); |
| 378 | |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 379 | void wlan_hdd_tdls_mgmt_completion_callback(hdd_adapter_t *pAdapter, tANI_U32 statusCode); |
| 380 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 381 | void wlan_hdd_tdls_increment_peer_count(hdd_adapter_t *pAdapter); |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 382 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 383 | void wlan_hdd_tdls_decrement_peer_count(hdd_adapter_t *pAdapter); |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 384 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 385 | void wlan_hdd_tdls_check_bmps(hdd_adapter_t *pAdapter); |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 386 | |
Anand N Sunkad | b3ab97d | 2015-07-29 09:58:13 +0530 | [diff] [blame] | 387 | hddTdlsPeer_t *wlan_hdd_tdls_is_progress(hdd_context_t *pHddCtx, |
| 388 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 389 | const u8 *mac, |
| 390 | #else |
| 391 | u8 *mac, |
| 392 | #endif |
Pradeep Reddy POTTETI | 9db32f0 | 2015-01-29 15:22:54 +0530 | [diff] [blame] | 393 | u8 skip_self, tANI_BOOLEAN mutexLock); |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 394 | |
Gopichand Nakkala | dcbcf4e | 2013-03-23 14:32:39 -0700 | [diff] [blame] | 395 | void wlan_hdd_tdls_set_mode(hdd_context_t *pHddCtx, |
| 396 | eTDLSSupportMode tdls_mode, |
Masti, Narayanraddi | 20494af | 2015-12-17 20:56:42 +0530 | [diff] [blame] | 397 | v_BOOL_t bUpdateLast, |
| 398 | enum tdls_disable_source source); |
Hoonki Lee | 2751190 | 2013-03-14 18:19:06 -0700 | [diff] [blame] | 399 | |
Gopichand Nakkala | ccd3a38 | 2013-03-19 13:56:10 -0700 | [diff] [blame] | 400 | tANI_U32 wlan_hdd_tdls_discovery_sent_cnt(hdd_context_t *pHddCtx); |
| 401 | |
Gopichand Nakkala | 34d1b06 | 2013-03-19 15:28:33 -0700 | [diff] [blame] | 402 | void wlan_hdd_tdls_check_power_save_prohibited(hdd_adapter_t *pAdapter); |
Gopichand Nakkala | ccd3a38 | 2013-03-19 13:56:10 -0700 | [diff] [blame] | 403 | |
Hoonki Lee | 93e67ff | 2013-03-19 15:49:25 -0700 | [diff] [blame] | 404 | int wlan_hdd_tdls_scan_callback (hdd_adapter_t *pAdapter, |
| 405 | struct wiphy *wiphy, |
| 406 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0)) |
| 407 | struct net_device *dev, |
| 408 | #endif |
| 409 | struct cfg80211_scan_request *request); |
| 410 | |
| 411 | void wlan_hdd_tdls_scan_done_callback(hdd_adapter_t *pAdapter); |
| 412 | |
Gopichand Nakkala | 3046fc9 | 2013-03-23 13:56:43 -0700 | [diff] [blame] | 413 | void wlan_hdd_tdls_timer_restart(hdd_adapter_t *pAdapter, |
| 414 | vos_timer_t *timer, |
| 415 | v_U32_t expirationTime); |
Gopichand Nakkala | e7cbc5d | 2013-03-27 21:09:23 -0700 | [diff] [blame] | 416 | void wlan_hdd_tdls_indicate_teardown(hdd_adapter_t *pAdapter, |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 417 | hddTdlsPeer_t *curr_peer, |
| 418 | tANI_U16 reason); |
Abhishek Singh | 9656892 | 2016-01-05 15:28:12 +0530 | [diff] [blame] | 419 | #ifdef FEATURE_WLAN_DIAG_SUPPORT |
| 420 | void hdd_send_wlan_tdls_teardown_event(uint32_t reason, |
| 421 | uint8_t *peer_mac); |
Abhishek Singh | 5f54402 | 2016-01-05 15:57:19 +0530 | [diff] [blame] | 422 | void hdd_wlan_tdls_enable_link_event(const uint8_t *peer_mac, |
| 423 | uint8_t is_off_chan_supported, |
| 424 | uint8_t is_off_chan_configured, |
| 425 | uint8_t is_off_chan_established); |
Abhishek Singh | 48e043d | 2016-01-05 18:27:29 +0530 | [diff] [blame] | 426 | void hdd_wlan_block_scan_by_tdls(void); |
| 427 | |
Abhishek Singh | 9656892 | 2016-01-05 15:28:12 +0530 | [diff] [blame] | 428 | #else |
| 429 | static inline |
| 430 | void hdd_send_wlan_tdls_teardown_event(uint32_t reason, |
| 431 | uint8_t *peer_mac) |
| 432 | { |
| 433 | return; |
| 434 | } |
Abhishek Singh | 5f54402 | 2016-01-05 15:57:19 +0530 | [diff] [blame] | 435 | static inline |
| 436 | void hdd_wlan_tdls_enable_link_event(const uint8_t *peer_mac, |
| 437 | uint8_t is_off_chan_supported, |
| 438 | uint8_t is_off_chan_configured, |
| 439 | uint8_t is_off_chan_established) |
| 440 | { |
| 441 | return; |
| 442 | } |
Abhishek Singh | 48e043d | 2016-01-05 18:27:29 +0530 | [diff] [blame] | 443 | static inline |
| 444 | void hdd_wlan_block_scan_by_tdls(void) |
| 445 | { |
| 446 | return; |
| 447 | } |
Abhishek Singh | 9656892 | 2016-01-05 15:28:12 +0530 | [diff] [blame] | 448 | #endif /* FEATURE_WLAN_DIAG_SUPPORT */ |
Gopichand Nakkala | e7cbc5d | 2013-03-27 21:09:23 -0700 | [diff] [blame] | 449 | |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 450 | int wlan_hdd_tdls_set_force_peer(hdd_adapter_t *pAdapter, |
| 451 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 452 | const u8 *mac, |
| 453 | #else |
| 454 | u8 *mac, |
| 455 | #endif |
Naresh Jayaram | 937abdf | 2013-11-26 19:50:25 +0530 | [diff] [blame] | 456 | tANI_BOOLEAN forcePeer); |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 457 | int wlan_hdd_tdls_extctrl_deconfig_peer(hdd_adapter_t *pAdapter, |
| 458 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 459 | const u8 *peer |
| 460 | #else |
| 461 | u8 *peer |
| 462 | #endif |
| 463 | ); |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 464 | int wlan_hdd_tdls_extctrl_config_peer(hdd_adapter_t *pAdapter, |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 465 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 466 | const u8 *peer, |
| 467 | #else |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 468 | u8 *peer, |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 469 | #endif |
Pradeep Reddy POTTETI | e309c15 | 2015-02-06 13:21:07 +0530 | [diff] [blame] | 470 | tdls_req_params_t *tdls_peer_params, |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 471 | cfg80211_exttdls_callback callback); |
Masti, Narayanraddi | fdde4d0 | 2015-04-16 14:41:51 +0530 | [diff] [blame] | 472 | void hdd_tdls_notify_mode_change(hdd_adapter_t *pAdapter, |
| 473 | hdd_context_t *pHddCtx); |
| 474 | void wlan_hdd_tdls_disable_offchan_and_teardown_links(hdd_context_t *pHddCtx); |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 475 | /*EXT TDLS*/ |
| 476 | int wlan_hdd_tdls_get_status(hdd_adapter_t *pAdapter, |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 477 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 478 | const tANI_U8* mac, |
| 479 | #else |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 480 | tANI_U8* mac, |
Anand N Sunkad | 9bfc262 | 2015-07-30 15:18:54 +0530 | [diff] [blame] | 481 | #endif |
Atul Mittal | 115287b | 2014-07-08 13:26:33 +0530 | [diff] [blame] | 482 | tANI_S32 *state, |
| 483 | tANI_S32 *reason); |
| 484 | void wlan_hdd_tdls_get_wifi_hal_state(hddTdlsPeer_t *curr_peer, |
| 485 | tANI_S32 *state, |
| 486 | tANI_S32 *reason); |
| 487 | int wlan_hdd_set_callback(hddTdlsPeer_t *curr_peer, |
| 488 | cfg80211_exttdls_callback callback); |
Agarwal Ashish | ef54a18 | 2014-12-16 15:07:31 +0530 | [diff] [blame] | 489 | int hdd_set_tdls_scan_type(hdd_adapter_t *pAdapter, |
| 490 | tANI_U8 *ptr); |
Gopichand Nakkala | 3046fc9 | 2013-03-23 13:56:43 -0700 | [diff] [blame] | 491 | |
Atul Mittal | c0f739f | 2014-07-31 13:47:47 +0530 | [diff] [blame] | 492 | // tdlsoffchan |
Pradeep Reddy POTTETI | e309c15 | 2015-02-06 13:21:07 +0530 | [diff] [blame] | 493 | hddTdlsPeer_t *wlan_hdd_tdls_get_connected_peer(hdd_adapter_t *pAdapter); |
Mahesh A Saptasagar | 170b508 | 2015-02-16 18:50:54 +0530 | [diff] [blame] | 494 | |
| 495 | int wlan_hdd_validate_tdls_context(hdd_context_t *pHddCtx, tdlsCtx_t *pTdlsCtx); |
Masti, Narayanraddi | fdde4d0 | 2015-04-16 14:41:51 +0530 | [diff] [blame] | 496 | |
Masti, Narayanraddi | 575ccc7 | 2015-08-17 18:04:57 +0530 | [diff] [blame] | 497 | void wlan_hdd_tdls_reenable(hdd_context_t *pHddCtx); |
Masti, Narayanraddi | 44b0db0 | 2015-12-22 11:54:35 +0530 | [diff] [blame] | 498 | |
Masti, Narayanraddi | 63d6235 | 2015-10-01 12:52:50 +0530 | [diff] [blame] | 499 | void wlan_hdd_tdls_notify_packet(hdd_adapter_t *adapter, struct sk_buff *skb); |
Masti, Narayanraddi | 44b0db0 | 2015-12-22 11:54:35 +0530 | [diff] [blame] | 500 | |
| 501 | void wlan_hdd_change_tdls_mode(void *hdd_ctx); |
| 502 | |
| 503 | void wlan_hdd_start_stop_tdls_source_timer(hdd_context_t *pHddCtx, |
| 504 | eTDLSSupportMode tdls_mode); |
Masti, Narayanraddi | fdde4d0 | 2015-04-16 14:41:51 +0530 | [diff] [blame] | 505 | #else |
| 506 | static inline void hdd_tdls_notify_mode_change(hdd_adapter_t *pAdapter, |
| 507 | hdd_context_t *pHddCtx) |
| 508 | { |
| 509 | } |
| 510 | static inline void |
| 511 | wlan_hdd_tdls_disable_offchan_and_teardown_links(hdd_context_t *pHddCtx) |
| 512 | { |
| 513 | } |
Masti, Narayanraddi | 575ccc7 | 2015-08-17 18:04:57 +0530 | [diff] [blame] | 514 | static inline void |
| 515 | wlan_hdd_tdls_reenable(hdd_context_t *pHddCtx) |
| 516 | { |
| 517 | } |
Masti, Narayanraddi | 63d6235 | 2015-10-01 12:52:50 +0530 | [diff] [blame] | 518 | static inline void |
| 519 | wlan_hdd_tdls_notify_packet(hdd_adapter_t *adapter, struct sk_buff *skb) |
| 520 | { |
| 521 | } |
Masti, Narayanraddi | 44b0db0 | 2015-12-22 11:54:35 +0530 | [diff] [blame] | 522 | static inline void |
| 523 | wlan_hdd_change_tdls_mode(void *hdd_ctx) |
| 524 | { |
| 525 | } |
| 526 | |
| 527 | static inline void |
| 528 | wlan_hdd_start_stop_tdls_source_timer(hdd_context_t *pHddCtx, |
| 529 | eTDLSSupportMode tdls_mode) |
| 530 | { |
| 531 | } |
Masti, Narayanraddi | fdde4d0 | 2015-04-16 14:41:51 +0530 | [diff] [blame] | 532 | #endif |
Ganesh Kondabattini | f3ba097 | 2015-08-07 15:58:04 +0530 | [diff] [blame] | 533 | void wlan_hdd_tdls_update_rx_pkt_cnt_n_rssi(hdd_adapter_t *pAdapter, |
| 534 | u8 *mac, v_S7_t rssiAvg); |
Ganesh Kondabattini | cbfdc39 | 2015-09-11 19:12:59 +0530 | [diff] [blame] | 535 | |
| 536 | |
| 537 | tdlsConnInfo_t *wlan_hdd_get_conn_info(hdd_context_t *pHddCtx, |
| 538 | tANI_U8 idx); |
| 539 | |
| 540 | v_VOID_t wlan_hdd_tdls_initiator_wait_cb(v_PVOID_t userData); |
| 541 | |
Deepthi Gowri | 03a979f | 2016-11-03 15:20:19 +0530 | [diff] [blame] | 542 | void wlan_hdd_get_tdls_stats(hdd_adapter_t *pAdapter); |
| 543 | |
Kiran V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 544 | #endif // __HDD_TDSL_H |