Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
Abhishek Singh | 7996eb7 | 2015-12-30 17:24:02 +0530 | [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 | #if !defined(__SME_API_H) |
| 29 | #define __SME_API_H |
| 30 | |
| 31 | /** |
| 32 | * file smeApi.h |
| 33 | * |
| 34 | * brief prototype for SME APIs |
| 35 | */ |
| 36 | |
| 37 | /*-------------------------------------------------------------------------- |
| 38 | Include Files |
| 39 | ------------------------------------------------------------------------*/ |
| 40 | #include "csr_api.h" |
| 41 | #include "cds_mq.h" |
Anurag Chouhan | a37b5b7 | 2016-02-21 14:53:42 +0530 | [diff] [blame] | 42 | #include "qdf_lock.h" |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 43 | #include "qdf_types.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 44 | #include "sir_api.h" |
| 45 | #include "cds_reg_service.h" |
| 46 | #include "p2p_api.h" |
| 47 | #include "cds_regdomain.h" |
| 48 | #include "sme_internal.h" |
Krishna Kumaar Natarajan | 052c6e6 | 2015-09-28 15:32:55 -0700 | [diff] [blame] | 49 | #include "wma_tgt_cfg.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 50 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 51 | #include "sme_rrm_internal.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 52 | #include "sir_types.h" |
| 53 | /*-------------------------------------------------------------------------- |
| 54 | Preprocessor definitions and constants |
| 55 | ------------------------------------------------------------------------*/ |
| 56 | |
| 57 | #define SME_SUMMARY_STATS 1 |
| 58 | #define SME_GLOBAL_CLASSA_STATS 2 |
| 59 | #define SME_GLOBAL_CLASSB_STATS 4 |
| 60 | #define SME_GLOBAL_CLASSC_STATS 8 |
| 61 | #define SME_GLOBAL_CLASSD_STATS 16 |
| 62 | #define SME_PER_STA_STATS 32 |
Himanshu Agarwal | 37e4241 | 2016-07-21 14:35:09 +0530 | [diff] [blame] | 63 | #define SME_PER_CHAIN_RSSI_STATS 64 |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 64 | |
| 65 | #define SME_SESSION_ID_ANY 50 |
| 66 | |
| 67 | #define SME_INVALID_COUNTRY_CODE "XX" |
| 68 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 69 | #define SME_SET_CHANNEL_REG_POWER(reg_info_1, val) do { \ |
| 70 | reg_info_1 &= 0xff00ffff; \ |
| 71 | reg_info_1 |= ((val & 0xff) << 16); \ |
| 72 | } while (0) |
| 73 | |
| 74 | #define SME_SET_CHANNEL_MAX_TX_POWER(reg_info_2, val) do { \ |
| 75 | reg_info_2 &= 0xffff00ff; \ |
| 76 | reg_info_2 |= ((val & 0xff) << 8); \ |
| 77 | } while (0) |
| 78 | |
Varun Reddy Yeturu | b43fda1 | 2015-09-10 18:16:21 -0700 | [diff] [blame] | 79 | #define SME_CONFIG_TO_ROAM_CONFIG 1 |
| 80 | #define ROAM_CONFIG_TO_SME_CONFIG 2 |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 81 | |
Kiran Kumar Lokere | 666bf85 | 2016-05-02 12:23:02 -0700 | [diff] [blame] | 82 | #define NUM_OF_BANDS 2 |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 83 | /*-------------------------------------------------------------------------- |
| 84 | Type declarations |
| 85 | ------------------------------------------------------------------------*/ |
| 86 | typedef void (*hdd_ftm_msg_processor)(void *); |
| 87 | typedef struct _smeConfigParams { |
| 88 | tCsrConfigParam csrConfig; |
Krishna Kumaar Natarajan | f599c6e | 2015-11-03 11:44:03 -0800 | [diff] [blame] | 89 | struct rrm_config_param rrmConfig; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 90 | } tSmeConfigParams, *tpSmeConfigParams; |
| 91 | |
| 92 | #ifdef FEATURE_WLAN_TDLS |
| 93 | #define SME_TDLS_MAX_SUPP_CHANNELS 128 |
| 94 | #define SME_TDLS_MAX_SUPP_OPER_CLASSES 32 |
| 95 | |
| 96 | typedef struct _smeTdlsPeerCapParams { |
| 97 | uint8_t isPeerResponder; |
| 98 | uint8_t peerUapsdQueue; |
| 99 | uint8_t peerMaxSp; |
| 100 | uint8_t peerBuffStaSupport; |
| 101 | uint8_t peerOffChanSupport; |
| 102 | uint8_t peerCurrOperClass; |
| 103 | uint8_t selfCurrOperClass; |
| 104 | uint8_t peerChanLen; |
| 105 | uint8_t peerChan[SME_TDLS_MAX_SUPP_CHANNELS]; |
| 106 | uint8_t peerOperClassLen; |
| 107 | uint8_t peerOperClass[SME_TDLS_MAX_SUPP_OPER_CLASSES]; |
| 108 | uint8_t prefOffChanNum; |
| 109 | uint8_t prefOffChanBandwidth; |
| 110 | uint8_t opClassForPrefOffChan; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 111 | } tSmeTdlsPeerCapParams; |
| 112 | |
Kabilan Kannan | 421714b | 2015-11-23 04:44:59 -0800 | [diff] [blame] | 113 | /** |
| 114 | * eSmeTdlsPeerState - tdls peer state |
| 115 | * @eSME_TDLS_PEER_STATE_PEERING: tdls connection in progress |
| 116 | * @eSME_TDLS_PEER_STATE_CONNECTED: tdls peer is connected |
| 117 | * @eSME_TDLS_PEER_STATE_TEARDOWN: tdls peer is tear down |
| 118 | * @eSME_TDLS_PEER_ADD_MAC_ADDR: add peer mac into connection table |
| 119 | * @eSME_TDLS_PEER_REMOVE_MAC_ADDR: remove peer mac from connection table |
| 120 | */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 121 | typedef enum { |
| 122 | eSME_TDLS_PEER_STATE_PEERING, |
| 123 | eSME_TDLS_PEER_STATE_CONNECTED, |
Kabilan Kannan | 421714b | 2015-11-23 04:44:59 -0800 | [diff] [blame] | 124 | eSME_TDLS_PEER_STATE_TEARDOWN, |
| 125 | eSME_TDLS_PEER_ADD_MAC_ADDR, |
| 126 | eSME_TDLS_PEER_REMOVE_MAC_ADDR, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 127 | } eSmeTdlsPeerState; |
| 128 | |
| 129 | typedef struct _smeTdlsPeerStateParams { |
| 130 | uint32_t vdevId; |
| 131 | tSirMacAddr peerMacAddr; |
| 132 | uint32_t peerState; |
| 133 | tSmeTdlsPeerCapParams peerCap; |
| 134 | } tSmeTdlsPeerStateParams; |
| 135 | |
| 136 | #define ENABLE_CHANSWITCH 1 |
| 137 | #define DISABLE_CHANSWITCH 2 |
| 138 | #define BW_20_OFFSET_BIT 0 |
| 139 | #define BW_40_OFFSET_BIT 1 |
| 140 | #define BW_80_OFFSET_BIT 2 |
| 141 | #define BW_160_OFFSET_BIT 3 |
| 142 | typedef struct sme_tdls_chan_switch_params_struct { |
| 143 | uint32_t vdev_id; |
| 144 | tSirMacAddr peer_mac_addr; |
| 145 | uint16_t tdls_off_ch_bw_offset;/* Target Off Channel Bandwidth offset */ |
| 146 | uint8_t tdls_off_channel; /* Target Off Channel */ |
| 147 | uint8_t tdls_off_ch_mode; /* TDLS Off Channel Mode */ |
| 148 | uint8_t is_responder; /* is peer responder or initiator */ |
Masti, Narayanraddi | c4a7ab8 | 2015-11-25 15:41:10 +0530 | [diff] [blame] | 149 | uint8_t opclass; /* tdls operating class */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 150 | } sme_tdls_chan_switch_params; |
| 151 | #endif /* FEATURE_WLAN_TDLS */ |
| 152 | |
| 153 | /* Thermal Mitigation*/ |
| 154 | typedef struct { |
| 155 | uint16_t smeMinTempThreshold; |
| 156 | uint16_t smeMaxTempThreshold; |
| 157 | } tSmeThermalLevelInfo; |
| 158 | |
| 159 | #define SME_MAX_THERMAL_LEVELS (4) |
Poddar, Siddarth | 8390502 | 2016-04-16 17:56:08 -0700 | [diff] [blame] | 160 | #define SME_MAX_THROTTLE_LEVELS (4) |
| 161 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 162 | typedef struct { |
| 163 | /* Array of thermal levels */ |
| 164 | tSmeThermalLevelInfo smeThermalLevels[SME_MAX_THERMAL_LEVELS]; |
| 165 | uint8_t smeThermalMgmtEnabled; |
| 166 | uint32_t smeThrottlePeriod; |
Poddar, Siddarth | 8390502 | 2016-04-16 17:56:08 -0700 | [diff] [blame] | 167 | uint8_t sme_throttle_duty_cycle_tbl[SME_MAX_THROTTLE_LEVELS]; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 168 | } tSmeThermalParams; |
| 169 | |
| 170 | typedef enum { |
| 171 | SME_AC_BK = 0, |
| 172 | SME_AC_BE = 1, |
| 173 | SME_AC_VI = 2, |
| 174 | SME_AC_VO = 3 |
| 175 | } sme_ac_enum_type; |
| 176 | |
| 177 | /* TSPEC Direction Enum Type */ |
| 178 | typedef enum { |
| 179 | /* uplink */ |
| 180 | SME_TX_DIR = 0, |
| 181 | /* downlink */ |
| 182 | SME_RX_DIR = 1, |
| 183 | /* bidirectional */ |
| 184 | SME_BI_DIR = 2, |
| 185 | } sme_tspec_dir_type; |
| 186 | |
Krishna Kumaar Natarajan | 53ca290 | 2015-12-04 14:01:46 -0800 | [diff] [blame] | 187 | /** |
| 188 | * struct sme_oem_capability - OEM capability to be exchanged between host |
| 189 | * and userspace |
| 190 | * @ftm_rr: FTM range report capability bit |
| 191 | * @lci_capability: LCI capability bit |
| 192 | * @reserved1: reserved |
| 193 | * @reserved2: reserved |
| 194 | */ |
| 195 | struct sme_oem_capability { |
| 196 | uint32_t ftm_rr:1; |
| 197 | uint32_t lci_capability:1; |
| 198 | uint32_t reserved1:30; |
| 199 | uint32_t reserved2; |
| 200 | }; |
| 201 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 202 | /*------------------------------------------------------------------------- |
| 203 | Function declarations and documenation |
| 204 | ------------------------------------------------------------------------*/ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 205 | QDF_STATUS sme_open(tHalHandle hHal); |
| 206 | QDF_STATUS sme_init_chan_list(tHalHandle hal, uint8_t *alpha2, |
Amar Singhal | a297bfa | 2015-10-15 15:07:29 -0700 | [diff] [blame] | 207 | enum country_src cc_src); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 208 | QDF_STATUS sme_close(tHalHandle hHal); |
| 209 | QDF_STATUS sme_start(tHalHandle hHal); |
| 210 | QDF_STATUS sme_stop(tHalHandle hHal, tHalStopType stopType); |
| 211 | QDF_STATUS sme_open_session(tHalHandle hHal, csr_roam_completeCallback callback, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 212 | void *pContext, uint8_t *pSelfMacAddr, |
| 213 | uint8_t *pbSessionId, uint32_t type, |
| 214 | uint32_t subType); |
Peng Xu | f5d60c8 | 2015-10-02 17:17:03 -0700 | [diff] [blame] | 215 | void sme_set_curr_device_mode(tHalHandle hHal, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 216 | enum tQDF_ADAPTER_MODE currDeviceMode); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 217 | QDF_STATUS sme_close_session(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 218 | csr_roamSessionCloseCallback callback, |
| 219 | void *pContext); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 220 | QDF_STATUS sme_update_roam_params(tHalHandle hHal, uint8_t session_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 221 | struct roam_ext_params roam_params_src, int update_param); |
Varun Reddy Yeturu | b43fda1 | 2015-09-10 18:16:21 -0700 | [diff] [blame] | 222 | #ifdef FEATURE_WLAN_SCAN_PNO |
| 223 | void sme_update_roam_pno_channel_prediction_config( |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 224 | tHalHandle hal, tCsrConfigParam *csr_config, |
Varun Reddy Yeturu | b43fda1 | 2015-09-10 18:16:21 -0700 | [diff] [blame] | 225 | uint8_t copy_from_to); |
| 226 | #else |
| 227 | static inline void sme_update_roam_pno_channel_prediction_config( |
Krunal Soni | 1878d3a | 2016-01-14 13:00:44 -0800 | [diff] [blame] | 228 | tHalHandle hal, tCsrConfigParam *csr_config, |
Varun Reddy Yeturu | b43fda1 | 2015-09-10 18:16:21 -0700 | [diff] [blame] | 229 | uint8_t copy_from_to) |
| 230 | {} |
| 231 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 232 | QDF_STATUS sme_update_config(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 233 | tpSmeConfigParams pSmeConfigParams); |
| 234 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 235 | QDF_STATUS sme_set11dinfo(tHalHandle hHal, tpSmeConfigParams pSmeConfigParams); |
| 236 | QDF_STATUS sme_get_soft_ap_domain(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 237 | v_REGDOMAIN_t *domainIdSoftAp); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 238 | QDF_STATUS sme_set_reg_info(tHalHandle hHal, uint8_t *apCntryCode); |
| 239 | QDF_STATUS sme_change_config_params(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 240 | tCsrUpdateConfigParam *pUpdateConfigParam); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 241 | QDF_STATUS sme_hdd_ready_ind(tHalHandle hHal); |
| 242 | QDF_STATUS sme_process_msg(tHalHandle hHal, cds_msg_t *pMsg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 243 | void sme_free_msg(tHalHandle hHal, cds_msg_t *pMsg); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 244 | QDF_STATUS sme_scan_request(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 245 | tCsrScanRequest *, csr_scan_completeCallback callback, |
| 246 | void *pContext); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 247 | QDF_STATUS sme_scan_get_result(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 248 | tCsrScanResultFilter *pFilter, |
| 249 | tScanResultHandle *phResult); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 250 | QDF_STATUS sme_get_ap_channel_from_scan_cache(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 251 | tCsrRoamProfile *profile, |
| 252 | tScanResultHandle *scan_cache, |
| 253 | uint8_t *ap_chnl_id); |
| 254 | bool sme_store_joinreq_param(tHalHandle hal_handle, |
| 255 | tCsrRoamProfile *profile, |
| 256 | tScanResultHandle scan_cache, |
| 257 | uint32_t *roam_id, |
| 258 | uint32_t session_id); |
| 259 | bool sme_clear_joinreq_param(tHalHandle hal_handle, |
| 260 | uint32_t session_id); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 261 | QDF_STATUS sme_issue_stored_joinreq(tHalHandle hal_handle, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 262 | uint32_t *roam_id, |
| 263 | uint32_t session_id); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 264 | QDF_STATUS sme_scan_flush_result(tHalHandle hHal); |
| 265 | QDF_STATUS sme_filter_scan_results(tHalHandle hHal, uint8_t sessionId); |
| 266 | QDF_STATUS sme_scan_flush_p2p_result(tHalHandle hHal, uint8_t sessionId); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 267 | tCsrScanResultInfo *sme_scan_result_get_first(tHalHandle, |
| 268 | tScanResultHandle hScanResult); |
| 269 | tCsrScanResultInfo *sme_scan_result_get_next(tHalHandle, |
| 270 | tScanResultHandle hScanResult); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 271 | QDF_STATUS sme_scan_result_purge(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 272 | tScanResultHandle hScanResult); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 273 | QDF_STATUS sme_scan_get_pmkid_candidate_list(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 274 | tPmkidCandidateInfo *pPmkidList, |
| 275 | uint32_t *pNumItems); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 276 | QDF_STATUS sme_roam_connect(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 277 | tCsrRoamProfile *pProfile, uint32_t *pRoamId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 278 | QDF_STATUS sme_roam_reassoc(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 279 | tCsrRoamProfile *pProfile, |
| 280 | tCsrRoamModifyProfileFields modProfileFields, |
| 281 | uint32_t *pRoamId, bool fForce); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 282 | QDF_STATUS sme_roam_connect_to_last_profile(tHalHandle hHal, uint8_t sessionId); |
| 283 | QDF_STATUS sme_roam_disconnect(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 284 | eCsrRoamDisconnectReason reason); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 285 | QDF_STATUS sme_roam_stop_bss(tHalHandle hHal, uint8_t sessionId); |
| 286 | QDF_STATUS sme_roam_get_associated_stas(tHalHandle hHal, uint8_t sessionId, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 287 | QDF_MODULE_ID modId, void *pUsrContext, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 288 | void *pfnSapEventCallback, |
| 289 | uint8_t *pAssocStasBuf); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 290 | QDF_STATUS sme_roam_disconnect_sta(tHalHandle hHal, uint8_t sessionId, |
Deepthi Gowri | b3bfefd | 2016-09-13 15:14:34 +0530 | [diff] [blame] | 291 | struct tagCsrDelStaParams *p_del_sta_params); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 292 | QDF_STATUS sme_roam_deauth_sta(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 293 | struct tagCsrDelStaParams *pDelStaParams); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 294 | QDF_STATUS sme_roam_tkip_counter_measures(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 295 | bool bEnable); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 296 | QDF_STATUS sme_roam_get_wps_session_overlap(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 297 | void *pUsrContext, |
| 298 | void *pfnSapEventCallback, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 299 | struct qdf_mac_addr pRemoveMac); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 300 | QDF_STATUS sme_roam_get_connect_state(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 301 | eCsrConnectState *pState); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 302 | QDF_STATUS sme_roam_get_connect_profile(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 303 | tCsrRoamConnectedProfile *pProfile); |
Naveen Rawat | df0a7e7 | 2016-01-06 18:35:53 -0800 | [diff] [blame] | 304 | void sme_roam_free_connect_profile(tCsrRoamConnectedProfile *profile); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 305 | QDF_STATUS sme_roam_set_pmkid_cache(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 306 | tPmkidCacheInfo *pPMKIDCache, |
| 307 | uint32_t numItems, |
| 308 | bool update_entire_cache); |
| 309 | |
| 310 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 311 | QDF_STATUS sme_roam_set_psk_pmk(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 312 | uint8_t *pPSK_PMK, size_t pmk_len); |
| 313 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 314 | QDF_STATUS sme_roam_get_security_req_ie(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 315 | uint32_t *pLen, uint8_t *pBuf, |
| 316 | eCsrSecurityType secType); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 317 | QDF_STATUS sme_roam_get_security_rsp_ie(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 318 | uint32_t *pLen, uint8_t *pBuf, |
| 319 | eCsrSecurityType secType); |
| 320 | uint32_t sme_roam_get_num_pmkid_cache(tHalHandle hHal, uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 321 | QDF_STATUS sme_roam_get_pmkid_cache(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 322 | uint32_t *pNum, |
| 323 | tPmkidCacheInfo *pPmkidCache); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 324 | QDF_STATUS sme_get_config_param(tHalHandle hHal, tSmeConfigParams *pParam); |
| 325 | QDF_STATUS sme_get_statistics(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 326 | eCsrStatsRequesterType requesterId, |
| 327 | uint32_t statsMask, tCsrStatsCallback callback, |
| 328 | uint32_t periodicity, bool cache, uint8_t staId, |
| 329 | void *pContext, uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 330 | QDF_STATUS sme_get_rssi(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 331 | tCsrRssiCallback callback, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 332 | uint8_t staId, struct qdf_mac_addr bssId, int8_t lastRSSI, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 333 | void *pContext, void *p_cds_context); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 334 | QDF_STATUS sme_get_snr(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 335 | tCsrSnrCallback callback, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 336 | uint8_t staId, struct qdf_mac_addr bssId, void *pContext); |
Srinivas Girigowda | 515a9ef | 2015-12-11 11:00:48 -0800 | [diff] [blame] | 337 | #ifdef FEATURE_WLAN_ESE |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 338 | QDF_STATUS sme_get_tsm_stats(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 339 | tCsrTsmStatsCallback callback, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 340 | uint8_t staId, struct qdf_mac_addr bssId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 341 | void *pContext, void *p_cds_context, uint8_t tid); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 342 | QDF_STATUS sme_set_cckm_ie(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 343 | uint8_t sessionId, |
| 344 | uint8_t *pCckmIe, uint8_t cckmIeLen); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 345 | QDF_STATUS sme_set_ese_beacon_request(tHalHandle hHal, const uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 346 | const tCsrEseBeaconReq *pEseBcnReq); |
Srinivas Girigowda | 515a9ef | 2015-12-11 11:00:48 -0800 | [diff] [blame] | 347 | QDF_STATUS sme_set_plm_request(tHalHandle hHal, tpSirPlmReq pPlm); |
| 348 | #endif /*FEATURE_WLAN_ESE */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 349 | QDF_STATUS sme_cfg_set_int(tHalHandle hal, uint16_t cfg_id, uint32_t value); |
| 350 | QDF_STATUS sme_cfg_set_str(tHalHandle hal, uint16_t cfg_id, uint8_t *str, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 351 | uint32_t length); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 352 | QDF_STATUS sme_cfg_get_int(tHalHandle hal, uint16_t cfg_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 353 | uint32_t *cfg_value); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 354 | QDF_STATUS sme_cfg_get_str(tHalHandle hal, uint16_t cfg_id, uint8_t *str, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 355 | uint32_t *length); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 356 | QDF_STATUS sme_get_modify_profile_fields(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 357 | tCsrRoamModifyProfileFields * |
| 358 | pModifyProfileFields); |
| 359 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 360 | extern QDF_STATUS sme_set_host_power_save(tHalHandle hHal, bool psMode); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 361 | |
| 362 | void sme_set_dhcp_till_power_active_flag(tHalHandle hHal, uint8_t flag); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 363 | extern QDF_STATUS sme_register11d_scan_done_callback(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 364 | csr_scan_completeCallback); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 365 | void sme_deregister11d_scan_done_callback(tHalHandle hHal); |
| 366 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 367 | #ifdef FEATURE_OEM_DATA_SUPPORT |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 368 | extern QDF_STATUS sme_register_oem_data_rsp_callback(tHalHandle h_hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 369 | sme_send_oem_data_rsp_msg callback); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 370 | void sme_deregister_oem_data_rsp_callback(tHalHandle h_hal); |
| 371 | |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 372 | #else |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 373 | static inline QDF_STATUS sme_register_oem_data_rsp_callback(tHalHandle h_hal, |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 374 | sme_send_oem_data_rsp_msg callback) |
| 375 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 376 | return QDF_STATUS_SUCCESS; |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 377 | } |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 378 | static inline void sme_deregister_oem_data_rsp_callback(tHalHandle h_hal) |
| 379 | { |
| 380 | } |
| 381 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 382 | #endif |
| 383 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 384 | extern QDF_STATUS sme_wow_add_pattern(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 385 | struct wow_add_pattern *pattern, uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 386 | extern QDF_STATUS sme_wow_delete_pattern(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 387 | struct wow_delete_pattern *pattern, uint8_t sessionId); |
| 388 | |
| 389 | void sme_register_ftm_msg_processor(tHalHandle hal, |
| 390 | hdd_ftm_msg_processor callback); |
| 391 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 392 | extern QDF_STATUS sme_enter_wowl(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 393 | void (*enter_wowl_callback_routine)(void |
| 394 | *callbackContext, |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 395 | QDF_STATUS status), |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 396 | void *enter_wowl_callback_context, |
| 397 | #ifdef WLAN_WAKEUP_EVENTS |
| 398 | void (*wake_reason_ind_cb)(void *callbackContext, |
| 399 | tpSirWakeReasonInd |
| 400 | wake_reason_ind), |
| 401 | void *wake_reason_ind_cb_ctx, |
| 402 | #endif /* WLAN_WAKEUP_EVENTS */ |
| 403 | tpSirSmeWowlEnterParams wowl_enter_params, |
| 404 | uint8_t sessionId); |
| 405 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 406 | extern QDF_STATUS sme_exit_wowl(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 407 | tpSirSmeWowlExitParams wowl_exit_params); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 408 | QDF_STATUS sme_roam_set_key(tHalHandle, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 409 | tCsrRoamSetKey *pSetKey, uint32_t *pRoamId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 410 | QDF_STATUS sme_get_country_code(tHalHandle hHal, uint8_t *pBuf, uint8_t *pbLen); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 411 | |
| 412 | |
| 413 | void sme_apply_channel_power_info_to_fw(tHalHandle hHal); |
| 414 | |
| 415 | /* some support functions */ |
| 416 | bool sme_is11d_supported(tHalHandle hHal); |
| 417 | bool sme_is11h_supported(tHalHandle hHal); |
| 418 | bool sme_is_wmm_supported(tHalHandle hHal); |
| 419 | |
| 420 | typedef void (*tSmeChangeCountryCallback)(void *pContext); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 421 | QDF_STATUS sme_change_country_code(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 422 | tSmeChangeCountryCallback callback, |
| 423 | uint8_t *pCountry, |
| 424 | void *pContext, |
| 425 | void *p_cds_context, |
| 426 | tAniBool countryFromUserSpace, |
| 427 | tAniBool sendRegHint); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 428 | QDF_STATUS sme_generic_change_country_code(tHalHandle hHal, |
Amar Singhal | 7f1f3ec | 2015-10-13 17:14:08 -0700 | [diff] [blame] | 429 | uint8_t *pCountry); |
Rajeev Kumar | 8e3e283 | 2015-11-06 16:02:54 -0800 | [diff] [blame] | 430 | QDF_STATUS sme_tx_fail_monitor_start_stop_ind(tHalHandle hHal, |
| 431 | uint8_t tx_fail_count, |
| 432 | void *txFailIndCallback); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 433 | QDF_STATUS sme_dhcp_start_ind(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 434 | uint8_t device_mode, |
| 435 | uint8_t *macAddr, uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 436 | QDF_STATUS sme_dhcp_stop_ind(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 437 | uint8_t device_mode, |
| 438 | uint8_t *macAddr, uint8_t sessionId); |
| 439 | void sme_set_cfg_privacy(tHalHandle hHal, tCsrRoamProfile *pProfile, |
| 440 | bool fPrivacy); |
| 441 | void sme_get_recovery_stats(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 442 | QDF_STATUS sme_neighbor_report_request(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 443 | tpRrmNeighborReq pRrmNeighborReq, |
| 444 | tpRrmNeighborRspCallbackInfo callbackInfo); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 445 | QDF_STATUS sme_get_wcnss_wlan_compiled_version(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 446 | tSirVersionType * pVersion); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 447 | QDF_STATUS sme_get_wcnss_wlan_reported_version(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 448 | tSirVersionType *pVersion); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 449 | QDF_STATUS sme_get_wcnss_software_version(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 450 | uint8_t *pVersion, uint32_t versionBufferSize); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 451 | QDF_STATUS sme_get_wcnss_hardware_version(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 452 | uint8_t *pVersion, uint32_t versionBufferSize); |
| 453 | #ifdef FEATURE_WLAN_WAPI |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 454 | QDF_STATUS sme_scan_get_bkid_candidate_list(tHalHandle hHal, uint32_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 455 | tBkidCandidateInfo * pBkidList, |
| 456 | uint32_t *pNumItems); |
| 457 | #endif /* FEATURE_WLAN_WAPI */ |
| 458 | #ifdef FEATURE_OEM_DATA_SUPPORT |
Krishna Kumaar Natarajan | c1fa17d | 2016-08-03 14:19:20 -0700 | [diff] [blame] | 459 | QDF_STATUS sme_oem_data_req(tHalHandle hHal, struct oem_data_req *); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 460 | QDF_STATUS sme_oem_update_capability(tHalHandle hHal, |
Krishna Kumaar Natarajan | 53ca290 | 2015-12-04 14:01:46 -0800 | [diff] [blame] | 461 | struct sme_oem_capability *cap); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 462 | QDF_STATUS sme_oem_get_capability(tHalHandle hHal, |
Krishna Kumaar Natarajan | 53ca290 | 2015-12-04 14:01:46 -0800 | [diff] [blame] | 463 | struct sme_oem_capability *cap); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 464 | #endif /*FEATURE_OEM_DATA_SUPPORT */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 465 | QDF_STATUS sme_roam_update_apwpsie(tHalHandle, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 466 | tSirAPWPSIEs * pAPWPSIES); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 467 | QDF_STATUS sme_roam_update_apwparsni_es(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 468 | tSirRSNie *pAPSirRSNie); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 469 | QDF_STATUS sme_change_mcc_beacon_interval(tHalHandle hHal, uint8_t sessionId); |
| 470 | QDF_STATUS sme_set_host_offload(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 471 | tpSirHostOffloadReq pRequest); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 472 | QDF_STATUS sme_set_keep_alive(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 473 | tpSirKeepAliveReq pRequest); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 474 | QDF_STATUS sme_get_operation_channel(tHalHandle hHal, uint32_t *pChannel, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 475 | uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 476 | QDF_STATUS sme_register_mgmt_frame(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 477 | uint16_t frameType, uint8_t *matchData, |
| 478 | uint16_t matchLen); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 479 | QDF_STATUS sme_deregister_mgmt_frame(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 480 | uint16_t frameType, uint8_t *matchData, |
| 481 | uint16_t matchLen); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 482 | QDF_STATUS sme_configure_rxp_filter(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 483 | tpSirWlanSetRxpFilters wlanRxpFilterParam); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 484 | QDF_STATUS sme_ConfigureAppsCpuWakeupState(tHalHandle hHal, bool isAppsAwake); |
| 485 | QDF_STATUS sme_configure_suspend_ind(tHalHandle hHal, |
Houston Hoffman | 7260ecb | 2015-10-05 18:43:07 -0700 | [diff] [blame] | 486 | uint32_t conn_state_mask, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 487 | csr_readyToSuspendCallback, |
| 488 | void *callbackContext); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 489 | QDF_STATUS sme_configure_resume_req(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 490 | tpSirWlanResumeParam wlanResumeParam); |
| 491 | #ifdef WLAN_FEATURE_EXTWOW_SUPPORT |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 492 | QDF_STATUS sme_configure_ext_wow(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 493 | tpSirExtWoWParams wlanExtParams, |
| 494 | csr_readyToSuspendCallback callback, |
| 495 | void *callbackContext); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 496 | QDF_STATUS sme_configure_app_type1_params(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 497 | tpSirAppType1Params wlanAppType1Params); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 498 | QDF_STATUS sme_configure_app_type2_params(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 499 | tpSirAppType2Params wlanAppType2Params); |
| 500 | #endif |
| 501 | int8_t sme_get_infra_session_id(tHalHandle hHal); |
| 502 | uint8_t sme_get_infra_operation_channel(tHalHandle hHal, uint8_t sessionId); |
| 503 | uint8_t sme_get_concurrent_operation_channel(tHalHandle hHal); |
| 504 | #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH |
| 505 | uint16_t sme_check_concurrent_channel_overlap(tHalHandle hHal, uint16_t sap_ch, |
| 506 | eCsrPhyMode sapPhyMode, |
| 507 | uint8_t cc_switch_mode); |
| 508 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 509 | QDF_STATUS sme_abort_mac_scan(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 510 | eCsrAbortReason reason); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 511 | QDF_STATUS sme_get_cfg_valid_channels(tHalHandle hHal, uint8_t *aValidChannels, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 512 | uint32_t *len); |
| 513 | #ifdef FEATURE_WLAN_SCAN_PNO |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 514 | QDF_STATUS sme_set_preferred_network_list(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 515 | tpSirPNOScanReq pRequest, |
| 516 | uint8_t sessionId, |
| 517 | preferred_network_found_ind_cb |
| 518 | callbackRoutine, void *callbackContext); |
| 519 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 520 | QDF_STATUS sme_preferred_network_found_ind(tHalHandle hHal, void *pMsg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 521 | #endif /* FEATURE_WLAN_SCAN_PNO */ |
| 522 | #ifdef WLAN_FEATURE_PACKET_FILTERING |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 523 | QDF_STATUS sme_8023_multicast_list(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 524 | tpSirRcvFltMcAddrList pMulticastAddrs); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 525 | QDF_STATUS sme_receive_filter_set_filter(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 526 | tpSirRcvPktFilterCfgType pRcvPktFilterCfg, |
| 527 | uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 528 | QDF_STATUS sme_receive_filter_clear_filter(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 529 | tpSirRcvFltPktClearParam pRcvFltPktClearParam, |
| 530 | uint8_t sessionId); |
| 531 | #endif /* WLAN_FEATURE_PACKET_FILTERING */ |
| 532 | bool sme_is_channel_valid(tHalHandle hHal, uint8_t channel); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 533 | QDF_STATUS sme_set_freq_band(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 534 | eCsrBand eBand); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 535 | QDF_STATUS sme_get_freq_band(tHalHandle hHal, eCsrBand *pBand); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 536 | #ifdef WLAN_FEATURE_GTK_OFFLOAD |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 537 | QDF_STATUS sme_set_gtk_offload(tHalHandle hal_ctx, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 538 | tpSirGtkOffloadParams request, |
| 539 | uint8_t session_id); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 540 | QDF_STATUS sme_get_gtk_offload(tHalHandle hal_ctx, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 541 | gtk_offload_get_info_callback callback_routine, |
| 542 | void *callback_context, uint8_t session_id); |
| 543 | #endif /* WLAN_FEATURE_GTK_OFFLOAD */ |
| 544 | uint16_t sme_chn_to_freq(uint8_t chanNum); |
| 545 | bool sme_is_channel_valid(tHalHandle hHal, uint8_t channel); |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 546 | QDF_STATUS sme_set_max_tx_power(tHalHandle hHal, struct qdf_mac_addr pBssid, |
| 547 | struct qdf_mac_addr pSelfMacAddress, int8_t dB); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 548 | QDF_STATUS sme_set_max_tx_power_per_band(eCsrBand band, int8_t db); |
| 549 | QDF_STATUS sme_set_tx_power(tHalHandle hHal, uint8_t sessionId, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 550 | struct qdf_mac_addr bssid, |
| 551 | enum tQDF_ADAPTER_MODE dev_mode, int power); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 552 | QDF_STATUS sme_set_custom_mac_addr(tSirMacAddr customMacAddr); |
| 553 | QDF_STATUS sme_hide_ssid(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 554 | uint8_t ssidHidden); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 555 | QDF_STATUS sme_set_tm_level(tHalHandle hHal, uint16_t newTMLevel, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 556 | uint16_t tmMode); |
| 557 | void sme_feature_caps_exchange(tHalHandle hHal); |
| 558 | void sme_disable_feature_capablity(uint8_t feature_index); |
| 559 | void sme_reset_power_values_for5_g(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 560 | QDF_STATUS sme_update_roam_prefer5_g_hz(tHalHandle hHal, bool nRoamPrefer5GHz); |
| 561 | QDF_STATUS sme_set_roam_intra_band(tHalHandle hHal, const bool nRoamIntraBand); |
| 562 | QDF_STATUS sme_update_roam_scan_n_probes(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 563 | const uint8_t nProbes); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 564 | QDF_STATUS sme_update_roam_scan_home_away_time(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 565 | uint8_t sessionId, |
| 566 | const uint16_t nRoamScanHomeAwayTime, |
| 567 | const bool bSendOffloadCmd); |
| 568 | |
| 569 | bool sme_get_roam_intra_band(tHalHandle hHal); |
| 570 | uint8_t sme_get_roam_scan_n_probes(tHalHandle hHal); |
| 571 | uint16_t sme_get_roam_scan_home_away_time(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 572 | QDF_STATUS sme_update_roam_rssi_diff(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 573 | uint8_t RoamRssiDiff); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 574 | QDF_STATUS sme_update_fast_transition_enabled(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 575 | bool isFastTransitionEnabled); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 576 | QDF_STATUS sme_update_wes_mode(tHalHandle hHal, bool isWESModeEnabled, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 577 | uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 578 | QDF_STATUS sme_set_roam_scan_control(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 579 | bool roamScanControl); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 580 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 581 | QDF_STATUS sme_update_is_fast_roam_ini_feature_enabled(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 582 | uint8_t sessionId, |
| 583 | const bool |
| 584 | isFastRoamIniFeatureEnabled); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 585 | QDF_STATUS sme_update_is_mawc_ini_feature_enabled(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 586 | const bool MAWCEnabled); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 587 | QDF_STATUS sme_stop_roaming(tHalHandle hHal, uint8_t sessionId, uint8_t reason); |
| 588 | QDF_STATUS sme_start_roaming(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 589 | uint8_t reason); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 590 | QDF_STATUS sme_update_enable_fast_roam_in_concurrency(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 591 | bool bFastRoamInConIniFeatureEnabled); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 592 | #ifdef FEATURE_WLAN_ESE |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 593 | QDF_STATUS sme_update_is_ese_feature_enabled(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 594 | const bool isEseIniFeatureEnabled); |
| 595 | #endif /* FEATURE_WLAN_ESE */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 596 | QDF_STATUS sme_update_config_fw_rssi_monitoring(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 597 | bool fEnableFwRssiMonitoring); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 598 | QDF_STATUS sme_set_roam_rescan_rssi_diff(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 599 | uint8_t sessionId, |
| 600 | const uint8_t nRoamRescanRssiDiff); |
| 601 | uint8_t sme_get_roam_rescan_rssi_diff(tHalHandle hHal); |
| 602 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 603 | QDF_STATUS sme_set_roam_opportunistic_scan_threshold_diff(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 604 | uint8_t sessionId, |
| 605 | const uint8_t nOpportunisticThresholdDiff); |
| 606 | uint8_t sme_get_roam_opportunistic_scan_threshold_diff(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 607 | QDF_STATUS sme_set_neighbor_lookup_rssi_threshold(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 608 | uint8_t sessionId, uint8_t neighborLookupRssiThreshold); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 609 | QDF_STATUS sme_set_delay_before_vdev_stop(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 610 | uint8_t sessionId, uint8_t delay_before_vdev_stop); |
| 611 | uint8_t sme_get_neighbor_lookup_rssi_threshold(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 612 | QDF_STATUS sme_set_neighbor_scan_refresh_period(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 613 | uint8_t sessionId, uint16_t neighborScanResultsRefreshPeriod); |
| 614 | uint16_t sme_get_neighbor_scan_refresh_period(tHalHandle hHal); |
| 615 | uint16_t sme_get_empty_scan_refresh_period(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 616 | QDF_STATUS sme_update_empty_scan_refresh_period(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 617 | uint8_t sessionId, uint16_t nEmptyScanRefreshPeriod); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 618 | QDF_STATUS sme_set_neighbor_scan_min_chan_time(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 619 | const uint16_t nNeighborScanMinChanTime, |
| 620 | uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 621 | QDF_STATUS sme_set_neighbor_scan_max_chan_time(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 622 | uint8_t sessionId, const uint16_t nNeighborScanMaxChanTime); |
| 623 | uint16_t sme_get_neighbor_scan_min_chan_time(tHalHandle hHal, |
| 624 | uint8_t sessionId); |
| 625 | uint32_t sme_get_neighbor_roam_state(tHalHandle hHal, uint8_t sessionId); |
| 626 | uint32_t sme_get_current_roam_state(tHalHandle hHal, uint8_t sessionId); |
| 627 | uint32_t sme_get_current_roam_sub_state(tHalHandle hHal, uint8_t sessionId); |
| 628 | uint32_t sme_get_lim_sme_state(tHalHandle hHal); |
| 629 | uint32_t sme_get_lim_mlm_state(tHalHandle hHal); |
| 630 | bool sme_is_lim_session_valid(tHalHandle hHal, uint8_t sessionId); |
| 631 | uint32_t sme_get_lim_sme_session_state(tHalHandle hHal, uint8_t sessionId); |
| 632 | uint32_t sme_get_lim_mlm_session_state(tHalHandle hHal, uint8_t sessionId); |
| 633 | uint16_t sme_get_neighbor_scan_max_chan_time(tHalHandle hHal, |
| 634 | uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 635 | QDF_STATUS sme_set_neighbor_scan_period(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 636 | const uint16_t nNeighborScanPeriod); |
| 637 | uint16_t sme_get_neighbor_scan_period(tHalHandle hHal, uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 638 | QDF_STATUS sme_set_roam_bmiss_first_bcnt(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 639 | uint8_t sessionId, const uint8_t nRoamBmissFirstBcnt); |
| 640 | uint8_t sme_get_roam_bmiss_first_bcnt(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 641 | QDF_STATUS sme_set_roam_bmiss_final_bcnt(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 642 | const uint8_t nRoamBmissFinalBcnt); |
| 643 | uint8_t sme_get_roam_bmiss_final_bcnt(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 644 | QDF_STATUS sme_set_roam_beacon_rssi_weight(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 645 | const uint8_t nRoamBeaconRssiWeight); |
| 646 | uint8_t sme_get_roam_beacon_rssi_weight(tHalHandle hHal); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 647 | uint8_t sme_get_roam_rssi_diff(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 648 | QDF_STATUS sme_change_roam_scan_channel_list(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 649 | uint8_t *pChannelList, |
| 650 | uint8_t numChannels); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 651 | QDF_STATUS sme_set_ese_roam_scan_channel_list(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 652 | uint8_t sessionId, uint8_t *pChannelList, |
| 653 | uint8_t numChannels); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 654 | QDF_STATUS sme_get_roam_scan_channel_list(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 655 | uint8_t *pChannelList, uint8_t *pNumChannels, |
| 656 | uint8_t sessionId); |
| 657 | bool sme_get_is_ese_feature_enabled(tHalHandle hHal); |
| 658 | bool sme_get_wes_mode(tHalHandle hHal); |
| 659 | bool sme_get_roam_scan_control(tHalHandle hHal); |
| 660 | bool sme_get_is_lfr_feature_enabled(tHalHandle hHal); |
| 661 | bool sme_get_is_ft_feature_enabled(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 662 | QDF_STATUS sme_update_roam_scan_offload_enabled(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 663 | bool nRoamScanOffloadEnabled); |
| 664 | uint8_t sme_is_feature_supported_by_fw(uint8_t featEnumValue); |
| 665 | #ifdef FEATURE_WLAN_TDLS |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 666 | QDF_STATUS sme_send_tdls_link_establish_params(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 667 | uint8_t sessionId, |
| 668 | const tSirMacAddr peerMac, |
| 669 | tCsrTdlsLinkEstablishParams * |
| 670 | tdlsLinkEstablishParams); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 671 | QDF_STATUS sme_send_tdls_mgmt_frame(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 672 | const tSirMacAddr peerMac, uint8_t frame_type, |
| 673 | uint8_t dialog, uint16_t status, |
| 674 | uint32_t peerCapability, uint8_t *buf, |
| 675 | uint8_t len, uint8_t responder); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 676 | QDF_STATUS sme_change_tdls_peer_sta(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 677 | const tSirMacAddr peerMac, |
| 678 | tCsrStaParams *pstaParams); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 679 | QDF_STATUS sme_add_tdls_peer_sta(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 680 | const tSirMacAddr peerMac); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 681 | QDF_STATUS sme_delete_tdls_peer_sta(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 682 | const tSirMacAddr peerMac); |
| 683 | void sme_set_tdls_power_save_prohibited(tHalHandle hHal, uint32_t sessionId, |
| 684 | bool val); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 685 | QDF_STATUS sme_send_tdls_chan_switch_req( |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 686 | tHalHandle hal, |
| 687 | sme_tdls_chan_switch_params *ch_switch_params); |
| 688 | #endif |
| 689 | |
| 690 | /* |
| 691 | * SME API to enable/disable WLAN driver initiated SSR |
| 692 | */ |
| 693 | void sme_update_enable_ssr(tHalHandle hHal, bool enableSSR); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 694 | QDF_STATUS sme_set_phy_mode(tHalHandle hHal, eCsrPhyMode phyMode); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 695 | eCsrPhyMode sme_get_phy_mode(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 696 | QDF_STATUS sme_handoff_request(tHalHandle hHal, uint8_t sessionId, |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 697 | tCsrHandoffRequest *pHandoffInfo); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 698 | QDF_STATUS sme_is_sta_p2p_client_connected(tHalHandle hHal); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 699 | #ifdef FEATURE_WLAN_LPHB |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 700 | QDF_STATUS sme_lphb_config_req(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 701 | tSirLPHBReq * lphdReq, |
| 702 | void (*pCallbackfn)(void *pHddCtx, |
| 703 | tSirLPHBInd * indParam)); |
| 704 | #endif /* FEATURE_WLAN_LPHB */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 705 | QDF_STATUS sme_add_periodic_tx_ptrn(tHalHandle hHal, tSirAddPeriodicTxPtrn |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 706 | *addPeriodicTxPtrnParams); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 707 | QDF_STATUS sme_del_periodic_tx_ptrn(tHalHandle hHal, tSirDelPeriodicTxPtrn |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 708 | *delPeriodicTxPtrnParams); |
| 709 | void sme_enable_disable_split_scan(tHalHandle hHal, uint8_t nNumStaChan, |
| 710 | uint8_t nNumP2PChan); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 711 | QDF_STATUS sme_send_rate_update_ind(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 712 | tSirRateUpdateInd *rateUpdateParams); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 713 | QDF_STATUS sme_roam_del_pmkid_from_cache(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 714 | const uint8_t *pBSSId, bool flush_cache); |
| 715 | void sme_get_command_q_status(tHalHandle hHal); |
| 716 | |
Rajeev Kumar | 8e3e283 | 2015-11-06 16:02:54 -0800 | [diff] [blame] | 717 | QDF_STATUS sme_enable_rmc(tHalHandle hHal, uint32_t sessionId); |
| 718 | QDF_STATUS sme_disable_rmc(tHalHandle hHal, uint32_t sessionId); |
| 719 | QDF_STATUS sme_send_rmc_action_period(tHalHandle hHal, uint32_t sessionId); |
| 720 | QDF_STATUS sme_request_ibss_peer_info(tHalHandle hHal, void *pUserData, |
| 721 | pIbssPeerInfoCb peerInfoCbk, bool allPeerInfoReqd, uint8_t staIdx); |
| 722 | QDF_STATUS sme_send_cesium_enable_ind(tHalHandle hHal, uint32_t sessionId); |
| 723 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 724 | /* |
| 725 | * SME API to enable/disable idle mode powersave |
| 726 | * This should be called only if powersave offload |
| 727 | * is enabled |
| 728 | */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 729 | QDF_STATUS sme_set_idle_powersave_config(void *cds_context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 730 | tHalHandle hHal, uint32_t value); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 731 | QDF_STATUS sme_notify_modem_power_state(tHalHandle hHal, uint32_t value); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 732 | |
| 733 | /*SME API to convert convert the ini value to the ENUM used in csr and MAC*/ |
| 734 | ePhyChanBondState sme_get_cb_phy_state_from_cb_ini_value(uint32_t cb_ini_value); |
| 735 | int sme_update_ht_config(tHalHandle hHal, uint8_t sessionId, uint16_t htCapab, |
| 736 | int value); |
| 737 | int16_t sme_get_ht_config(tHalHandle hHal, uint8_t session_id, |
| 738 | uint16_t ht_capab); |
| 739 | #ifdef QCA_HT_2040_COEX |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 740 | QDF_STATUS sme_notify_ht2040_mode(tHalHandle hHal, uint16_t staId, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 741 | struct qdf_mac_addr macAddrSTA, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 742 | uint8_t sessionId, |
| 743 | uint8_t channel_type); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 744 | QDF_STATUS sme_set_ht2040_mode(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 745 | uint8_t channel_type, bool obssEnabled); |
| 746 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 747 | QDF_STATUS sme_get_reg_info(tHalHandle hHal, uint8_t chanId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 748 | uint32_t *regInfo1, uint32_t *regInfo2); |
| 749 | #ifdef FEATURE_WLAN_TDLS |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 750 | QDF_STATUS sme_update_fw_tdls_state(tHalHandle hHal, void *psmeTdlsParams, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 751 | bool useSmeLock); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 752 | QDF_STATUS sme_update_tdls_peer_state(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 753 | tSmeTdlsPeerStateParams *pPeerStateParams); |
| 754 | #endif /* FEATURE_WLAN_TDLS */ |
| 755 | #ifdef FEATURE_WLAN_CH_AVOID |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 756 | QDF_STATUS sme_add_ch_avoid_callback(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 757 | void (*pCallbackfn)(void *hdd_context, void *indi_param)); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 758 | QDF_STATUS sme_ch_avoid_update_req(tHalHandle hHal); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 759 | #else |
| 760 | static inline |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 761 | QDF_STATUS sme_add_ch_avoid_callback(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 762 | void (*pCallbackfn)(void *hdd_context, void *indi_param)) |
| 763 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 764 | return QDF_STATUS_E_NOSUPPORT; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 765 | } |
| 766 | |
| 767 | static inline |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 768 | QDF_STATUS sme_ch_avoid_update_req(tHalHandle hHal) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 769 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 770 | return QDF_STATUS_E_NOSUPPORT; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 771 | } |
| 772 | #endif /* FEATURE_WLAN_CH_AVOID */ |
| 773 | #ifdef FEATURE_WLAN_AUTO_SHUTDOWN |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 774 | QDF_STATUS sme_set_auto_shutdown_cb(tHalHandle hHal, void (*pCallbackfn)(void)); |
| 775 | QDF_STATUS sme_set_auto_shutdown_timer(tHalHandle hHal, uint32_t timer_value); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 776 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 777 | QDF_STATUS sme_roam_channel_change_req(tHalHandle hHal, |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 778 | struct qdf_mac_addr bssid, |
| 779 | struct ch_params_s *ch_params, |
| 780 | tCsrRoamProfile *profile); |
| 781 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 782 | QDF_STATUS sme_roam_start_beacon_req(tHalHandle hHal, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 783 | struct qdf_mac_addr bssid, uint8_t dfsCacWaitStatus); |
| 784 | QDF_STATUS sme_roam_csa_ie_request(tHalHandle hHal, struct qdf_mac_addr bssid, |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 785 | uint8_t targetChannel, uint8_t csaIeReqd, |
| 786 | struct ch_params_s *ch_params); |
| 787 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 788 | QDF_STATUS sme_init_thermal_info(tHalHandle hHal, |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 789 | tSmeThermalParams thermalParam); |
| 790 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 791 | QDF_STATUS sme_set_thermal_level(tHalHandle hHal, uint8_t level); |
| 792 | QDF_STATUS sme_txpower_limit(tHalHandle hHal, tSirTxPowerLimit *psmetx); |
| 793 | QDF_STATUS sme_get_link_speed(tHalHandle hHal, tSirLinkSpeedInfo *lsReq, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 794 | void *plsContext, |
| 795 | void (*pCallbackfn)(tSirLinkSpeedInfo *indParam, |
| 796 | void *pContext)); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 797 | QDF_STATUS sme_modify_add_ie(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 798 | tSirModifyIE *pModifyIE, eUpdateIEsType updateType); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 799 | QDF_STATUS sme_update_add_ie(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 800 | tSirUpdateIE *pUpdateIE, eUpdateIEsType updateType); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 801 | QDF_STATUS sme_update_connect_debug(tHalHandle hHal, uint32_t set_value); |
Sreelakshmi Konamki | 39acb13 | 2015-12-16 13:06:22 +0530 | [diff] [blame] | 802 | const char *sme_request_type_to_string(const uint8_t request_type); |
Rajeev Kumar | 43e25b1 | 2016-04-15 16:26:36 -0700 | [diff] [blame] | 803 | const char *sme_scan_type_to_string(const uint8_t scan_type); |
| 804 | const char *sme_bss_type_to_string(const uint8_t bss_type); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 805 | QDF_STATUS sme_ap_disable_intra_bss_fwd(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 806 | bool disablefwd); |
| 807 | uint32_t sme_get_channel_bonding_mode5_g(tHalHandle hHal); |
| 808 | uint32_t sme_get_channel_bonding_mode24_g(tHalHandle hHal); |
| 809 | #ifdef WLAN_FEATURE_STATS_EXT |
| 810 | typedef struct sStatsExtRequestReq { |
| 811 | uint32_t request_data_len; |
| 812 | uint8_t *request_data; |
| 813 | } tStatsExtRequestReq, *tpStatsExtRequestReq; |
| 814 | typedef void (*StatsExtCallback)(void *, tStatsExtEvent *); |
| 815 | void sme_stats_ext_register_callback(tHalHandle hHal, |
| 816 | StatsExtCallback callback); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 817 | void sme_stats_ext_deregister_callback(tHalHandle hhal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 818 | QDF_STATUS sme_stats_ext_request(uint8_t session_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 819 | tpStatsExtRequestReq input); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 820 | QDF_STATUS sme_stats_ext_event(tHalHandle hHal, void *pMsg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 821 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 822 | QDF_STATUS sme_update_dfs_scan_mode(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 823 | uint8_t sessionId, |
| 824 | uint8_t allowDFSChannelRoam); |
| 825 | uint8_t sme_get_dfs_scan_mode(tHalHandle hHal); |
| 826 | bool sme_sta_in_middle_of_roaming(tHalHandle hHal, uint8_t sessionId); |
| 827 | |
| 828 | #ifdef FEATURE_WLAN_EXTSCAN |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 829 | QDF_STATUS sme_get_valid_channels_by_band(tHalHandle hHal, uint8_t wifiBand, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 830 | uint32_t *aValidChannels, |
| 831 | uint8_t *pNumChannels); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 832 | QDF_STATUS sme_ext_scan_get_capabilities(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 833 | tSirGetExtScanCapabilitiesReqParams *pReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 834 | QDF_STATUS sme_ext_scan_start(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 835 | tSirWifiScanCmdReqParams *pStartCmd); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 836 | QDF_STATUS sme_ext_scan_stop(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 837 | tSirExtScanStopReqParams *pStopReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 838 | QDF_STATUS sme_set_bss_hotlist(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 839 | tSirExtScanSetBssidHotListReqParams * |
| 840 | pSetHotListReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 841 | QDF_STATUS sme_reset_bss_hotlist(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 842 | tSirExtScanResetBssidHotlistReqParams * |
| 843 | pResetReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 844 | QDF_STATUS sme_set_significant_change(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 845 | tSirExtScanSetSigChangeReqParams * |
| 846 | pSetSignificantChangeReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 847 | QDF_STATUS sme_reset_significant_change(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 848 | tSirExtScanResetSignificantChangeReqParams |
| 849 | *pResetReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 850 | QDF_STATUS sme_get_cached_results(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 851 | tSirExtScanGetCachedResultsReqParams * |
| 852 | pCachedResultsReq); |
| 853 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 854 | QDF_STATUS sme_set_epno_list(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 855 | struct wifi_epno_params *req_msg); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 856 | QDF_STATUS sme_set_passpoint_list(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 857 | struct wifi_passpoint_req *req_msg); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 858 | QDF_STATUS sme_reset_passpoint_list(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 859 | struct wifi_passpoint_req *req_msg); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 860 | QDF_STATUS |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 861 | sme_set_ssid_hotlist(tHalHandle hal, |
| 862 | struct sir_set_ssid_hotlist_request *request); |
| 863 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 864 | QDF_STATUS sme_ext_scan_register_callback(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 865 | void (*pExtScanIndCb)(void *, const uint16_t, void *)); |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 866 | #else |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 867 | static inline QDF_STATUS sme_ext_scan_register_callback(tHalHandle hHal, |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 868 | void (*pExtScanIndCb)(void *, const uint16_t, void *)) |
| 869 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 870 | return QDF_STATUS_SUCCESS; |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 871 | } |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 872 | #endif /* FEATURE_WLAN_EXTSCAN */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 873 | QDF_STATUS sme_abort_roam_scan(tHalHandle hHal, uint8_t sessionId); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 874 | #ifdef WLAN_FEATURE_LINK_LAYER_STATS |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 875 | QDF_STATUS sme_ll_stats_clear_req(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 876 | tSirLLStatsClearReq * pclearStatsReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 877 | QDF_STATUS sme_ll_stats_set_req(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 878 | tSirLLStatsSetReq *psetStatsReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 879 | QDF_STATUS sme_ll_stats_get_req(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 880 | tSirLLStatsGetReq *pgetStatsReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 881 | QDF_STATUS sme_set_link_layer_stats_ind_cb(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 882 | void (*callbackRoutine)(void *callbackCtx, |
| 883 | int indType, void *pRsp)); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 884 | QDF_STATUS sme_reset_link_layer_stats_ind_cb(tHalHandle hhal); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 885 | #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ |
| 886 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 887 | QDF_STATUS sme_fw_mem_dump(tHalHandle hHal, void *recvd_req); |
| 888 | QDF_STATUS sme_fw_mem_dump_register_cb(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 889 | void (*callback_routine)(void *cb_context, |
| 890 | struct fw_dump_rsp *rsp)); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 891 | QDF_STATUS sme_fw_mem_dump_unregister_cb(tHalHandle hHal); |
Manikandan Mohan | 80dea79 | 2016-04-28 16:36:48 -0700 | [diff] [blame] | 892 | QDF_STATUS sme_set_wisa_params(tHalHandle hal, |
| 893 | struct sir_wisa_params *wisa_params); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 894 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 895 | QDF_STATUS sme_update_roam_offload_enabled(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 896 | bool nRoamOffloadEnabled); |
Deepak Dhamdhere | f2a7d8b | 2016-08-19 16:17:38 -0700 | [diff] [blame] | 897 | QDF_STATUS sme_update_roam_key_mgmt_offload_enabled(tHalHandle hal_ctx, |
| 898 | uint8_t session_id, |
| 899 | bool key_mgmt_offload_enabled, |
| 900 | bool okc_enabled); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 901 | #endif |
| 902 | #ifdef WLAN_FEATURE_NAN |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 903 | QDF_STATUS sme_nan_event(tHalHandle hHal, void *pMsg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 904 | #endif /* WLAN_FEATURE_NAN */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 905 | QDF_STATUS sme_get_link_status(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 906 | tCsrLinkStatusCallback callback, |
| 907 | void *pContext, uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 908 | QDF_STATUS sme_get_temperature(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 909 | void *tempContext, |
| 910 | void (*pCallbackfn)(int temperature, |
| 911 | void *pContext)); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 912 | QDF_STATUS sme_set_scanning_mac_oui(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 913 | tSirScanMacOui *pScanMacOui); |
| 914 | |
| 915 | #ifdef IPA_OFFLOAD |
| 916 | /* --------------------------------------------------------------------------- |
| 917 | \fn sme_ipa_offload_enable_disable |
| 918 | \brief API to enable/disable IPA offload |
| 919 | \param hHal - The handle returned by macOpen. |
| 920 | \param sessionId - Session Identifier |
| 921 | \param pRequest - Pointer to the offload request. |
Deepak Dhamdhere | 0f076bd | 2016-06-02 11:29:21 -0700 | [diff] [blame] | 922 | \return QDF_STATUS |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 923 | ---------------------------------------------------------------------------*/ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 924 | QDF_STATUS sme_ipa_offload_enable_disable(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 925 | uint8_t session_id, |
| 926 | struct sir_ipa_offload_enable_disable *request); |
| 927 | #else |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 928 | static inline QDF_STATUS sme_ipa_offload_enable_disable(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 929 | uint8_t session_id, |
| 930 | struct sir_ipa_offload_enable_disable *request) |
| 931 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 932 | return QDF_STATUS_SUCCESS; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 933 | } |
| 934 | #endif /* IPA_OFFLOAD */ |
| 935 | |
| 936 | #ifdef DHCP_SERVER_OFFLOAD |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 937 | QDF_STATUS sme_set_dhcp_srv_offload(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 938 | tSirDhcpSrvOffloadInfo * pDhcpSrvInfo); |
| 939 | #endif /* DHCP_SERVER_OFFLOAD */ |
| 940 | #ifdef WLAN_FEATURE_GPIO_LED_FLASHING |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 941 | QDF_STATUS sme_set_led_flashing(tHalHandle hHal, uint8_t type, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 942 | uint32_t x0, uint32_t x1); |
| 943 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 944 | QDF_STATUS sme_handle_dfs_chan_scan(tHalHandle hHal, uint8_t dfs_flag); |
| 945 | QDF_STATUS sme_set_mas(uint32_t val); |
| 946 | QDF_STATUS sme_set_miracast(tHalHandle hal, uint8_t filter_type); |
| 947 | QDF_STATUS sme_ext_change_channel(tHalHandle hHal, uint32_t channel, |
Abhishek Singh | 518323d | 2015-10-19 17:42:01 +0530 | [diff] [blame] | 948 | uint8_t session_id); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 949 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 950 | QDF_STATUS sme_configure_modulated_dtim(tHalHandle hal, uint8_t session_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 951 | uint32_t modulated_dtim); |
| 952 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 953 | QDF_STATUS sme_configure_stats_avg_factor(tHalHandle hal, uint8_t session_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 954 | uint16_t stats_avg_factor); |
| 955 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 956 | QDF_STATUS sme_configure_guard_time(tHalHandle hal, uint8_t session_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 957 | uint32_t guard_time); |
| 958 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 959 | QDF_STATUS sme_wifi_start_logger(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 960 | struct sir_wifi_start_log start_log); |
| 961 | |
| 962 | bool sme_neighbor_middle_of_roaming(tHalHandle hHal, |
| 963 | uint8_t sessionId); |
| 964 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 965 | QDF_STATUS sme_enable_uapsd_for_ac(void *cds_ctx, uint8_t sta_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 966 | sme_ac_enum_type ac, uint8_t tid, |
| 967 | uint8_t pri, uint32_t srvc_int, |
| 968 | uint32_t sus_int, |
| 969 | sme_tspec_dir_type dir, |
| 970 | uint8_t psb, uint32_t sessionId, |
| 971 | uint32_t delay_interval); |
| 972 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 973 | QDF_STATUS sme_disable_uapsd_for_ac(void *cds_ctx, uint8_t sta_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 974 | sme_ac_enum_type ac, |
| 975 | uint32_t sessionId); |
| 976 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 977 | QDF_STATUS sme_set_rssi_monitoring(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 978 | struct rssi_monitor_req *input); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 979 | QDF_STATUS sme_set_rssi_threshold_breached_cb(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 980 | void (*cb)(void *, struct rssi_breach_event *)); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 981 | QDF_STATUS sme_reset_rssi_threshold_breached_cb(tHalHandle hal); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 982 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 983 | QDF_STATUS sme_register_mgmt_frame_ind_callback(tHalHandle hal, |
Abhishek Singh | 7996eb7 | 2015-12-30 17:24:02 +0530 | [diff] [blame] | 984 | sir_mgmt_frame_ind_callback callback); |
| 985 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 986 | QDF_STATUS sme_update_nss(tHalHandle h_hal, uint8_t nss); |
Archana Ramachandran | 5041b25 | 2016-04-25 14:29:25 -0700 | [diff] [blame] | 987 | void sme_update_user_configured_nss(tHalHandle hal, uint8_t nss); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 988 | |
| 989 | bool sme_is_any_session_in_connected_state(tHalHandle h_hal); |
| 990 | |
Manishekar Chandrasekaran | 7009f25 | 2016-04-21 19:14:15 +0530 | [diff] [blame] | 991 | QDF_STATUS sme_pdev_set_pcl(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 992 | struct sir_pcl_list msg); |
Manishekar Chandrasekaran | d964034 | 2016-04-27 12:28:26 +0530 | [diff] [blame] | 993 | QDF_STATUS sme_pdev_set_hw_mode(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 994 | struct sir_hw_mode msg); |
| 995 | void sme_register_hw_mode_trans_cb(tHalHandle hal, |
| 996 | hw_mode_transition_cb callback); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 997 | QDF_STATUS sme_nss_update_request(tHalHandle hHal, uint32_t vdev_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 998 | uint8_t new_nss, void *cback, |
Chandrasekaran, Manishekar | ce2172e | 2016-02-18 16:12:43 +0530 | [diff] [blame] | 999 | uint8_t next_action, void *hdd_context, |
| 1000 | enum sir_conn_update_reason reason); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1001 | |
| 1002 | typedef void (*sme_peer_authorized_fp) (uint32_t vdev_id); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1003 | QDF_STATUS sme_set_peer_authorized(uint8_t *peer_addr, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1004 | sme_peer_authorized_fp auth_fp, |
| 1005 | uint32_t vdev_id); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1006 | QDF_STATUS sme_soc_set_dual_mac_config(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1007 | struct sir_dual_mac_config msg); |
Archana Ramachandran | d41c3ed | 2016-02-10 15:48:06 -0800 | [diff] [blame] | 1008 | QDF_STATUS sme_soc_set_antenna_mode(tHalHandle hal, |
| 1009 | struct sir_antenna_mode_param *msg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1010 | |
| 1011 | void sme_set_scan_disable(tHalHandle h_hal, int value); |
| 1012 | void sme_setdef_dot11mode(tHalHandle hal); |
| 1013 | |
Amar Singhal | 7c1e898 | 2016-05-19 15:08:09 -0700 | [diff] [blame] | 1014 | QDF_STATUS sme_handle_set_fcc_channel(tHalHandle hHal, |
Amar Singhal | 83a047a | 2016-05-19 15:56:11 -0700 | [diff] [blame] | 1015 | bool fcc_constraint, |
| 1016 | bool scan_pending); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1017 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1018 | QDF_STATUS sme_update_roam_scan_hi_rssi_scan_params(tHalHandle hal_handle, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1019 | uint8_t session_id, |
| 1020 | uint32_t notify_id, |
| 1021 | int32_t val); |
| 1022 | |
| 1023 | void wlan_sap_enable_phy_error_logs(tHalHandle hal, bool enable_log); |
| 1024 | void sme_set_dot11p_config(tHalHandle hal, bool enable_dot11p); |
| 1025 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1026 | QDF_STATUS sme_ocb_set_config(tHalHandle hHal, void *context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1027 | ocb_callback callback, |
| 1028 | struct sir_ocb_config *config); |
| 1029 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1030 | QDF_STATUS sme_ocb_set_utc_time(tHalHandle hHal, struct sir_ocb_utc *utc); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1031 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1032 | QDF_STATUS sme_ocb_start_timing_advert(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1033 | struct sir_ocb_timing_advert *timing_advert); |
| 1034 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1035 | QDF_STATUS sme_ocb_stop_timing_advert(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1036 | struct sir_ocb_timing_advert *timing_advert); |
| 1037 | |
Naveen Rawat | b4d3762 | 2015-11-13 16:15:25 -0800 | [diff] [blame] | 1038 | int sme_ocb_gen_timing_advert_frame(tHalHandle hHal, tSirMacAddr self_addr, |
| 1039 | uint8_t **buf, uint32_t *timestamp_offset, |
| 1040 | uint32_t *time_value_offset); |
| 1041 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1042 | QDF_STATUS sme_ocb_get_tsf_timer(tHalHandle hHal, void *context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1043 | ocb_callback callback, |
| 1044 | struct sir_ocb_get_tsf_timer *request); |
| 1045 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1046 | QDF_STATUS sme_dcc_get_stats(tHalHandle hHal, void *context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1047 | ocb_callback callback, |
| 1048 | struct sir_dcc_get_stats *request); |
| 1049 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1050 | QDF_STATUS sme_dcc_clear_stats(tHalHandle hHal, uint32_t vdev_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1051 | uint32_t dcc_stats_bitmap); |
| 1052 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1053 | QDF_STATUS sme_dcc_update_ndl(tHalHandle hHal, void *context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1054 | ocb_callback callback, |
| 1055 | struct sir_dcc_update_ndl *request); |
| 1056 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1057 | QDF_STATUS sme_register_for_dcc_stats_event(tHalHandle hHal, void *context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1058 | ocb_callback callback); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 1059 | QDF_STATUS sme_deregister_for_dcc_stats_event(tHalHandle hHal); |
| 1060 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1061 | void sme_add_set_thermal_level_callback(tHalHandle hal, |
| 1062 | sme_set_thermal_level_callback callback); |
| 1063 | |
Krishna Kumaar Natarajan | 052c6e6 | 2015-09-28 15:32:55 -0700 | [diff] [blame] | 1064 | void sme_update_tgt_services(tHalHandle hal, struct wma_tgt_services *cfg); |
Edhar, Mahesh Kumar | df2ec12 | 2015-11-16 11:33:16 +0530 | [diff] [blame] | 1065 | bool sme_validate_sap_channel_switch(tHalHandle hal, |
| 1066 | uint16_t sap_ch, eCsrPhyMode sap_phy_mode, |
| 1067 | uint8_t cc_switch_mode, uint8_t session_id); |
Masti, Narayanraddi | c4a7ab8 | 2015-11-25 15:41:10 +0530 | [diff] [blame] | 1068 | |
Chandrasekaran, Manishekar | 2859de4 | 2016-02-11 16:17:38 +0530 | [diff] [blame] | 1069 | bool sme_is_session_id_valid(tHalHandle hal, uint32_t session_id); |
| 1070 | |
Masti, Narayanraddi | c4a7ab8 | 2015-11-25 15:41:10 +0530 | [diff] [blame] | 1071 | #ifdef FEATURE_WLAN_TDLS |
| 1072 | void sme_get_opclass(tHalHandle hal, uint8_t channel, uint8_t bw_offset, |
| 1073 | uint8_t *opclass); |
| 1074 | #else |
| 1075 | static inline void |
| 1076 | sme_get_opclass(tHalHandle hal, uint8_t channel, uint8_t bw_offset, |
| 1077 | uint8_t *opclass) |
| 1078 | { |
| 1079 | } |
| 1080 | #endif |
| 1081 | |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 1082 | #ifdef FEATURE_LFR_SUBNET_DETECTION |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1083 | QDF_STATUS sme_gateway_param_update(tHalHandle hHal, |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 1084 | struct gateway_param_update_req *request); |
| 1085 | #endif |
| 1086 | |
Ryan Hsu | 3c8f79f | 2015-12-02 16:45:09 -0800 | [diff] [blame] | 1087 | #ifdef FEATURE_GREEN_AP |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1088 | QDF_STATUS sme_send_egap_conf_params(uint32_t enable, |
Ryan Hsu | 3c8f79f | 2015-12-02 16:45:09 -0800 | [diff] [blame] | 1089 | uint32_t inactivity_time, |
| 1090 | uint32_t wait_time, |
| 1091 | uint32_t flags); |
| 1092 | #else |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1093 | static inline QDF_STATUS sme_send_egap_conf_params(uint32_t enable, |
Ryan Hsu | 3c8f79f | 2015-12-02 16:45:09 -0800 | [diff] [blame] | 1094 | uint32_t inactivity_time, |
| 1095 | uint32_t wait_time, |
| 1096 | uint32_t flags) |
| 1097 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1098 | return QDF_STATUS_E_NOSUPPORT; |
Ryan Hsu | 3c8f79f | 2015-12-02 16:45:09 -0800 | [diff] [blame] | 1099 | } |
| 1100 | #endif |
Krunal Soni | e353194 | 2016-04-12 17:43:53 -0700 | [diff] [blame] | 1101 | |
| 1102 | void sme_update_fine_time_measurement_capab(tHalHandle hal, uint32_t val); |
Sandeep Puligilla | e087566 | 2016-02-12 16:09:21 -0800 | [diff] [blame] | 1103 | QDF_STATUS sme_ht40_stop_obss_scan(tHalHandle hHal, uint32_t vdev_id); |
Anurag Chouhan | bf5e0e2 | 2016-09-12 12:54:09 +0530 | [diff] [blame] | 1104 | QDF_STATUS sme_set_fw_test(struct set_fwtest_params *fw_test); |
Manikandan Mohan | dcc21ba | 2016-03-15 14:31:56 -0700 | [diff] [blame] | 1105 | QDF_STATUS sme_set_tsfcb(tHalHandle hHal, |
| 1106 | int (*cb_fn)(void *cb_ctx, struct stsf *ptsf), void *cb_ctx); |
Krunal Soni | e353194 | 2016-04-12 17:43:53 -0700 | [diff] [blame] | 1107 | |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 1108 | QDF_STATUS sme_reset_tsfcb(tHalHandle h_hal); |
| 1109 | |
Manikandan Mohan | 976e756 | 2016-03-15 16:33:31 -0700 | [diff] [blame] | 1110 | #ifdef WLAN_FEATURE_TSF |
| 1111 | QDF_STATUS sme_set_tsf_gpio(tHalHandle h_hal, uint32_t pinvalue); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 1112 | QDF_STATUS sme_reset_tsf_gpio(tHalHandle h_hal); |
| 1113 | |
Manikandan Mohan | 976e756 | 2016-03-15 16:33:31 -0700 | [diff] [blame] | 1114 | #else |
| 1115 | static inline QDF_STATUS sme_set_tsf_gpio(tHalHandle h_hal, uint32_t pinvalue) |
| 1116 | { |
| 1117 | return QDF_STATUS_E_FAILURE; |
| 1118 | } |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 1119 | static inline QDF_STATUS sme_reset_tsf_gpio(tHalHandle h_hal) |
| 1120 | { |
| 1121 | return QDF_STATUS_E_FAILURE; |
| 1122 | } |
| 1123 | |
Manikandan Mohan | 976e756 | 2016-03-15 16:33:31 -0700 | [diff] [blame] | 1124 | #endif |
| 1125 | |
Archana Ramachandran | 20d2e23 | 2016-02-11 16:58:40 -0800 | [diff] [blame] | 1126 | QDF_STATUS sme_update_mimo_power_save(tHalHandle hHal, |
| 1127 | uint8_t is_ht_smps_enabled, |
Archana Ramachandran | fec2481 | 2016-02-16 16:31:56 -0800 | [diff] [blame] | 1128 | uint8_t ht_smps_mode, |
| 1129 | bool send_smps_action); |
Archana Ramachandran | 20d2e23 | 2016-02-11 16:58:40 -0800 | [diff] [blame] | 1130 | |
| 1131 | bool sme_is_sta_smps_allowed(tHalHandle hHal, uint8_t session_id); |
Gupta, Kapil | 4cb1d7d | 2016-04-16 18:16:25 -0700 | [diff] [blame] | 1132 | QDF_STATUS sme_add_beacon_filter(tHalHandle hal, |
| 1133 | uint32_t session_id, uint32_t *ie_map); |
| 1134 | QDF_STATUS sme_remove_beacon_filter(tHalHandle hal, uint32_t session_id); |
Arun Khandavalli | 2476ef5 | 2016-04-26 20:19:43 +0530 | [diff] [blame] | 1135 | QDF_STATUS sme_bpf_offload_register_callback(tHalHandle hal, |
| 1136 | void (*pbpf_get_offload_cb)(void *, |
| 1137 | struct sir_bpf_get_offload *)); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 1138 | QDF_STATUS sme_bpf_offload_deregister_callback(tHalHandle hal); |
Arun Khandavalli | 2476ef5 | 2016-04-26 20:19:43 +0530 | [diff] [blame] | 1139 | |
| 1140 | QDF_STATUS sme_get_bpf_offload_capabilities(tHalHandle hal); |
| 1141 | QDF_STATUS sme_set_bpf_instructions(tHalHandle hal, |
| 1142 | struct sir_bpf_set_offload *); |
Abhishek Singh | 1c67622 | 2016-05-09 14:20:28 +0530 | [diff] [blame] | 1143 | uint32_t sme_get_wni_dot11_mode(tHalHandle hal); |
Manjunathappa Prakash | 59f861d | 2016-04-21 10:33:31 -0700 | [diff] [blame] | 1144 | QDF_STATUS sme_create_mon_session(tHalHandle hal_handle, uint8_t *bssid); |
Gupta, Kapil | 96c7f2f | 2016-04-25 19:13:41 +0530 | [diff] [blame] | 1145 | QDF_STATUS sme_set_adaptive_dwelltime_config(tHalHandle hal, |
| 1146 | struct adaptive_dwelltime_params *dwelltime_params); |
Kiran Kumar Lokere | 666bf85 | 2016-05-02 12:23:02 -0700 | [diff] [blame] | 1147 | void sme_set_pdev_ht_vht_ies(tHalHandle hHal, bool enable2x2); |
| 1148 | |
| 1149 | void sme_update_vdev_type_nss(tHalHandle hal, uint8_t max_supp_nss, |
| 1150 | uint32_t vdev_type_nss, eCsrBand band); |
Peng Xu | 8fdaa49 | 2016-06-22 10:20:47 -0700 | [diff] [blame] | 1151 | void sme_register_p2p_lo_event(tHalHandle hHal, void *context, |
| 1152 | p2p_lo_callback callback); |
Manjeet Singh | f82ed07 | 2016-07-08 11:40:00 +0530 | [diff] [blame] | 1153 | |
| 1154 | QDF_STATUS sme_process_mac_pwr_dbg_cmd(tHalHandle hal, uint32_t session_id, |
| 1155 | struct sir_mac_pwr_dbg_cmd* |
| 1156 | dbg_args); |
| 1157 | |
Tushnim Bhattacharyya | f44a9d8 | 2016-07-05 10:52:06 -0700 | [diff] [blame] | 1158 | void sme_get_vdev_type_nss(tHalHandle hal, enum tQDF_ADAPTER_MODE dev_mode, |
| 1159 | uint8_t *nss_2g, uint8_t *nss_5g); |
Masti, Narayanraddi | ab712a7 | 2016-08-04 11:59:11 +0530 | [diff] [blame] | 1160 | QDF_STATUS sme_roam_set_default_key_index(tHalHandle hal, uint8_t session_id, |
| 1161 | uint8_t default_idx); |
Selvaraj, Sridhar | 4577a9b | 2016-09-04 15:17:07 +0530 | [diff] [blame] | 1162 | QDF_STATUS sme_register_p2p_ack_ind_callback(tHalHandle hal, |
| 1163 | sir_p2p_ack_ind_callback callback); |
Kondabattini, Ganesh | 3f2d02c | 2016-09-13 12:23:47 +0530 | [diff] [blame] | 1164 | void sme_send_disassoc_req_frame(tHalHandle hal, uint8_t session_id, uint8_t |
| 1165 | *peer_mac, uint16_t reason, uint8_t |
| 1166 | wait_for_ack); |
Kondabattini, Ganesh | e4f18e0 | 2016-09-13 13:01:22 +0530 | [diff] [blame] | 1167 | QDF_STATUS sme_update_access_policy_vendor_ie(tHalHandle hal, |
| 1168 | uint8_t session_id, uint8_t *vendor_ie, |
| 1169 | int access_policy); |
| 1170 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1171 | #endif /* #if !defined( __SME_API_H ) */ |