Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
Srinivas Girigowda | d65dc5a | 2016-01-14 17:08:26 -0800 | [diff] [blame] | 2 | * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved. |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -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. |
| 20 | */ |
| 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 | |
| 28 | #ifndef __WEXT_IW_H__ |
| 29 | #define __WEXT_IW_H__ |
| 30 | |
| 31 | #include <linux/version.h> |
| 32 | #include <linux/module.h> |
| 33 | #include <linux/netdevice.h> |
| 34 | #include <linux/wireless.h> |
| 35 | #include <net/iw_handler.h> |
| 36 | #include <linux/timer.h> |
Anurag Chouhan | ce0dc99 | 2016-02-16 18:18:03 +0530 | [diff] [blame] | 37 | #include "qdf_event.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 38 | |
| 39 | /* |
| 40 | * order of parameters in addTs private ioctl |
| 41 | */ |
| 42 | #define HDD_WLAN_WMM_PARAM_HANDLE 0 |
| 43 | #define HDD_WLAN_WMM_PARAM_TID 1 |
| 44 | #define HDD_WLAN_WMM_PARAM_DIRECTION 2 |
| 45 | #define HDD_WLAN_WMM_PARAM_APSD 3 |
| 46 | #define HDD_WLAN_WMM_PARAM_USER_PRIORITY 4 |
| 47 | #define HDD_WLAN_WMM_PARAM_NOMINAL_MSDU_SIZE 5 |
| 48 | #define HDD_WLAN_WMM_PARAM_MAXIMUM_MSDU_SIZE 6 |
| 49 | #define HDD_WLAN_WMM_PARAM_MINIMUM_DATA_RATE 7 |
| 50 | #define HDD_WLAN_WMM_PARAM_MEAN_DATA_RATE 8 |
| 51 | #define HDD_WLAN_WMM_PARAM_PEAK_DATA_RATE 9 |
| 52 | #define HDD_WLAN_WMM_PARAM_MAX_BURST_SIZE 10 |
| 53 | #define HDD_WLAN_WMM_PARAM_MINIMUM_PHY_RATE 11 |
| 54 | #define HDD_WLAN_WMM_PARAM_SURPLUS_BANDWIDTH_ALLOWANCE 12 |
| 55 | #define HDD_WLAN_WMM_PARAM_SERVICE_INTERVAL 13 |
| 56 | #define HDD_WLAN_WMM_PARAM_SUSPENSION_INTERVAL 14 |
| 57 | #define HDD_WLAN_WMM_PARAM_BURST_SIZE_DEFN 15 |
| 58 | #define HDD_WLAN_WMM_PARAM_ACK_POLICY 16 |
| 59 | #define HDD_WLAN_WMM_PARAM_INACTIVITY_INTERVAL 17 |
| 60 | #define HDD_WLAN_WMM_PARAM_MAX_SERVICE_INTERVAL 18 |
| 61 | #define HDD_WLAN_WMM_PARAM_COUNT 19 |
| 62 | |
| 63 | #define MHZ 6 |
| 64 | |
| 65 | #define WE_MAX_STR_LEN IW_PRIV_SIZE_MASK |
| 66 | #define WLAN_HDD_UI_BAND_AUTO 0 |
| 67 | #define WLAN_HDD_UI_BAND_5_GHZ 1 |
| 68 | #define WLAN_HDD_UI_BAND_2_4_GHZ 2 |
| 69 | /* SETBAND x */ |
| 70 | /* 012345678 */ |
| 71 | #define WLAN_HDD_UI_SET_BAND_VALUE_OFFSET 8 |
| 72 | |
| 73 | typedef enum { |
| 74 | HDD_WLAN_WMM_DIRECTION_UPSTREAM = 0, |
| 75 | HDD_WLAN_WMM_DIRECTION_DOWNSTREAM = 1, |
| 76 | HDD_WLAN_WMM_DIRECTION_BIDIRECTIONAL = 2, |
| 77 | } hdd_wlan_wmm_direction_e; |
| 78 | |
| 79 | typedef enum { |
| 80 | HDD_WLAN_WMM_POWER_SAVE_LEGACY = 0, |
| 81 | HDD_WLAN_WMM_POWER_SAVE_UAPSD = 1, |
| 82 | } hdd_wlan_wmm_power_save_e; |
| 83 | |
| 84 | typedef enum { |
| 85 | /* TSPEC/re-assoc done, async */ |
| 86 | HDD_WLAN_WMM_STATUS_SETUP_SUCCESS = 0, |
| 87 | /* no need to setup TSPEC since ACM=0 and no UAPSD desired, sync + async */ |
| 88 | HDD_WLAN_WMM_STATUS_SETUP_SUCCESS_NO_ACM_NO_UAPSD = 1, |
| 89 | /* no need to setup TSPEC since ACM=0 and UAPSD already exists, sync + async */ |
| 90 | HDD_WLAN_WMM_STATUS_SETUP_SUCCESS_NO_ACM_UAPSD_EXISTING = 2, |
| 91 | /* TSPEC result pending, sync */ |
| 92 | HDD_WLAN_WMM_STATUS_SETUP_PENDING = 3, |
| 93 | /* TSPEC/re-assoc failed, sync + async */ |
| 94 | HDD_WLAN_WMM_STATUS_SETUP_FAILED = 4, |
| 95 | /* Request rejected due to invalid params, sync + async */ |
| 96 | HDD_WLAN_WMM_STATUS_SETUP_FAILED_BAD_PARAM = 5, |
| 97 | /* TSPEC request rejected since AP!=QAP, sync */ |
| 98 | HDD_WLAN_WMM_STATUS_SETUP_FAILED_NO_WMM = 6, |
| 99 | |
| 100 | /* TSPEC modification/re-assoc successful, async */ |
| 101 | HDD_WLAN_WMM_STATUS_MODIFY_SUCCESS = 7, |
| 102 | /* TSPEC modification a no-op since ACM=0 and no change in UAPSD, sync + async */ |
| 103 | HDD_WLAN_WMM_STATUS_MODIFY_SUCCESS_NO_ACM_NO_UAPSD = 8, |
| 104 | /* TSPEC modification a no-op since ACM=0 and requested U-APSD already exists, sync + async */ |
| 105 | HDD_WLAN_WMM_STATUS_MODIFY_SUCCESS_NO_ACM_UAPSD_EXISTING = 9, |
| 106 | /* TSPEC result pending, sync */ |
| 107 | HDD_WLAN_WMM_STATUS_MODIFY_PENDING = 10, |
| 108 | /* TSPEC modification failed, prev TSPEC in effect, sync + async */ |
| 109 | HDD_WLAN_WMM_STATUS_MODIFY_FAILED = 11, |
| 110 | /* TSPEC modification request rejected due to invalid params, sync + async */ |
| 111 | HDD_WLAN_WMM_STATUS_MODIFY_FAILED_BAD_PARAM = 12, |
| 112 | |
| 113 | /* TSPEC release successful, sync and also async */ |
| 114 | HDD_WLAN_WMM_STATUS_RELEASE_SUCCESS = 13, |
| 115 | /* TSPEC release pending, sync */ |
| 116 | HDD_WLAN_WMM_STATUS_RELEASE_PENDING = 14, |
| 117 | /* TSPEC release failed, sync + async */ |
| 118 | HDD_WLAN_WMM_STATUS_RELEASE_FAILED = 15, |
| 119 | /* TSPEC release rejected due to invalid params, sync */ |
| 120 | HDD_WLAN_WMM_STATUS_RELEASE_FAILED_BAD_PARAM = 16, |
| 121 | /* TSPEC modified due to the mux'ing of requests on ACs, async */ |
| 122 | |
| 123 | HDD_WLAN_WMM_STATUS_MODIFIED = 17, |
| 124 | /* TSPEC revoked by AP, async */ |
| 125 | HDD_WLAN_WMM_STATUS_LOST = 18, |
| 126 | /* some internal failure like memory allocation failure, etc, sync */ |
| 127 | HDD_WLAN_WMM_STATUS_INTERNAL_FAILURE = 19, |
| 128 | |
| 129 | /* U-APSD failed during setup but OTA setup (whether TSPEC exchnage or */ |
| 130 | /* re-assoc) was done so app should release this QoS, async */ |
| 131 | HDD_WLAN_WMM_STATUS_SETUP_UAPSD_SET_FAILED = 20, |
| 132 | /* U-APSD failed during modify, but OTA setup (whether TSPEC exchnage or */ |
| 133 | /* re-assoc) was done so app should release this QoS, async */ |
| 134 | HDD_WLAN_WMM_STATUS_MODIFY_UAPSD_SET_FAILED = 21 |
| 135 | } hdd_wlan_wmm_status_e; |
| 136 | |
| 137 | /** TS Info Ack Policy */ |
| 138 | typedef enum { |
| 139 | HDD_WLAN_WMM_TS_INFO_ACK_POLICY_NORMAL_ACK = 0, |
| 140 | HDD_WLAN_WMM_TS_INFO_ACK_POLICY_HT_IMMEDIATE_BLOCK_ACK = 1, |
| 141 | } hdd_wlan_wmm_ts_info_ack_policy_e; |
| 142 | |
| 143 | /** Maximum Length of WPA/RSN IE */ |
| 144 | #define MAX_WPA_RSN_IE_LEN 40 |
| 145 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 146 | /** Enable 11d */ |
| 147 | #define ENABLE_11D 1 |
| 148 | |
| 149 | /** Disable 11d */ |
| 150 | #define DISABLE_11D 0 |
| 151 | |
| 152 | /* |
| 153 | refer wpa.h in wpa supplicant code for REASON_MICHAEL_MIC_FAILURE |
| 154 | |
| 155 | supplicant sets REASON_MICHAEL_MIC_FAILURE as the reason code when it sends the MLME deauth IOCTL |
| 156 | for TKIP counter measures |
| 157 | */ |
| 158 | #define HDD_REASON_MICHAEL_MIC_FAILURE 14 |
| 159 | |
| 160 | /* |
| 161 | * These are for TLV fields in WPS IE |
| 162 | */ |
| 163 | #define HDD_WPS_UUID_LEN 16 |
| 164 | #define HDD_WPS_ELEM_VERSION 0x104a |
| 165 | #define HDD_WPS_ELEM_REQUEST_TYPE 0x103a |
| 166 | #define HDD_WPS_ELEM_CONFIG_METHODS 0x1008 |
| 167 | #define HDD_WPS_ELEM_UUID_E 0x1047 |
| 168 | #define HDD_WPS_ELEM_PRIMARY_DEVICE_TYPE 0x1054 |
| 169 | #define HDD_WPS_ELEM_RF_BANDS 0x103c |
| 170 | #define HDD_WPS_ELEM_ASSOCIATION_STATE 0x1002 |
| 171 | #define HDD_WPS_ELEM_CONFIGURATION_ERROR 0x1009 |
| 172 | #define HDD_WPS_ELEM_DEVICE_PASSWORD_ID 0x1012 |
| 173 | |
| 174 | #define HDD_WPA_ELEM_VENDOR_EXTENSION 0x1049 |
| 175 | |
| 176 | #define HDD_WPS_MANUFACTURER_LEN 64 |
| 177 | #define HDD_WPS_MODEL_NAME_LEN 32 |
| 178 | #define HDD_WPS_MODEL_NUM_LEN 32 |
| 179 | #define HDD_WPS_SERIAL_NUM_LEN 32 |
| 180 | #define HDD_WPS_DEVICE_OUI_LEN 4 |
| 181 | #define HDD_WPS_DEVICE_NAME_LEN 32 |
| 182 | |
| 183 | #define HDD_WPS_ELEM_WPS_STATE 0x1044 |
| 184 | #define HDD_WPS_ELEM_APSETUPLOCK 0x1057 |
| 185 | #define HDD_WPS_ELEM_SELECTEDREGISTRA 0x1041 |
| 186 | #define HDD_WPS_ELEM_RSP_TYPE 0x103B |
| 187 | #define HDD_WPS_ELEM_MANUFACTURER 0x1021 |
| 188 | #define HDD_WPS_ELEM_MODEL_NAME 0x1023 |
| 189 | #define HDD_WPS_ELEM_MODEL_NUM 0x1024 |
| 190 | #define HDD_WPS_ELEM_SERIAL_NUM 0x1042 |
| 191 | #define HDD_WPS_ELEM_DEVICE_NAME 0x1011 |
| 192 | #define HDD_WPS_ELEM_REGISTRA_CONF_METHODS 0x1053 |
| 193 | |
| 194 | #define HDD_RTSCTS_EN_MASK 0xF |
| 195 | #define HDD_RTSCTS_ENABLE 1 |
| 196 | #define HDD_CTS_ENABLE 2 |
| 197 | |
| 198 | #define WPS_OUI_TYPE "\x00\x50\xf2\x04" |
| 199 | #define WPS_OUI_TYPE_SIZE 4 |
| 200 | |
| 201 | #define SS_OUI_TYPE "\x00\x16\x32" |
| 202 | #define SS_OUI_TYPE_SIZE 3 |
| 203 | |
| 204 | #define P2P_OUI_TYPE "\x50\x6f\x9a\x09" |
| 205 | #define P2P_OUI_TYPE_SIZE 4 |
| 206 | |
| 207 | #define HS20_OUI_TYPE "\x50\x6f\x9a\x10" |
| 208 | #define HS20_OUI_TYPE_SIZE 4 |
| 209 | |
| 210 | #define OSEN_OUI_TYPE "\x50\x6f\x9a\x12" |
| 211 | #define OSEN_OUI_TYPE_SIZE 4 |
| 212 | |
| 213 | #ifdef WLAN_FEATURE_WFD |
| 214 | #define WFD_OUI_TYPE "\x50\x6f\x9a\x0a" |
| 215 | #define WFD_OUI_TYPE_SIZE 4 |
| 216 | #endif |
| 217 | |
Selvaraj, Sridhar | a7fc763 | 2016-09-04 13:13:38 +0530 | [diff] [blame] | 218 | #define MBO_OUI_TYPE "\x50\x6f\x9a\x16" |
| 219 | #define MBO_OUI_TYPE_SIZE 4 |
| 220 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 221 | typedef enum { |
| 222 | eWEXT_WPS_OFF = 0, |
| 223 | eWEXT_WPS_ON = 1, |
| 224 | } hdd_wps_mode_e; |
| 225 | |
| 226 | /* |
| 227 | * This structure contains the interface level (granularity) |
| 228 | * configuration information in support of wireless extensions. |
| 229 | */ |
| 230 | typedef struct hdd_wext_state_s { |
| 231 | /** The CSR "desired" Profile */ |
| 232 | tCsrRoamProfile roamProfile; |
| 233 | |
| 234 | /** BSSID to which connect request is received */ |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 235 | struct qdf_mac_addr req_bssId; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 236 | |
| 237 | /** The association status code */ |
| 238 | uint32_t statusCode; |
| 239 | |
| 240 | /** wpa version WPA/WPA2/None*/ |
| 241 | int32_t wpaVersion; |
| 242 | |
| 243 | /**WPA or RSN IE*/ |
| 244 | uint8_t WPARSNIE[MAX_WPA_RSN_IE_LEN]; |
| 245 | |
| 246 | /**gen IE */ |
| 247 | tSirAddie genIE; |
| 248 | |
| 249 | /**Additional IE for assoc */ |
| 250 | tSirAddie assocAddIE; |
| 251 | |
| 252 | /**auth key mgmt */ |
| 253 | int32_t authKeyMgmt; |
| 254 | |
Anurag Chouhan | f04e84f | 2016-03-03 10:12:12 +0530 | [diff] [blame] | 255 | /* qdf event */ |
| 256 | qdf_event_t hdd_qdf_event; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 257 | |
Anurag Chouhan | ce0dc99 | 2016-02-16 18:18:03 +0530 | [diff] [blame] | 258 | qdf_event_t scanevent; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 259 | |
| 260 | /**Counter measure state, Started/Stopped*/ |
| 261 | bool mTKIPCounterMeasures; |
| 262 | |
| 263 | /**Completion Variable*/ |
| 264 | struct completion completion_var; |
| 265 | |
| 266 | #ifdef FEATURE_WLAN_ESE |
| 267 | /* ESE state variables */ |
| 268 | bool isESEConnection; |
| 269 | eCsrAuthType collectedAuthType; /* Collected from ALL SIOCSIWAUTH Ioctls. Will be negotiatedAuthType - in tCsrProfile */ |
| 270 | #endif |
| 271 | } hdd_wext_state_t; |
| 272 | |
| 273 | typedef struct ccp_freq_chan_map_s { |
| 274 | /* List of frequencies */ |
| 275 | uint32_t freq; |
| 276 | uint32_t chan; |
| 277 | } hdd_freq_chan_map_t; |
| 278 | |
| 279 | /* Packet Types. */ |
| 280 | #define WLAN_KEEP_ALIVE_UNSOLICIT_ARP_RSP 2 |
| 281 | #define WLAN_KEEP_ALIVE_NULL_PKT 1 |
| 282 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 283 | #define wlan_hdd_get_wps_ie_ptr(ie, ie_len) \ |
| 284 | wlan_hdd_get_vendor_oui_ie_ptr(WPS_OUI_TYPE, WPS_OUI_TYPE_SIZE, ie, ie_len) |
| 285 | |
| 286 | #define wlan_hdd_get_p2p_ie_ptr(ie, ie_len) \ |
| 287 | wlan_hdd_get_vendor_oui_ie_ptr(P2P_OUI_TYPE, P2P_OUI_TYPE_SIZE, ie, ie_len) |
| 288 | |
| 289 | #ifdef WLAN_FEATURE_WFD |
| 290 | #define wlan_hdd_get_wfd_ie_ptr(ie, ie_len) \ |
| 291 | wlan_hdd_get_vendor_oui_ie_ptr(WFD_OUI_TYPE, WFD_OUI_TYPE_SIZE, ie, ie_len) |
| 292 | #endif |
| 293 | |
| 294 | extern int hdd_unregister_wext(struct net_device *dev); |
| 295 | extern int hdd_register_wext(struct net_device *dev); |
| 296 | extern int hdd_wlan_get_freq(uint32_t chan, uint32_t *freq); |
| 297 | extern int hdd_wlan_get_rts_threshold(hdd_adapter_t *pAdapter, |
| 298 | union iwreq_data *wrqu); |
| 299 | extern int hdd_wlan_get_frag_threshold(hdd_adapter_t *pAdapter, |
| 300 | union iwreq_data *wrqu); |
Arun Khandavalli | a96c2c0 | 2016-05-17 19:15:34 +0530 | [diff] [blame] | 301 | extern void hdd_wlan_get_version(hdd_context_t *hdd_ctx, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 302 | union iwreq_data *wrqu, char *extra); |
| 303 | |
| 304 | extern void hdd_wlan_get_stats(hdd_adapter_t *pAdapter, uint16_t *length, |
| 305 | char *buffer, uint16_t buf_len); |
Govind Singh | a471e5e | 2015-10-12 17:11:14 +0530 | [diff] [blame] | 306 | extern void hdd_wlan_list_fw_profile(uint16_t *length, |
| 307 | char *buffer, uint16_t buf_len); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 308 | |
| 309 | extern int iw_set_essid(struct net_device *dev, |
| 310 | struct iw_request_info *info, |
| 311 | union iwreq_data *wrqu, char *extra); |
| 312 | |
| 313 | extern int iw_get_essid(struct net_device *dev, |
| 314 | struct iw_request_info *info, |
| 315 | struct iw_point *dwrq, char *extra); |
| 316 | |
| 317 | extern int iw_set_ap_address(struct net_device *dev, |
| 318 | struct iw_request_info *info, |
| 319 | union iwreq_data *wrqu, char *extra); |
| 320 | |
| 321 | extern int iw_get_ap_address(struct net_device *dev, |
| 322 | struct iw_request_info *info, |
| 323 | union iwreq_data *wrqu, char *extra); |
| 324 | |
| 325 | extern int iw_set_auth(struct net_device *dev, struct iw_request_info *info, |
| 326 | union iwreq_data *wrqu, char *extra); |
| 327 | |
| 328 | extern int iw_get_auth(struct net_device *dev, struct iw_request_info *info, |
| 329 | union iwreq_data *wrqu, char *extra); |
| 330 | |
| 331 | extern int iw_set_var_ints_getnone(struct net_device *dev, |
| 332 | struct iw_request_info *info, |
| 333 | union iwreq_data *wrqu, char *extra); |
| 334 | |
| 335 | extern int iw_set_three_ints_getnone(struct net_device *dev, |
| 336 | struct iw_request_info *info, |
| 337 | union iwreq_data *wrqu, char *extra); |
| 338 | |
| 339 | extern int hdd_priv_get_data(struct iw_point *p_priv_data, |
| 340 | union iwreq_data *wrqu); |
| 341 | |
| 342 | extern void *mem_alloc_copy_from_user_helper(const void *wrqu_data, size_t len); |
| 343 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 344 | extern QDF_STATUS wlan_hdd_get_linkspeed_for_peermac(hdd_adapter_t *pAdapter, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 345 | struct qdf_mac_addr mac_address); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 346 | void hdd_clear_roam_profile_ie(hdd_adapter_t *pAdapter); |
| 347 | |
| 348 | uint8_t *wlan_hdd_get_vendor_oui_ie_ptr(uint8_t *oui, uint8_t oui_size, |
| 349 | uint8_t *ie, int ie_len); |
| 350 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 351 | QDF_STATUS wlan_hdd_get_class_astats(hdd_adapter_t *pAdapter); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 352 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 353 | QDF_STATUS wlan_hdd_get_station_stats(hdd_adapter_t *pAdapter); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 354 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 355 | QDF_STATUS wlan_hdd_get_rssi(hdd_adapter_t *pAdapter, int8_t *rssi_value); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 356 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 357 | QDF_STATUS wlan_hdd_get_snr(hdd_adapter_t *pAdapter, int8_t *snr); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 358 | |
Manjeet Singh | e80d6d8 | 2016-09-02 19:04:41 +0530 | [diff] [blame] | 359 | int hdd_get_ldpc(hdd_adapter_t *adapter, int *value); |
| 360 | int hdd_set_ldpc(hdd_adapter_t *adapter, int value); |
| 361 | int hdd_get_tx_stbc(hdd_adapter_t *adapter, int *value); |
| 362 | int hdd_set_tx_stbc(hdd_adapter_t *adapter, int value); |
| 363 | int hdd_get_rx_stbc(hdd_adapter_t *adapter, int *value); |
| 364 | int hdd_set_rx_stbc(hdd_adapter_t *adapter, int value); |
| 365 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 366 | #ifdef FEATURE_WLAN_TDLS |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 367 | QDF_STATUS iw_set_tdls_params(struct net_device *dev, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 368 | struct iw_request_info *info, |
| 369 | union iwreq_data *wrqu, char *extra, int nOffset); |
| 370 | #endif |
| 371 | |
| 372 | void wlan_hdd_change_country_code_callback(void *pAdapter); |
| 373 | |
| 374 | int hdd_set_band(struct net_device *dev, u8 ui_band); |
| 375 | int hdd_set_band_helper(struct net_device *dev, const char *command); |
| 376 | int wlan_hdd_update_phymode(struct net_device *net, tHalHandle hal, |
| 377 | int new_phymode, hdd_context_t *phddctx); |
| 378 | |
| 379 | int wlan_hdd_get_temperature(hdd_adapter_t *pAdapter, int *temperature); |
| 380 | int wlan_hdd_get_link_speed(hdd_adapter_t *sta_adapter, uint32_t *link_speed); |
| 381 | #endif /* __WEXT_IW_H__ */ |