Gopichand Nakkala | bd9fa2d | 2013-01-08 13:16:22 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012-2013, 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. |
| 20 | */ |
Kiran V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 21 | #ifndef __HDD_TDSL_H |
| 22 | #define __HDD_TDSL_H |
| 23 | /**=========================================================================== |
| 24 | |
| 25 | \file wlan_hdd_tdls.h |
| 26 | |
| 27 | \brief Linux HDD TDLS include file |
Gopichand Nakkala | 0c1331e | 2013-01-07 22:49:07 -0800 | [diff] [blame] | 28 | |
Kiran V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 29 | ==========================================================================*/ |
| 30 | |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 31 | #define MAX_NUM_TDLS_PEER 3 |
Kiran V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 32 | |
Gopichand Nakkala | c369458 | 2013-02-13 20:51:22 -0800 | [diff] [blame] | 33 | #define TDLS_SUB_DISCOVERY_PERIOD 100 |
| 34 | |
| 35 | #define TDLS_MAX_DISCOVER_REQS_PER_TIMER 1 |
Kiran V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 36 | |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 37 | #define TDLS_DISCOVERY_PERIOD 3600000 |
Kiran V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 38 | |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 39 | #define TDLS_TX_STATS_PERIOD 3600000 |
| 40 | |
| 41 | #define TDLS_IMPLICIT_TRIGGER_PKT_THRESHOLD 100 |
| 42 | |
| 43 | #define TDLS_RX_IDLE_TIMEOUT 5000 |
| 44 | |
| 45 | #define TDLS_RSSI_TRIGGER_HYSTERESIS 50 |
| 46 | |
Gopichand Nakkala | ccd3a38 | 2013-03-19 13:56:10 -0700 | [diff] [blame] | 47 | /* before UpdateTimer expires, we want to timeout discovery response. |
| 48 | should not be more than 2000 */ |
| 49 | #define TDLS_DISCOVERY_TIMEOUT_BEFORE_UPDATE 1000 |
Gopichand Nakkala | 75e7b28 | 2013-03-15 18:37:13 -0700 | [diff] [blame] | 50 | |
Hoonki Lee | 93e67ff | 2013-03-19 15:49:25 -0700 | [diff] [blame] | 51 | #define TDLS_CTX_MAGIC 0x54444c53 // "TDLS" |
| 52 | |
| 53 | #define TDLS_MAX_SCAN_SCHEDULE 10 |
Hoonki Lee | fb8df67 | 2013-04-10 18:20:34 -0700 | [diff] [blame^] | 54 | #define TDLS_MAX_SCAN_REJECT 5 |
Hoonki Lee | 93e67ff | 2013-03-19 15:49:25 -0700 | [diff] [blame] | 55 | #define TDLS_DELAY_SCAN_PER_CONNECTION 100 |
| 56 | |
Gopichand Nakkala | e7cbc5d | 2013-03-27 21:09:23 -0700 | [diff] [blame] | 57 | #define TDLS_IS_CONNECTED(peer) \ |
| 58 | ((eTDLS_LINK_CONNECTED == (peer)->link_status) || \ |
| 59 | (eTDLS_LINK_TEARING == (peer)->link_status)) |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 60 | typedef struct |
| 61 | { |
Chilam Ng | 0112041 | 2013-02-19 18:32:21 -0800 | [diff] [blame] | 62 | tANI_U32 tdls; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 63 | tANI_U32 tx_period_t; |
| 64 | tANI_U32 tx_packet_n; |
| 65 | tANI_U32 discovery_period_t; |
| 66 | tANI_U32 discovery_tries_n; |
Chilam Ng | 0112041 | 2013-02-19 18:32:21 -0800 | [diff] [blame] | 67 | tANI_U32 idle_timeout_t; |
| 68 | tANI_U32 idle_packet_n; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 69 | tANI_U32 rssi_hysteresis; |
Chilam Ng | 0112041 | 2013-02-19 18:32:21 -0800 | [diff] [blame] | 70 | tANI_S32 rssi_trigger_threshold; |
| 71 | tANI_S32 rssi_teardown_threshold; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 72 | } tdls_config_params_t; |
| 73 | |
Hoonki Lee | 93e67ff | 2013-03-19 15:49:25 -0700 | [diff] [blame] | 74 | typedef struct |
| 75 | { |
| 76 | struct wiphy *wiphy; |
| 77 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0)) |
| 78 | struct net_device *dev; |
| 79 | #endif |
| 80 | struct cfg80211_scan_request *scan_request; |
| 81 | int magic; |
| 82 | int attempt; |
Hoonki Lee | fb8df67 | 2013-04-10 18:20:34 -0700 | [diff] [blame^] | 83 | int reject; |
Hoonki Lee | 93e67ff | 2013-03-19 15:49:25 -0700 | [diff] [blame] | 84 | struct delayed_work tdls_scan_work; |
| 85 | } tdls_scan_context_t; |
| 86 | |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 87 | typedef enum { |
Hoonki Lee | 2751190 | 2013-03-14 18:19:06 -0700 | [diff] [blame] | 88 | eTDLS_SUPPORT_NOT_ENABLED = 0, |
| 89 | eTDLS_SUPPORT_DISABLED, /* suppress implicit trigger and not respond to the peer */ |
| 90 | eTDLS_SUPPORT_EXPLICIT_TRIGGER_ONLY, /* suppress implicit trigger, but respond to the peer */ |
| 91 | eTDLS_SUPPORT_ENABLED, /* implicit trigger */ |
Chilam Ng | 0112041 | 2013-02-19 18:32:21 -0800 | [diff] [blame] | 92 | } eTDLSSupportMode; |
| 93 | |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 94 | typedef enum eTDLSCapType{ |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 95 | eTDLS_CAP_NOT_SUPPORTED = -1, |
| 96 | eTDLS_CAP_UNKNOWN = 0, |
| 97 | eTDLS_CAP_SUPPORTED = 1, |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 98 | } tTDLSCapType; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 99 | |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 100 | typedef enum eTDLSLinkStatus { |
| 101 | eTDLS_LINK_IDLE = 0, |
| 102 | eTDLS_LINK_DISCOVERING, |
Gopichand Nakkala | 0592280 | 2013-03-14 12:23:19 -0700 | [diff] [blame] | 103 | eTDLS_LINK_DISCOVERED, |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 104 | eTDLS_LINK_CONNECTING, |
| 105 | eTDLS_LINK_CONNECTED, |
Gopichand Nakkala | e7cbc5d | 2013-03-27 21:09:23 -0700 | [diff] [blame] | 106 | eTDLS_LINK_TEARING, |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 107 | } tTDLSLinkStatus; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 108 | |
| 109 | typedef struct { |
| 110 | tANI_U16 period; |
| 111 | tANI_U16 bytes; |
| 112 | } tdls_tx_tput_config_t; |
| 113 | |
| 114 | typedef struct { |
| 115 | tANI_U16 period; |
| 116 | tANI_U16 tries; |
| 117 | } tdls_discovery_config_t; |
| 118 | |
| 119 | typedef struct { |
| 120 | tANI_U16 timeout; |
| 121 | } tdls_rx_idle_config_t; |
| 122 | |
| 123 | typedef struct { |
| 124 | tANI_U16 rssi_thres; |
| 125 | } tdls_rssi_config_t; |
| 126 | |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 127 | typedef struct { |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 128 | struct list_head peer_list[256]; |
| 129 | hdd_adapter_t *pAdapter; |
| 130 | vos_timer_t peerDiscoverTimer; |
| 131 | vos_timer_t peerUpdateTimer; |
Gopichand Nakkala | 75e7b28 | 2013-03-15 18:37:13 -0700 | [diff] [blame] | 132 | vos_timer_t peerDiscoveryTimeoutTimer; |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 133 | tdls_config_params_t threshold_config; |
| 134 | tANI_S32 discovery_peer_cnt; |
Gopichand Nakkala | 75e7b28 | 2013-03-15 18:37:13 -0700 | [diff] [blame] | 135 | tANI_U32 discovery_sent_cnt; |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 136 | tANI_S8 ap_rssi; |
| 137 | } tdlsCtx_t; |
| 138 | |
| 139 | typedef struct { |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 140 | struct list_head node; |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 141 | tdlsCtx_t *pHddTdlsCtx; |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 142 | tSirMacAddr peerMac; |
| 143 | tANI_U16 staId ; |
| 144 | tANI_S8 rssi; |
Gopichand Nakkala | 901e892 | 2013-03-04 23:45:58 -0800 | [diff] [blame] | 145 | tTDLSCapType tdls_support; |
| 146 | tTDLSLinkStatus link_status; |
Hoonki Lee | 11f7dda | 2013-02-14 16:55:44 -0800 | [diff] [blame] | 147 | tANI_U8 signature; |
Hoonki Lee | a34dd89 | 2013-02-05 22:56:02 -0800 | [diff] [blame] | 148 | tANI_U8 is_responder; |
Gopichand Nakkala | c369458 | 2013-02-13 20:51:22 -0800 | [diff] [blame] | 149 | tANI_U8 discovery_processed; |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 150 | tANI_U16 discovery_attempt; |
| 151 | tANI_U16 tx_pkt; |
| 152 | tANI_U16 rx_pkt; |
| 153 | vos_timer_t peerIdleTimer; |
| 154 | } hddTdlsPeer_t; |
| 155 | |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 156 | typedef struct { |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 157 | /* Session ID */ |
| 158 | tANI_U8 sessionId; |
| 159 | /*TDLS peer station id */ |
| 160 | v_U8_t staId; |
| 161 | /* TDLS peer mac Address */ |
| 162 | v_MACADDR_t peerMac; |
| 163 | } tdlsConnInfo_t; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 164 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 165 | int wlan_hdd_tdls_init(hdd_adapter_t *pAdapter); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 166 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 167 | void wlan_hdd_tdls_exit(hdd_adapter_t *pAdapter); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 168 | |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 169 | void wlan_hdd_tdls_extract_da(struct sk_buff *skb, u8 *mac); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 170 | |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 171 | void wlan_hdd_tdls_extract_sa(struct sk_buff *skb, u8 *mac); |
Chilam Ng | 1279e23 | 2013-01-25 15:06:52 -0800 | [diff] [blame] | 172 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 173 | int wlan_hdd_tdls_increment_pkt_count(hdd_adapter_t *pAdapter, u8 *mac, u8 tx); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 174 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 175 | int wlan_hdd_tdls_set_sta_id(hdd_adapter_t *pAdapter, u8 *mac, u8 staId); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 176 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 177 | hddTdlsPeer_t *wlan_hdd_tdls_find_peer(hdd_adapter_t *pAdapter, u8 *mac); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 178 | |
Hoonki Lee | a6d49be | 2013-04-05 09:43:25 -0700 | [diff] [blame] | 179 | hddTdlsPeer_t *wlan_hdd_tdls_find_all_peer(hdd_context_t *pHddCtx, u8 *mac); |
| 180 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 181 | hddTdlsPeer_t *wlan_hdd_tdls_get_peer(hdd_adapter_t *pAdapter, u8 *mac); |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 182 | |
Gopichand Nakkala | 34d1b06 | 2013-03-19 15:28:33 -0700 | [diff] [blame] | 183 | int wlan_hdd_tdls_set_cap(hdd_adapter_t *pAdapter, u8* mac, tTDLSCapType cap); |
Hoonki Lee | 2751190 | 2013-03-14 18:19:06 -0700 | [diff] [blame] | 184 | |
Gopichand Nakkala | 8b00c63 | 2013-03-08 19:47:52 -0800 | [diff] [blame] | 185 | void wlan_hdd_tdls_set_peer_link_status(hddTdlsPeer_t *curr_peer, tTDLSLinkStatus status); |
| 186 | |
| 187 | void wlan_hdd_tdls_set_link_status(hdd_adapter_t *pAdapter, u8* mac, tTDLSLinkStatus status); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 188 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 189 | 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] | 190 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 191 | int wlan_hdd_tdls_set_rssi(hdd_adapter_t *pAdapter, u8 *mac, tANI_S8 rxRssi); |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 192 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 193 | int wlan_hdd_tdls_set_responder(hdd_adapter_t *pAdapter, u8 *mac, tANI_U8 responder); |
Hoonki Lee | a34dd89 | 2013-02-05 22:56:02 -0800 | [diff] [blame] | 194 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 195 | int wlan_hdd_tdls_get_responder(hdd_adapter_t *pAdapter, u8 *mac); |
Hoonki Lee | a34dd89 | 2013-02-05 22:56:02 -0800 | [diff] [blame] | 196 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 197 | int wlan_hdd_tdls_set_signature(hdd_adapter_t *pAdapter, u8 *mac, tANI_U8 uSignature); |
Hoonki Lee | 11f7dda | 2013-02-14 16:55:44 -0800 | [diff] [blame] | 198 | |
Chilam Ng | 0112041 | 2013-02-19 18:32:21 -0800 | [diff] [blame] | 199 | 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] | 200 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 201 | int wlan_hdd_tdls_reset_peer(hdd_adapter_t *pAdapter, u8 *mac); |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 202 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 203 | tANI_U16 wlan_hdd_tdlsConnectedPeers(hdd_adapter_t *pAdapter); |
Lee Hoonki | c1262f2 | 2013-01-24 21:59:00 -0800 | [diff] [blame] | 204 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 205 | 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] | 206 | |
Gopichand Nakkala | c369458 | 2013-02-13 20:51:22 -0800 | [diff] [blame] | 207 | void wlan_hdd_tdls_connection_callback(hdd_adapter_t *pAdapter); |
| 208 | |
| 209 | void wlan_hdd_tdls_disconnection_callback(hdd_adapter_t *pAdapter); |
| 210 | |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 211 | void wlan_hdd_tdls_mgmt_completion_callback(hdd_adapter_t *pAdapter, tANI_U32 statusCode); |
| 212 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 213 | void wlan_hdd_tdls_increment_peer_count(hdd_adapter_t *pAdapter); |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 214 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 215 | void wlan_hdd_tdls_decrement_peer_count(hdd_adapter_t *pAdapter); |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 216 | |
Gopichand Nakkala | 4327a15 | 2013-03-04 23:22:42 -0800 | [diff] [blame] | 217 | void wlan_hdd_tdls_check_bmps(hdd_adapter_t *pAdapter); |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 218 | |
Gopichand Nakkala | 34d1b06 | 2013-03-19 15:28:33 -0700 | [diff] [blame] | 219 | u8 wlan_hdd_tdls_is_peer_progress(hdd_adapter_t *pAdapter, u8 *mac); |
| 220 | |
Hoonki Lee | fb8df67 | 2013-04-10 18:20:34 -0700 | [diff] [blame^] | 221 | hddTdlsPeer_t *wlan_hdd_tdls_is_progress(hdd_context_t *pHddCtx, u8* mac, u8 skip_self, tANI_BOOLEAN mutexLock); |
Hoonki Lee | 387663d | 2013-02-05 18:08:43 -0800 | [diff] [blame] | 222 | |
Gopichand Nakkala | dcbcf4e | 2013-03-23 14:32:39 -0700 | [diff] [blame] | 223 | void wlan_hdd_tdls_set_mode(hdd_context_t *pHddCtx, |
| 224 | eTDLSSupportMode tdls_mode, |
| 225 | v_BOOL_t bUpdateLast); |
Hoonki Lee | 2751190 | 2013-03-14 18:19:06 -0700 | [diff] [blame] | 226 | |
Hoonki Lee | fb8df67 | 2013-04-10 18:20:34 -0700 | [diff] [blame^] | 227 | static void wlan_hdd_tdls_pre_setup(tdlsCtx_t *pHddTdlsCtx, hddTdlsPeer_t *curr_peer); |
Gopichand Nakkala | 75e7b28 | 2013-03-15 18:37:13 -0700 | [diff] [blame] | 228 | |
Gopichand Nakkala | ccd3a38 | 2013-03-19 13:56:10 -0700 | [diff] [blame] | 229 | tANI_U32 wlan_hdd_tdls_discovery_sent_cnt(hdd_context_t *pHddCtx); |
| 230 | |
Gopichand Nakkala | 34d1b06 | 2013-03-19 15:28:33 -0700 | [diff] [blame] | 231 | void wlan_hdd_tdls_check_power_save_prohibited(hdd_adapter_t *pAdapter); |
Gopichand Nakkala | ccd3a38 | 2013-03-19 13:56:10 -0700 | [diff] [blame] | 232 | |
Hoonki Lee | 93e67ff | 2013-03-19 15:49:25 -0700 | [diff] [blame] | 233 | void wlan_hdd_tdls_free_scan_request (tdls_scan_context_t *tdls_scan_ctx); |
| 234 | |
| 235 | int wlan_hdd_tdls_copy_scan_context(hdd_context_t *pHddCtx, |
| 236 | struct wiphy *wiphy, |
| 237 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0)) |
| 238 | struct net_device *dev, |
| 239 | #endif |
| 240 | struct cfg80211_scan_request *request); |
| 241 | |
| 242 | int wlan_hdd_tdls_scan_callback (hdd_adapter_t *pAdapter, |
| 243 | struct wiphy *wiphy, |
| 244 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0)) |
| 245 | struct net_device *dev, |
| 246 | #endif |
| 247 | struct cfg80211_scan_request *request); |
| 248 | |
| 249 | void wlan_hdd_tdls_scan_done_callback(hdd_adapter_t *pAdapter); |
| 250 | |
Gopichand Nakkala | 3046fc9 | 2013-03-23 13:56:43 -0700 | [diff] [blame] | 251 | void wlan_hdd_tdls_timer_restart(hdd_adapter_t *pAdapter, |
| 252 | vos_timer_t *timer, |
| 253 | v_U32_t expirationTime); |
Gopichand Nakkala | e7cbc5d | 2013-03-27 21:09:23 -0700 | [diff] [blame] | 254 | void wlan_hdd_tdls_indicate_teardown(hdd_adapter_t *pAdapter, |
| 255 | hddTdlsPeer_t *curr_peer, |
| 256 | tANI_U16 reason); |
| 257 | |
Gopichand Nakkala | 3046fc9 | 2013-03-23 13:56:43 -0700 | [diff] [blame] | 258 | |
Kiran V | 1ccee93 | 2012-12-12 14:49:46 -0800 | [diff] [blame] | 259 | #endif // __HDD_TDSL_H |