Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
yeshwanth sriram guntuka | 310b3ac | 2016-11-15 23:25:26 +0530 | [diff] [blame] | 2 | * Copyright (c) 2012-2017 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" |
Anurag Chouhan | a37b5b7 | 2016-02-21 14:53:42 +0530 | [diff] [blame] | 41 | #include "qdf_lock.h" |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 42 | #include "qdf_types.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 43 | #include "sir_api.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 44 | #include "cds_regdomain.h" |
| 45 | #include "sme_internal.h" |
Krishna Kumaar Natarajan | 052c6e6 | 2015-09-28 15:32:55 -0700 | [diff] [blame] | 46 | #include "wma_tgt_cfg.h" |
Jeff Johnson | 6136fb9 | 2017-03-30 15:21:49 -0700 | [diff] [blame] | 47 | #include "wma_fips_public_structs.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 48 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 49 | #include "sme_rrm_internal.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 50 | #include "sir_types.h" |
Krunal Soni | d32c6bc | 2016-10-18 18:00:21 -0700 | [diff] [blame] | 51 | #include "scheduler_api.h" |
Varun Reddy Yeturu | 35c07f9 | 2017-02-28 10:35:00 -0800 | [diff] [blame] | 52 | #include "wlan_serialization_legacy_api.h" |
Krunal Soni | d32c6bc | 2016-10-18 18:00:21 -0700 | [diff] [blame] | 53 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 54 | /*-------------------------------------------------------------------------- |
| 55 | Preprocessor definitions and constants |
| 56 | ------------------------------------------------------------------------*/ |
| 57 | |
Jeff Johnson | 97fdfd0 | 2017-03-13 09:25:31 -0700 | [diff] [blame] | 58 | #define SME_SUMMARY_STATS (1 << eCsrSummaryStats) |
| 59 | #define SME_GLOBAL_CLASSA_STATS (1 << eCsrGlobalClassAStats) |
Jeff Johnson | 97fdfd0 | 2017-03-13 09:25:31 -0700 | [diff] [blame] | 60 | #define SME_GLOBAL_CLASSD_STATS (1 << eCsrGlobalClassDStats) |
Jeff Johnson | 97fdfd0 | 2017-03-13 09:25:31 -0700 | [diff] [blame] | 61 | #define SME_PER_CHAIN_RSSI_STATS (1 << csr_per_chain_rssi_stats) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 62 | |
Srinivas Girigowda | af487f6 | 2017-03-16 15:53:46 -0700 | [diff] [blame] | 63 | #define sme_log(level, args...) QDF_TRACE(QDF_MODULE_ID_SME, level, ## args) |
| 64 | #define sme_logfl(level, format, args...) sme_log(level, FL(format), ## args) |
| 65 | |
| 66 | #define sme_alert(format, args...) \ |
| 67 | sme_logfl(QDF_TRACE_LEVEL_FATAL, format, ## args) |
| 68 | #define sme_err(format, args...) \ |
| 69 | sme_logfl(QDF_TRACE_LEVEL_ERROR, format, ## args) |
| 70 | #define sme_warn(format, args...) \ |
| 71 | sme_logfl(QDF_TRACE_LEVEL_WARN, format, ## args) |
| 72 | #define sme_info(format, args...) \ |
| 73 | sme_logfl(QDF_TRACE_LEVEL_INFO, format, ## args) |
| 74 | #define sme_debug(format, args...) \ |
| 75 | sme_logfl(QDF_TRACE_LEVEL_DEBUG, format, ## args) |
| 76 | |
| 77 | #define SME_ENTER() sme_logfl(QDF_TRACE_LEVEL_DEBUG, "enter") |
| 78 | #define SME_EXIT() sme_logfl(QDF_TRACE_LEVEL_DEBUG, "exit") |
| 79 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 80 | #define SME_SESSION_ID_ANY 50 |
| 81 | |
| 82 | #define SME_INVALID_COUNTRY_CODE "XX" |
Krunal Soni | bfd0549 | 2017-10-03 15:48:37 -0700 | [diff] [blame] | 83 | #define INVALID_ROAM_ID 0 |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 84 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 85 | #define SME_SET_CHANNEL_REG_POWER(reg_info_1, val) do { \ |
| 86 | reg_info_1 &= 0xff00ffff; \ |
| 87 | reg_info_1 |= ((val & 0xff) << 16); \ |
| 88 | } while (0) |
| 89 | |
| 90 | #define SME_SET_CHANNEL_MAX_TX_POWER(reg_info_2, val) do { \ |
| 91 | reg_info_2 &= 0xffff00ff; \ |
| 92 | reg_info_2 |= ((val & 0xff) << 8); \ |
| 93 | } while (0) |
| 94 | |
Varun Reddy Yeturu | b43fda1 | 2015-09-10 18:16:21 -0700 | [diff] [blame] | 95 | #define SME_CONFIG_TO_ROAM_CONFIG 1 |
| 96 | #define ROAM_CONFIG_TO_SME_CONFIG 2 |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 97 | |
Kiran Kumar Lokere | 666bf85 | 2016-05-02 12:23:02 -0700 | [diff] [blame] | 98 | #define NUM_OF_BANDS 2 |
Naveen Rawat | b56880c | 2016-12-13 17:56:03 -0800 | [diff] [blame] | 99 | |
| 100 | #define SME_ACTIVE_LIST_CMD_TIMEOUT_VALUE (30*1000) |
| 101 | #define SME_CMD_TIMEOUT_VALUE (SME_ACTIVE_LIST_CMD_TIMEOUT_VALUE + 1000) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 102 | /*-------------------------------------------------------------------------- |
| 103 | Type declarations |
| 104 | ------------------------------------------------------------------------*/ |
| 105 | typedef void (*hdd_ftm_msg_processor)(void *); |
| 106 | typedef struct _smeConfigParams { |
| 107 | tCsrConfigParam csrConfig; |
Krishna Kumaar Natarajan | f599c6e | 2015-11-03 11:44:03 -0800 | [diff] [blame] | 108 | struct rrm_config_param rrmConfig; |
Kapil Gupta | 4f0c0c1 | 2017-02-07 15:21:15 +0530 | [diff] [blame] | 109 | bool snr_monitor_enabled; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 110 | } tSmeConfigParams, *tpSmeConfigParams; |
| 111 | |
| 112 | #ifdef FEATURE_WLAN_TDLS |
| 113 | #define SME_TDLS_MAX_SUPP_CHANNELS 128 |
| 114 | #define SME_TDLS_MAX_SUPP_OPER_CLASSES 32 |
| 115 | |
| 116 | typedef struct _smeTdlsPeerCapParams { |
| 117 | uint8_t isPeerResponder; |
| 118 | uint8_t peerUapsdQueue; |
| 119 | uint8_t peerMaxSp; |
| 120 | uint8_t peerBuffStaSupport; |
| 121 | uint8_t peerOffChanSupport; |
| 122 | uint8_t peerCurrOperClass; |
| 123 | uint8_t selfCurrOperClass; |
| 124 | uint8_t peerChanLen; |
| 125 | uint8_t peerChan[SME_TDLS_MAX_SUPP_CHANNELS]; |
| 126 | uint8_t peerOperClassLen; |
| 127 | uint8_t peerOperClass[SME_TDLS_MAX_SUPP_OPER_CLASSES]; |
| 128 | uint8_t prefOffChanNum; |
| 129 | uint8_t prefOffChanBandwidth; |
| 130 | uint8_t opClassForPrefOffChan; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 131 | } tSmeTdlsPeerCapParams; |
| 132 | |
Kabilan Kannan | 421714b | 2015-11-23 04:44:59 -0800 | [diff] [blame] | 133 | /** |
| 134 | * eSmeTdlsPeerState - tdls peer state |
| 135 | * @eSME_TDLS_PEER_STATE_PEERING: tdls connection in progress |
| 136 | * @eSME_TDLS_PEER_STATE_CONNECTED: tdls peer is connected |
| 137 | * @eSME_TDLS_PEER_STATE_TEARDOWN: tdls peer is tear down |
| 138 | * @eSME_TDLS_PEER_ADD_MAC_ADDR: add peer mac into connection table |
| 139 | * @eSME_TDLS_PEER_REMOVE_MAC_ADDR: remove peer mac from connection table |
| 140 | */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 141 | typedef enum { |
| 142 | eSME_TDLS_PEER_STATE_PEERING, |
| 143 | eSME_TDLS_PEER_STATE_CONNECTED, |
Kabilan Kannan | 421714b | 2015-11-23 04:44:59 -0800 | [diff] [blame] | 144 | eSME_TDLS_PEER_STATE_TEARDOWN, |
| 145 | eSME_TDLS_PEER_ADD_MAC_ADDR, |
| 146 | eSME_TDLS_PEER_REMOVE_MAC_ADDR, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 147 | } eSmeTdlsPeerState; |
| 148 | |
| 149 | typedef struct _smeTdlsPeerStateParams { |
| 150 | uint32_t vdevId; |
| 151 | tSirMacAddr peerMacAddr; |
| 152 | uint32_t peerState; |
| 153 | tSmeTdlsPeerCapParams peerCap; |
| 154 | } tSmeTdlsPeerStateParams; |
| 155 | |
| 156 | #define ENABLE_CHANSWITCH 1 |
| 157 | #define DISABLE_CHANSWITCH 2 |
| 158 | #define BW_20_OFFSET_BIT 0 |
| 159 | #define BW_40_OFFSET_BIT 1 |
| 160 | #define BW_80_OFFSET_BIT 2 |
| 161 | #define BW_160_OFFSET_BIT 3 |
Kiran Kumar Lokere | a3de226 | 2017-04-12 12:15:04 -0700 | [diff] [blame] | 162 | typedef struct sme_tdls_chan_switch_param_struct { |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 163 | uint32_t vdev_id; |
| 164 | tSirMacAddr peer_mac_addr; |
| 165 | uint16_t tdls_off_ch_bw_offset;/* Target Off Channel Bandwidth offset */ |
| 166 | uint8_t tdls_off_channel; /* Target Off Channel */ |
| 167 | uint8_t tdls_off_ch_mode; /* TDLS Off Channel Mode */ |
| 168 | uint8_t is_responder; /* is peer responder or initiator */ |
Masti, Narayanraddi | c4a7ab8 | 2015-11-25 15:41:10 +0530 | [diff] [blame] | 169 | uint8_t opclass; /* tdls operating class */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 170 | } sme_tdls_chan_switch_params; |
| 171 | #endif /* FEATURE_WLAN_TDLS */ |
| 172 | |
| 173 | /* Thermal Mitigation*/ |
| 174 | typedef struct { |
| 175 | uint16_t smeMinTempThreshold; |
| 176 | uint16_t smeMaxTempThreshold; |
| 177 | } tSmeThermalLevelInfo; |
| 178 | |
| 179 | #define SME_MAX_THERMAL_LEVELS (4) |
Poddar, Siddarth | 8390502 | 2016-04-16 17:56:08 -0700 | [diff] [blame] | 180 | #define SME_MAX_THROTTLE_LEVELS (4) |
| 181 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 182 | typedef struct { |
| 183 | /* Array of thermal levels */ |
| 184 | tSmeThermalLevelInfo smeThermalLevels[SME_MAX_THERMAL_LEVELS]; |
| 185 | uint8_t smeThermalMgmtEnabled; |
| 186 | uint32_t smeThrottlePeriod; |
Poddar, Siddarth | 8390502 | 2016-04-16 17:56:08 -0700 | [diff] [blame] | 187 | uint8_t sme_throttle_duty_cycle_tbl[SME_MAX_THROTTLE_LEVELS]; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 188 | } tSmeThermalParams; |
| 189 | |
| 190 | typedef enum { |
| 191 | SME_AC_BK = 0, |
| 192 | SME_AC_BE = 1, |
| 193 | SME_AC_VI = 2, |
| 194 | SME_AC_VO = 3 |
| 195 | } sme_ac_enum_type; |
| 196 | |
Abhishek Singh | 12be60f | 2017-08-11 13:52:42 +0530 | [diff] [blame] | 197 | /* |
| 198 | * Enumeration of the various TSPEC directions |
| 199 | * From 802.11e/WMM specifications |
| 200 | */ |
| 201 | enum sme_qos_wmm_dir_type { |
Naveen Rawat | d9dd4b3 | 2017-07-05 14:32:54 -0700 | [diff] [blame] | 202 | SME_QOS_WMM_TS_DIR_UPLINK = 0, |
| 203 | SME_QOS_WMM_TS_DIR_DOWNLINK = 1, |
| 204 | SME_QOS_WMM_TS_DIR_RESV = 2, /* Reserved */ |
| 205 | SME_QOS_WMM_TS_DIR_BOTH = 3, |
Abhishek Singh | 12be60f | 2017-08-11 13:52:42 +0530 | [diff] [blame] | 206 | }; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 207 | |
Krishna Kumaar Natarajan | 53ca290 | 2015-12-04 14:01:46 -0800 | [diff] [blame] | 208 | /** |
| 209 | * struct sme_oem_capability - OEM capability to be exchanged between host |
| 210 | * and userspace |
| 211 | * @ftm_rr: FTM range report capability bit |
| 212 | * @lci_capability: LCI capability bit |
| 213 | * @reserved1: reserved |
| 214 | * @reserved2: reserved |
| 215 | */ |
| 216 | struct sme_oem_capability { |
| 217 | uint32_t ftm_rr:1; |
| 218 | uint32_t lci_capability:1; |
| 219 | uint32_t reserved1:30; |
| 220 | uint32_t reserved2; |
| 221 | }; |
| 222 | |
Manjeet Singh | a9cae43 | 2017-02-28 11:58:22 +0530 | [diff] [blame] | 223 | /** |
| 224 | * struct sme_5g_pref_params : 5G preference params to be read from ini |
| 225 | * @rssi_boost_threshold_5g: RSSI threshold above which 5 GHz is favored |
| 226 | * @rssi_boost_factor_5g: Factor by which 5GHz RSSI is boosted |
| 227 | * @max_rssi_boost_5g: Maximum boost that can be applied to 5GHz RSSI |
| 228 | * @rssi_penalize_threshold_5g: RSSI threshold below which 5G is not favored |
| 229 | * @rssi_penalize_factor_5g: Factor by which 5GHz RSSI is penalized |
| 230 | * @max_rssi_penalize_5g: Maximum penalty that can be applied to 5G RSSI |
| 231 | */ |
| 232 | struct sme_5g_band_pref_params { |
| 233 | int8_t rssi_boost_threshold_5g; |
| 234 | uint8_t rssi_boost_factor_5g; |
| 235 | uint8_t max_rssi_boost_5g; |
| 236 | int8_t rssi_penalize_threshold_5g; |
| 237 | uint8_t rssi_penalize_factor_5g; |
| 238 | uint8_t max_rssi_penalize_5g; |
| 239 | }; |
| 240 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 241 | /*------------------------------------------------------------------------- |
| 242 | Function declarations and documenation |
| 243 | ------------------------------------------------------------------------*/ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 244 | QDF_STATUS sme_open(tHalHandle hHal); |
| 245 | QDF_STATUS sme_init_chan_list(tHalHandle hal, uint8_t *alpha2, |
Amar Singhal | a297bfa | 2015-10-15 15:07:29 -0700 | [diff] [blame] | 246 | enum country_src cc_src); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 247 | QDF_STATUS sme_close(tHalHandle hHal); |
| 248 | QDF_STATUS sme_start(tHalHandle hHal); |
| 249 | QDF_STATUS sme_stop(tHalHandle hHal, tHalStopType stopType); |
| 250 | QDF_STATUS sme_open_session(tHalHandle hHal, csr_roam_completeCallback callback, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 251 | void *pContext, uint8_t *pSelfMacAddr, |
Dustin Brown | d28772b | 2017-03-17 14:16:07 -0700 | [diff] [blame] | 252 | uint8_t session_id, uint32_t type, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 253 | uint32_t subType); |
Peng Xu | f5d60c8 | 2015-10-02 17:17:03 -0700 | [diff] [blame] | 254 | void sme_set_curr_device_mode(tHalHandle hHal, |
Jeff Johnson | c1e6278 | 2017-11-09 09:50:17 -0800 | [diff] [blame] | 255 | enum QDF_OPMODE currDeviceMode); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 256 | QDF_STATUS sme_close_session(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 257 | csr_roamSessionCloseCallback callback, |
| 258 | void *pContext); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 259 | QDF_STATUS sme_update_roam_params(tHalHandle hHal, uint8_t session_id, |
Srinivas Girigowda | 72f3039 | 2017-07-13 18:55:09 -0700 | [diff] [blame] | 260 | struct roam_ext_params *roam_params_src, int update_param); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 261 | QDF_STATUS sme_update_config(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 262 | tpSmeConfigParams pSmeConfigParams); |
| 263 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 264 | QDF_STATUS sme_set11dinfo(tHalHandle hHal, tpSmeConfigParams pSmeConfigParams); |
| 265 | QDF_STATUS sme_get_soft_ap_domain(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 266 | v_REGDOMAIN_t *domainIdSoftAp); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 267 | QDF_STATUS sme_hdd_ready_ind(tHalHandle hHal); |
Krunal Soni | a8270f5 | 2017-02-23 19:51:25 -0800 | [diff] [blame] | 268 | /** |
| 269 | * sme_ser_cmd_callback() - callback from serialization module |
| 270 | * @buf: serialization command buffer |
| 271 | * @reason: reason why serialization module has given this callback |
| 272 | * |
| 273 | * Serialization module will give callback to SME for why it triggered |
| 274 | * the callback |
| 275 | * |
| 276 | * Return: QDF_STATUS_SUCCESS |
| 277 | */ |
| 278 | QDF_STATUS sme_ser_cmd_callback(void *buf, |
| 279 | enum wlan_serialization_cb_reason reason); |
Rajeev Kumar | 8eaedf6 | 2017-01-21 11:03:13 -0800 | [diff] [blame] | 280 | QDF_STATUS sme_process_msg(tHalHandle hHal, struct scheduler_msg *pMsg); |
Krunal Soni | d32c6bc | 2016-10-18 18:00:21 -0700 | [diff] [blame] | 281 | QDF_STATUS sme_mc_process_handler(struct scheduler_msg *msg); |
Rajeev Kumar | 8eaedf6 | 2017-01-21 11:03:13 -0800 | [diff] [blame] | 282 | void sme_free_msg(tHalHandle hHal, struct scheduler_msg *pMsg); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 283 | QDF_STATUS sme_scan_get_result(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 284 | tCsrScanResultFilter *pFilter, |
| 285 | tScanResultHandle *phResult); |
Archana Ramachandran | 2eb7a61 | 2017-03-23 22:58:42 -0700 | [diff] [blame] | 286 | QDF_STATUS sme_get_ap_channel_from_scan_cache( |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 287 | tCsrRoamProfile *profile, |
| 288 | tScanResultHandle *scan_cache, |
| 289 | uint8_t *ap_chnl_id); |
Archana Ramachandran | 2eb7a61 | 2017-03-23 22:58:42 -0700 | [diff] [blame] | 290 | QDF_STATUS sme_get_ap_channel_from_scan(void *profile, |
| 291 | tScanResultHandle *scan_cache, |
| 292 | uint8_t *ap_chnl_id); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 293 | bool sme_store_joinreq_param(tHalHandle hal_handle, |
| 294 | tCsrRoamProfile *profile, |
| 295 | tScanResultHandle scan_cache, |
| 296 | uint32_t *roam_id, |
| 297 | uint32_t session_id); |
| 298 | bool sme_clear_joinreq_param(tHalHandle hal_handle, |
| 299 | uint32_t session_id); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 300 | QDF_STATUS sme_issue_stored_joinreq(tHalHandle hal_handle, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 301 | uint32_t *roam_id, |
| 302 | uint32_t session_id); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 303 | QDF_STATUS sme_scan_flush_result(tHalHandle hHal); |
| 304 | QDF_STATUS sme_filter_scan_results(tHalHandle hHal, uint8_t sessionId); |
| 305 | QDF_STATUS sme_scan_flush_p2p_result(tHalHandle hHal, uint8_t sessionId); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 306 | tCsrScanResultInfo *sme_scan_result_get_first(tHalHandle, |
| 307 | tScanResultHandle hScanResult); |
| 308 | tCsrScanResultInfo *sme_scan_result_get_next(tHalHandle, |
| 309 | tScanResultHandle hScanResult); |
Archana Ramachandran | 2eb7a61 | 2017-03-23 22:58:42 -0700 | [diff] [blame] | 310 | QDF_STATUS sme_scan_result_purge(tScanResultHandle hScanResult); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 311 | 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] | 312 | tPmkidCandidateInfo *pPmkidList, |
| 313 | uint32_t *pNumItems); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 314 | QDF_STATUS sme_roam_connect(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 315 | tCsrRoamProfile *pProfile, uint32_t *pRoamId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 316 | QDF_STATUS sme_roam_reassoc(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 317 | tCsrRoamProfile *pProfile, |
| 318 | tCsrRoamModifyProfileFields modProfileFields, |
| 319 | uint32_t *pRoamId, bool fForce); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 320 | QDF_STATUS sme_roam_connect_to_last_profile(tHalHandle hHal, uint8_t sessionId); |
| 321 | QDF_STATUS sme_roam_disconnect(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 322 | eCsrRoamDisconnectReason reason); |
Abhishek Singh | ca40803 | 2016-09-13 15:26:12 +0530 | [diff] [blame] | 323 | void sme_dhcp_done_ind(tHalHandle hal, uint8_t session_id); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 324 | QDF_STATUS sme_roam_stop_bss(tHalHandle hHal, uint8_t sessionId); |
| 325 | QDF_STATUS sme_roam_get_associated_stas(tHalHandle hHal, uint8_t sessionId, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 326 | QDF_MODULE_ID modId, void *pUsrContext, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 327 | void *pfnSapEventCallback, |
| 328 | uint8_t *pAssocStasBuf); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 329 | QDF_STATUS sme_roam_disconnect_sta(tHalHandle hHal, uint8_t sessionId, |
Jeff Johnson | e6bf719 | 2017-11-07 15:16:09 -0800 | [diff] [blame] | 330 | struct csr_del_sta_params *p_del_sta_params); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 331 | QDF_STATUS sme_roam_deauth_sta(tHalHandle hHal, uint8_t sessionId, |
Jeff Johnson | e6bf719 | 2017-11-07 15:16:09 -0800 | [diff] [blame] | 332 | struct csr_del_sta_params *pDelStaParams); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 333 | QDF_STATUS sme_roam_get_connect_state(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 334 | eCsrConnectState *pState); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 335 | QDF_STATUS sme_roam_get_connect_profile(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 336 | tCsrRoamConnectedProfile *pProfile); |
Naveen Rawat | df0a7e7 | 2016-01-06 18:35:53 -0800 | [diff] [blame] | 337 | void sme_roam_free_connect_profile(tCsrRoamConnectedProfile *profile); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 338 | QDF_STATUS sme_roam_set_pmkid_cache(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 339 | tPmkidCacheInfo *pPMKIDCache, |
| 340 | uint32_t numItems, |
| 341 | bool update_entire_cache); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 342 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 343 | QDF_STATUS sme_roam_set_psk_pmk(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 344 | uint8_t *pPSK_PMK, size_t pmk_len); |
| 345 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 346 | 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] | 347 | uint32_t *pLen, uint8_t *pBuf, |
| 348 | eCsrSecurityType secType); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 349 | 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] | 350 | uint32_t *pLen, uint8_t *pBuf, |
| 351 | eCsrSecurityType secType); |
| 352 | 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] | 353 | QDF_STATUS sme_roam_get_pmkid_cache(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 354 | uint32_t *pNum, |
| 355 | tPmkidCacheInfo *pPmkidCache); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 356 | QDF_STATUS sme_get_config_param(tHalHandle hHal, tSmeConfigParams *pParam); |
| 357 | QDF_STATUS sme_get_statistics(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 358 | eCsrStatsRequesterType requesterId, |
| 359 | uint32_t statsMask, tCsrStatsCallback callback, |
Naveen Rawat | d0ca441 | 2017-06-16 14:19:19 -0700 | [diff] [blame] | 360 | uint8_t staId, void *pContext, uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 361 | QDF_STATUS sme_get_rssi(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 362 | tCsrRssiCallback callback, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 363 | uint8_t staId, struct qdf_mac_addr bssId, int8_t lastRSSI, |
Jeff Johnson | 8bd2335 | 2017-09-26 11:39:24 -0700 | [diff] [blame] | 364 | void *pContext); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 365 | QDF_STATUS sme_get_snr(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 366 | tCsrSnrCallback callback, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 367 | uint8_t staId, struct qdf_mac_addr bssId, void *pContext); |
Srinivas Girigowda | 515a9ef | 2015-12-11 11:00:48 -0800 | [diff] [blame] | 368 | #ifdef FEATURE_WLAN_ESE |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 369 | QDF_STATUS sme_get_tsm_stats(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 370 | tCsrTsmStatsCallback callback, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 371 | uint8_t staId, struct qdf_mac_addr bssId, |
Jeff Johnson | 30f8455 | 2017-09-13 14:55:25 -0700 | [diff] [blame] | 372 | void *pContext, uint8_t tid); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 373 | QDF_STATUS sme_set_cckm_ie(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 374 | uint8_t sessionId, |
| 375 | uint8_t *pCckmIe, uint8_t cckmIeLen); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 376 | 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] | 377 | const tCsrEseBeaconReq *pEseBcnReq); |
Srinivas Girigowda | 515a9ef | 2015-12-11 11:00:48 -0800 | [diff] [blame] | 378 | QDF_STATUS sme_set_plm_request(tHalHandle hHal, tpSirPlmReq pPlm); |
| 379 | #endif /*FEATURE_WLAN_ESE */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 380 | QDF_STATUS sme_cfg_set_int(tHalHandle hal, uint16_t cfg_id, uint32_t value); |
| 381 | 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] | 382 | uint32_t length); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 383 | QDF_STATUS sme_cfg_get_int(tHalHandle hal, uint16_t cfg_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 384 | uint32_t *cfg_value); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 385 | 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] | 386 | uint32_t *length); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 387 | QDF_STATUS sme_get_modify_profile_fields(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 388 | tCsrRoamModifyProfileFields * |
| 389 | pModifyProfileFields); |
| 390 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 391 | extern QDF_STATUS sme_set_host_power_save(tHalHandle hHal, bool psMode); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 392 | |
| 393 | 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] | 394 | extern QDF_STATUS sme_register11d_scan_done_callback(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 395 | csr_scan_completeCallback); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 396 | void sme_deregister11d_scan_done_callback(tHalHandle hHal); |
| 397 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 398 | #ifdef FEATURE_OEM_DATA_SUPPORT |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 399 | extern QDF_STATUS sme_register_oem_data_rsp_callback(tHalHandle h_hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 400 | sme_send_oem_data_rsp_msg callback); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 401 | void sme_deregister_oem_data_rsp_callback(tHalHandle h_hal); |
| 402 | |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 403 | #else |
Naveen Rawat | 910726a | 2017-03-06 11:42:51 -0800 | [diff] [blame] | 404 | static inline QDF_STATUS sme_register_oem_data_rsp_callback(tHalHandle hal, |
| 405 | void *callback) |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 406 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 407 | return QDF_STATUS_SUCCESS; |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 408 | } |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 409 | static inline void sme_deregister_oem_data_rsp_callback(tHalHandle h_hal) |
| 410 | { |
| 411 | } |
| 412 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 413 | #endif |
| 414 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 415 | void sme_register_ftm_msg_processor(tHalHandle hal, |
| 416 | hdd_ftm_msg_processor callback); |
| 417 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 418 | extern QDF_STATUS sme_enter_wowl(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 419 | void (*enter_wowl_callback_routine)(void |
| 420 | *callbackContext, |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 421 | QDF_STATUS status), |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 422 | void *enter_wowl_callback_context, |
| 423 | #ifdef WLAN_WAKEUP_EVENTS |
| 424 | void (*wake_reason_ind_cb)(void *callbackContext, |
| 425 | tpSirWakeReasonInd |
| 426 | wake_reason_ind), |
| 427 | void *wake_reason_ind_cb_ctx, |
| 428 | #endif /* WLAN_WAKEUP_EVENTS */ |
| 429 | tpSirSmeWowlEnterParams wowl_enter_params, |
| 430 | uint8_t sessionId); |
| 431 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 432 | extern QDF_STATUS sme_exit_wowl(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 433 | tpSirSmeWowlExitParams wowl_exit_params); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 434 | QDF_STATUS sme_roam_set_key(tHalHandle, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 435 | tCsrRoamSetKey *pSetKey, uint32_t *pRoamId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 436 | 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] | 437 | |
| 438 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 439 | /* some support functions */ |
| 440 | bool sme_is11d_supported(tHalHandle hHal); |
| 441 | bool sme_is11h_supported(tHalHandle hHal); |
| 442 | bool sme_is_wmm_supported(tHalHandle hHal); |
| 443 | |
| 444 | typedef void (*tSmeChangeCountryCallback)(void *pContext); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 445 | QDF_STATUS sme_change_country_code(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 446 | tSmeChangeCountryCallback callback, |
| 447 | uint8_t *pCountry, |
| 448 | void *pContext, |
| 449 | void *p_cds_context, |
Srinivas Girigowda | 74a66d6 | 2017-06-21 23:28:25 -0700 | [diff] [blame] | 450 | bool countryFromUserSpace, |
| 451 | bool sendRegHint); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 452 | QDF_STATUS sme_generic_change_country_code(tHalHandle hHal, |
Amar Singhal | 7f1f3ec | 2015-10-13 17:14:08 -0700 | [diff] [blame] | 453 | uint8_t *pCountry); |
Rajeev Kumar | 8e3e283 | 2015-11-06 16:02:54 -0800 | [diff] [blame] | 454 | QDF_STATUS sme_tx_fail_monitor_start_stop_ind(tHalHandle hHal, |
| 455 | uint8_t tx_fail_count, |
| 456 | void *txFailIndCallback); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 457 | QDF_STATUS sme_dhcp_start_ind(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 458 | uint8_t device_mode, |
| 459 | uint8_t *macAddr, uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 460 | QDF_STATUS sme_dhcp_stop_ind(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 461 | uint8_t device_mode, |
| 462 | uint8_t *macAddr, uint8_t sessionId); |
| 463 | void sme_set_cfg_privacy(tHalHandle hHal, tCsrRoamProfile *pProfile, |
| 464 | bool fPrivacy); |
| 465 | void sme_get_recovery_stats(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 466 | QDF_STATUS sme_neighbor_report_request(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 467 | tpRrmNeighborReq pRrmNeighborReq, |
| 468 | tpRrmNeighborRspCallbackInfo callbackInfo); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 469 | QDF_STATUS sme_get_wcnss_wlan_compiled_version(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 470 | tSirVersionType * pVersion); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 471 | QDF_STATUS sme_get_wcnss_wlan_reported_version(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 472 | tSirVersionType *pVersion); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 473 | QDF_STATUS sme_get_wcnss_software_version(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 474 | uint8_t *pVersion, uint32_t versionBufferSize); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 475 | QDF_STATUS sme_get_wcnss_hardware_version(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 476 | uint8_t *pVersion, uint32_t versionBufferSize); |
| 477 | #ifdef FEATURE_WLAN_WAPI |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 478 | 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] | 479 | tBkidCandidateInfo * pBkidList, |
| 480 | uint32_t *pNumItems); |
| 481 | #endif /* FEATURE_WLAN_WAPI */ |
| 482 | #ifdef FEATURE_OEM_DATA_SUPPORT |
Krishna Kumaar Natarajan | c1fa17d | 2016-08-03 14:19:20 -0700 | [diff] [blame] | 483 | QDF_STATUS sme_oem_data_req(tHalHandle hHal, struct oem_data_req *); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 484 | QDF_STATUS sme_oem_update_capability(tHalHandle hHal, |
Krishna Kumaar Natarajan | 53ca290 | 2015-12-04 14:01:46 -0800 | [diff] [blame] | 485 | struct sme_oem_capability *cap); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 486 | QDF_STATUS sme_oem_get_capability(tHalHandle hHal, |
Krishna Kumaar Natarajan | 53ca290 | 2015-12-04 14:01:46 -0800 | [diff] [blame] | 487 | struct sme_oem_capability *cap); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 488 | #endif /*FEATURE_OEM_DATA_SUPPORT */ |
Archana Ramachandran | 2eb7a61 | 2017-03-23 22:58:42 -0700 | [diff] [blame] | 489 | QDF_STATUS sme_change_mcc_beacon_interval(uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 490 | QDF_STATUS sme_set_host_offload(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 491 | tpSirHostOffloadReq pRequest); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 492 | QDF_STATUS sme_set_keep_alive(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 493 | tpSirKeepAliveReq pRequest); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 494 | QDF_STATUS sme_get_operation_channel(tHalHandle hHal, uint32_t *pChannel, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 495 | uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 496 | QDF_STATUS sme_register_mgmt_frame(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 497 | uint16_t frameType, uint8_t *matchData, |
| 498 | uint16_t matchLen); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 499 | QDF_STATUS sme_deregister_mgmt_frame(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 500 | uint16_t frameType, uint8_t *matchData, |
| 501 | uint16_t matchLen); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 502 | QDF_STATUS sme_ConfigureAppsCpuWakeupState(tHalHandle hHal, bool isAppsAwake); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 503 | #ifdef WLAN_FEATURE_EXTWOW_SUPPORT |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 504 | QDF_STATUS sme_configure_ext_wow(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 505 | tpSirExtWoWParams wlanExtParams, |
| 506 | csr_readyToSuspendCallback callback, |
| 507 | void *callbackContext); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 508 | QDF_STATUS sme_configure_app_type1_params(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 509 | tpSirAppType1Params wlanAppType1Params); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 510 | QDF_STATUS sme_configure_app_type2_params(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 511 | tpSirAppType2Params wlanAppType2Params); |
| 512 | #endif |
| 513 | int8_t sme_get_infra_session_id(tHalHandle hHal); |
| 514 | uint8_t sme_get_infra_operation_channel(tHalHandle hHal, uint8_t sessionId); |
| 515 | uint8_t sme_get_concurrent_operation_channel(tHalHandle hHal); |
| 516 | #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH |
| 517 | uint16_t sme_check_concurrent_channel_overlap(tHalHandle hHal, uint16_t sap_ch, |
| 518 | eCsrPhyMode sapPhyMode, |
| 519 | uint8_t cc_switch_mode); |
| 520 | #endif |
Tushnim Bhattacharyya | 0c4ad2d | 2017-03-09 15:59:03 -0800 | [diff] [blame] | 521 | QDF_STATUS sme_get_cfg_valid_channels(uint8_t *aValidChannels, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 522 | uint32_t *len); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 523 | #ifdef WLAN_FEATURE_PACKET_FILTERING |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 524 | QDF_STATUS sme_8023_multicast_list(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 525 | tpSirRcvFltMcAddrList pMulticastAddrs); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 526 | #endif /* WLAN_FEATURE_PACKET_FILTERING */ |
| 527 | bool sme_is_channel_valid(tHalHandle hHal, uint8_t channel); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 528 | QDF_STATUS sme_set_freq_band(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 529 | eCsrBand eBand); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 530 | QDF_STATUS sme_get_freq_band(tHalHandle hHal, eCsrBand *pBand); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 531 | uint16_t sme_chn_to_freq(uint8_t chanNum); |
| 532 | bool sme_is_channel_valid(tHalHandle hHal, uint8_t channel); |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 533 | QDF_STATUS sme_set_max_tx_power(tHalHandle hHal, struct qdf_mac_addr pBssid, |
| 534 | struct qdf_mac_addr pSelfMacAddress, int8_t dB); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 535 | QDF_STATUS sme_set_max_tx_power_per_band(eCsrBand band, int8_t db); |
| 536 | QDF_STATUS sme_set_tx_power(tHalHandle hHal, uint8_t sessionId, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 537 | struct qdf_mac_addr bssid, |
Jeff Johnson | c1e6278 | 2017-11-09 09:50:17 -0800 | [diff] [blame] | 538 | enum QDF_OPMODE dev_mode, int power); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 539 | QDF_STATUS sme_set_custom_mac_addr(tSirMacAddr customMacAddr); |
| 540 | QDF_STATUS sme_hide_ssid(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 541 | uint8_t ssidHidden); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 542 | QDF_STATUS sme_set_tm_level(tHalHandle hHal, uint16_t newTMLevel, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 543 | uint16_t tmMode); |
| 544 | void sme_feature_caps_exchange(tHalHandle hHal); |
| 545 | void sme_disable_feature_capablity(uint8_t feature_index); |
| 546 | void sme_reset_power_values_for5_g(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 547 | QDF_STATUS sme_update_roam_prefer5_g_hz(tHalHandle hHal, bool nRoamPrefer5GHz); |
| 548 | QDF_STATUS sme_set_roam_intra_band(tHalHandle hHal, const bool nRoamIntraBand); |
| 549 | 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] | 550 | const uint8_t nProbes); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 551 | QDF_STATUS sme_update_roam_scan_home_away_time(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 552 | uint8_t sessionId, |
| 553 | const uint16_t nRoamScanHomeAwayTime, |
| 554 | const bool bSendOffloadCmd); |
| 555 | |
| 556 | bool sme_get_roam_intra_band(tHalHandle hHal); |
| 557 | uint8_t sme_get_roam_scan_n_probes(tHalHandle hHal); |
| 558 | uint16_t sme_get_roam_scan_home_away_time(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 559 | QDF_STATUS sme_update_roam_rssi_diff(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 560 | uint8_t RoamRssiDiff); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 561 | QDF_STATUS sme_update_fast_transition_enabled(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 562 | bool isFastTransitionEnabled); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 563 | QDF_STATUS sme_update_wes_mode(tHalHandle hHal, bool isWESModeEnabled, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 564 | uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 565 | QDF_STATUS sme_set_roam_scan_control(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 566 | bool roamScanControl); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 567 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 568 | QDF_STATUS sme_update_is_fast_roam_ini_feature_enabled(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 569 | uint8_t sessionId, |
| 570 | const bool |
| 571 | isFastRoamIniFeatureEnabled); |
Mukul Sharma | 69c44cd | 2016-09-12 18:33:57 +0530 | [diff] [blame] | 572 | |
| 573 | QDF_STATUS sme_config_fast_roaming(tHalHandle hal, uint8_t session_id, |
| 574 | const bool is_fast_roam_enabled); |
| 575 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 576 | QDF_STATUS sme_update_is_mawc_ini_feature_enabled(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 577 | const bool MAWCEnabled); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 578 | QDF_STATUS sme_stop_roaming(tHalHandle hHal, uint8_t sessionId, uint8_t reason); |
Abhishek Singh | d568647 | 2017-09-20 15:18:50 +0530 | [diff] [blame] | 579 | |
| 580 | /** |
| 581 | * sme_indicate_disconnect_inprogress() - Indicate to csr that disconnect is in |
| 582 | * progress |
| 583 | * @hal: The handle returned by mac_open |
| 584 | * @session_id: sessionId on which disconenct has started |
| 585 | * |
| 586 | * Return: void |
| 587 | */ |
| 588 | void sme_indicate_disconnect_inprogress(tHalHandle hal, uint8_t session_id); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 589 | QDF_STATUS sme_start_roaming(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 590 | uint8_t reason); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 591 | QDF_STATUS sme_update_enable_fast_roam_in_concurrency(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 592 | bool bFastRoamInConIniFeatureEnabled); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 593 | #ifdef FEATURE_WLAN_ESE |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 594 | 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] | 595 | const bool isEseIniFeatureEnabled); |
| 596 | #endif /* FEATURE_WLAN_ESE */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 597 | QDF_STATUS sme_update_config_fw_rssi_monitoring(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 598 | bool fEnableFwRssiMonitoring); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 599 | QDF_STATUS sme_set_roam_rescan_rssi_diff(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 600 | uint8_t sessionId, |
| 601 | const uint8_t nRoamRescanRssiDiff); |
| 602 | uint8_t sme_get_roam_rescan_rssi_diff(tHalHandle hHal); |
| 603 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 604 | QDF_STATUS sme_set_roam_opportunistic_scan_threshold_diff(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 605 | uint8_t sessionId, |
| 606 | const uint8_t nOpportunisticThresholdDiff); |
| 607 | uint8_t sme_get_roam_opportunistic_scan_threshold_diff(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 608 | QDF_STATUS sme_set_neighbor_lookup_rssi_threshold(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 609 | uint8_t sessionId, uint8_t neighborLookupRssiThreshold); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 610 | QDF_STATUS sme_set_delay_before_vdev_stop(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 611 | uint8_t sessionId, uint8_t delay_before_vdev_stop); |
| 612 | uint8_t sme_get_neighbor_lookup_rssi_threshold(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 613 | QDF_STATUS sme_set_neighbor_scan_refresh_period(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 614 | uint8_t sessionId, uint16_t neighborScanResultsRefreshPeriod); |
| 615 | uint16_t sme_get_neighbor_scan_refresh_period(tHalHandle hHal); |
| 616 | uint16_t sme_get_empty_scan_refresh_period(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 617 | QDF_STATUS sme_update_empty_scan_refresh_period(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 618 | uint8_t sessionId, uint16_t nEmptyScanRefreshPeriod); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 619 | QDF_STATUS sme_set_neighbor_scan_min_chan_time(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 620 | const uint16_t nNeighborScanMinChanTime, |
| 621 | uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 622 | QDF_STATUS sme_set_neighbor_scan_max_chan_time(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 623 | uint8_t sessionId, const uint16_t nNeighborScanMaxChanTime); |
| 624 | uint16_t sme_get_neighbor_scan_min_chan_time(tHalHandle hHal, |
| 625 | uint8_t sessionId); |
| 626 | uint32_t sme_get_neighbor_roam_state(tHalHandle hHal, uint8_t sessionId); |
| 627 | uint32_t sme_get_current_roam_state(tHalHandle hHal, uint8_t sessionId); |
| 628 | uint32_t sme_get_current_roam_sub_state(tHalHandle hHal, uint8_t sessionId); |
| 629 | uint32_t sme_get_lim_sme_state(tHalHandle hHal); |
| 630 | uint32_t sme_get_lim_mlm_state(tHalHandle hHal); |
| 631 | bool sme_is_lim_session_valid(tHalHandle hHal, uint8_t sessionId); |
| 632 | uint32_t sme_get_lim_sme_session_state(tHalHandle hHal, uint8_t sessionId); |
| 633 | uint32_t sme_get_lim_mlm_session_state(tHalHandle hHal, uint8_t sessionId); |
| 634 | uint16_t sme_get_neighbor_scan_max_chan_time(tHalHandle hHal, |
| 635 | uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 636 | QDF_STATUS sme_set_neighbor_scan_period(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 637 | const uint16_t nNeighborScanPeriod); |
| 638 | uint16_t sme_get_neighbor_scan_period(tHalHandle hHal, uint8_t sessionId); |
Sridhar Selvaraj | 1b2330c | 2017-07-21 15:16:42 +0530 | [diff] [blame] | 639 | QDF_STATUS sme_set_neighbor_scan_min_period(tHalHandle h_hal, |
| 640 | uint8_t session_id, const uint16_t neighbor_scan_min_period); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 641 | QDF_STATUS sme_set_roam_bmiss_first_bcnt(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 642 | uint8_t sessionId, const uint8_t nRoamBmissFirstBcnt); |
| 643 | uint8_t sme_get_roam_bmiss_first_bcnt(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 644 | 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] | 645 | const uint8_t nRoamBmissFinalBcnt); |
| 646 | uint8_t sme_get_roam_bmiss_final_bcnt(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 647 | 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] | 648 | const uint8_t nRoamBeaconRssiWeight); |
| 649 | uint8_t sme_get_roam_beacon_rssi_weight(tHalHandle hHal); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 650 | uint8_t sme_get_roam_rssi_diff(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 651 | 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] | 652 | uint8_t *pChannelList, |
| 653 | uint8_t numChannels); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 654 | QDF_STATUS sme_set_ese_roam_scan_channel_list(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 655 | uint8_t sessionId, uint8_t *pChannelList, |
| 656 | uint8_t numChannels); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 657 | QDF_STATUS sme_get_roam_scan_channel_list(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 658 | uint8_t *pChannelList, uint8_t *pNumChannels, |
| 659 | uint8_t sessionId); |
| 660 | bool sme_get_is_ese_feature_enabled(tHalHandle hHal); |
| 661 | bool sme_get_wes_mode(tHalHandle hHal); |
| 662 | bool sme_get_roam_scan_control(tHalHandle hHal); |
| 663 | bool sme_get_is_lfr_feature_enabled(tHalHandle hHal); |
| 664 | bool sme_get_is_ft_feature_enabled(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 665 | QDF_STATUS sme_update_roam_scan_offload_enabled(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 666 | bool nRoamScanOffloadEnabled); |
Krishna Kumaar Natarajan | d0bbb3c | 2017-03-13 17:04:58 -0700 | [diff] [blame] | 667 | bool sme_is_feature_supported_by_fw(enum cap_bitmap feature); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 668 | |
| 669 | /* |
| 670 | * SME API to enable/disable WLAN driver initiated SSR |
| 671 | */ |
| 672 | void sme_update_enable_ssr(tHalHandle hHal, bool enableSSR); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 673 | QDF_STATUS sme_set_phy_mode(tHalHandle hHal, eCsrPhyMode phyMode); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 674 | eCsrPhyMode sme_get_phy_mode(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 675 | QDF_STATUS sme_handoff_request(tHalHandle hHal, uint8_t sessionId, |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 676 | tCsrHandoffRequest *pHandoffInfo); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 677 | QDF_STATUS sme_is_sta_p2p_client_connected(tHalHandle hHal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 678 | QDF_STATUS sme_add_periodic_tx_ptrn(tHalHandle hHal, tSirAddPeriodicTxPtrn |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 679 | *addPeriodicTxPtrnParams); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 680 | QDF_STATUS sme_del_periodic_tx_ptrn(tHalHandle hHal, tSirDelPeriodicTxPtrn |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 681 | *delPeriodicTxPtrnParams); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 682 | QDF_STATUS sme_send_rate_update_ind(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 683 | tSirRateUpdateInd *rateUpdateParams); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 684 | QDF_STATUS sme_roam_del_pmkid_from_cache(tHalHandle hHal, uint8_t sessionId, |
Sridhar Selvaraj | c3684c7 | 2017-08-21 14:32:47 +0530 | [diff] [blame] | 685 | tPmkidCacheInfo *pmksa, bool flush_cache); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 686 | void sme_get_command_q_status(tHalHandle hHal); |
| 687 | |
Rajeev Kumar | 8e3e283 | 2015-11-06 16:02:54 -0800 | [diff] [blame] | 688 | QDF_STATUS sme_enable_rmc(tHalHandle hHal, uint32_t sessionId); |
| 689 | QDF_STATUS sme_disable_rmc(tHalHandle hHal, uint32_t sessionId); |
| 690 | QDF_STATUS sme_send_rmc_action_period(tHalHandle hHal, uint32_t sessionId); |
| 691 | QDF_STATUS sme_request_ibss_peer_info(tHalHandle hHal, void *pUserData, |
| 692 | pIbssPeerInfoCb peerInfoCbk, bool allPeerInfoReqd, uint8_t staIdx); |
| 693 | QDF_STATUS sme_send_cesium_enable_ind(tHalHandle hHal, uint32_t sessionId); |
| 694 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 695 | /* |
| 696 | * SME API to enable/disable idle mode powersave |
| 697 | * This should be called only if powersave offload |
| 698 | * is enabled |
| 699 | */ |
Arunk Khandavalli | 847969d | 2017-09-25 15:15:36 +0530 | [diff] [blame] | 700 | QDF_STATUS sme_set_idle_powersave_config(bool value); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 701 | QDF_STATUS sme_notify_modem_power_state(tHalHandle hHal, uint32_t value); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 702 | |
| 703 | /*SME API to convert convert the ini value to the ENUM used in csr and MAC*/ |
| 704 | ePhyChanBondState sme_get_cb_phy_state_from_cb_ini_value(uint32_t cb_ini_value); |
| 705 | int sme_update_ht_config(tHalHandle hHal, uint8_t sessionId, uint16_t htCapab, |
| 706 | int value); |
| 707 | int16_t sme_get_ht_config(tHalHandle hHal, uint8_t session_id, |
| 708 | uint16_t ht_capab); |
| 709 | #ifdef QCA_HT_2040_COEX |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 710 | QDF_STATUS sme_notify_ht2040_mode(tHalHandle hHal, uint16_t staId, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 711 | struct qdf_mac_addr macAddrSTA, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 712 | uint8_t sessionId, |
| 713 | uint8_t channel_type); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 714 | QDF_STATUS sme_set_ht2040_mode(tHalHandle hHal, uint8_t sessionId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 715 | uint8_t channel_type, bool obssEnabled); |
| 716 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 717 | QDF_STATUS sme_get_reg_info(tHalHandle hHal, uint8_t chanId, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 718 | uint32_t *regInfo1, uint32_t *regInfo2); |
| 719 | #ifdef FEATURE_WLAN_TDLS |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 720 | QDF_STATUS sme_update_fw_tdls_state(tHalHandle hHal, void *psmeTdlsParams, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 721 | bool useSmeLock); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 722 | #endif /* FEATURE_WLAN_TDLS */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 723 | QDF_STATUS sme_ch_avoid_update_req(tHalHandle hHal); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 724 | #ifdef FEATURE_WLAN_AUTO_SHUTDOWN |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 725 | QDF_STATUS sme_set_auto_shutdown_cb(tHalHandle hHal, void (*pCallbackfn)(void)); |
| 726 | 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] | 727 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 728 | QDF_STATUS sme_roam_channel_change_req(tHalHandle hHal, |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 729 | struct qdf_mac_addr bssid, |
Amar Singhal | 5cccafe | 2017-02-15 12:42:58 -0800 | [diff] [blame] | 730 | struct ch_params *ch_params, |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 731 | tCsrRoamProfile *profile); |
| 732 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 733 | QDF_STATUS sme_roam_start_beacon_req(tHalHandle hHal, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 734 | struct qdf_mac_addr bssid, uint8_t dfsCacWaitStatus); |
| 735 | 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] | 736 | uint8_t targetChannel, uint8_t csaIeReqd, |
Amar Singhal | 5cccafe | 2017-02-15 12:42:58 -0800 | [diff] [blame] | 737 | struct ch_params *ch_params); |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 738 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 739 | QDF_STATUS sme_init_thermal_info(tHalHandle hHal, |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 740 | tSmeThermalParams thermalParam); |
| 741 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 742 | QDF_STATUS sme_set_thermal_level(tHalHandle hHal, uint8_t level); |
| 743 | QDF_STATUS sme_txpower_limit(tHalHandle hHal, tSirTxPowerLimit *psmetx); |
| 744 | QDF_STATUS sme_get_link_speed(tHalHandle hHal, tSirLinkSpeedInfo *lsReq, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 745 | void *plsContext, |
| 746 | void (*pCallbackfn)(tSirLinkSpeedInfo *indParam, |
| 747 | void *pContext)); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 748 | QDF_STATUS sme_modify_add_ie(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 749 | tSirModifyIE *pModifyIE, eUpdateIEsType updateType); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 750 | QDF_STATUS sme_update_add_ie(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 751 | tSirUpdateIE *pUpdateIE, eUpdateIEsType updateType); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 752 | QDF_STATUS sme_update_connect_debug(tHalHandle hHal, uint32_t set_value); |
Sreelakshmi Konamki | 39acb13 | 2015-12-16 13:06:22 +0530 | [diff] [blame] | 753 | const char *sme_request_type_to_string(const uint8_t request_type); |
Rajeev Kumar | 43e25b1 | 2016-04-15 16:26:36 -0700 | [diff] [blame] | 754 | const char *sme_scan_type_to_string(const uint8_t scan_type); |
| 755 | const char *sme_bss_type_to_string(const uint8_t bss_type); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 756 | 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] | 757 | bool disablefwd); |
| 758 | uint32_t sme_get_channel_bonding_mode5_g(tHalHandle hHal); |
| 759 | uint32_t sme_get_channel_bonding_mode24_g(tHalHandle hHal); |
| 760 | #ifdef WLAN_FEATURE_STATS_EXT |
| 761 | typedef struct sStatsExtRequestReq { |
| 762 | uint32_t request_data_len; |
| 763 | uint8_t *request_data; |
| 764 | } tStatsExtRequestReq, *tpStatsExtRequestReq; |
| 765 | typedef void (*StatsExtCallback)(void *, tStatsExtEvent *); |
| 766 | void sme_stats_ext_register_callback(tHalHandle hHal, |
| 767 | StatsExtCallback callback); |
lifeng | 6683166 | 2017-05-19 16:01:35 +0800 | [diff] [blame] | 768 | /** |
| 769 | * sme_register_stats_ext2_callback() - Register stats ext2 register |
| 770 | * @hal_handle: hal handle for getting global mac struct |
| 771 | * @stats_ext2_cb: callback to be registered |
| 772 | * |
| 773 | * This function will register a callback for frame aggregation failure |
| 774 | * indications processing. |
| 775 | * |
| 776 | * Return: void |
| 777 | */ |
| 778 | void sme_stats_ext2_register_callback(tHalHandle hal_handle, |
| 779 | void (*stats_ext2_cb)(void *, struct sir_sme_rx_aggr_hole_ind *)); |
Krunal Soni | aadaa27 | 2017-10-04 16:42:55 -0700 | [diff] [blame] | 780 | /** |
| 781 | * sme_send_unit_test_cmd() - send unit test command to lower layer |
| 782 | * @session_id: sme session id to be filled while forming the command |
| 783 | * @module_id: module id given by user to be filled in the command |
| 784 | * @arg_count: number of argument count |
| 785 | * @arg: pointer to argument list |
| 786 | * |
| 787 | * This API exposed to HDD layer which takes the argument from user and sends |
| 788 | * down to lower layer for further processing |
| 789 | * |
| 790 | * Return: QDF_STATUS based on overall success |
| 791 | */ |
| 792 | QDF_STATUS sme_send_unit_test_cmd(uint32_t vdev_id, uint32_t module_id, |
| 793 | uint32_t arg_count, uint32_t *arg); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 794 | void sme_stats_ext_deregister_callback(tHalHandle hhal); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 795 | QDF_STATUS sme_stats_ext_request(uint8_t session_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 796 | tpStatsExtRequestReq input); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 797 | QDF_STATUS sme_stats_ext_event(tHalHandle hHal, void *pMsg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 798 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 799 | QDF_STATUS sme_update_dfs_scan_mode(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 800 | uint8_t sessionId, |
| 801 | uint8_t allowDFSChannelRoam); |
| 802 | uint8_t sme_get_dfs_scan_mode(tHalHandle hHal); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 803 | |
| 804 | #ifdef FEATURE_WLAN_EXTSCAN |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 805 | 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] | 806 | uint32_t *aValidChannels, |
| 807 | uint8_t *pNumChannels); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 808 | QDF_STATUS sme_ext_scan_get_capabilities(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 809 | tSirGetExtScanCapabilitiesReqParams *pReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 810 | QDF_STATUS sme_ext_scan_start(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 811 | tSirWifiScanCmdReqParams *pStartCmd); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 812 | QDF_STATUS sme_ext_scan_stop(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 813 | tSirExtScanStopReqParams *pStopReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 814 | QDF_STATUS sme_set_bss_hotlist(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 815 | tSirExtScanSetBssidHotListReqParams * |
| 816 | pSetHotListReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 817 | QDF_STATUS sme_reset_bss_hotlist(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 818 | tSirExtScanResetBssidHotlistReqParams * |
| 819 | pResetReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 820 | QDF_STATUS sme_set_significant_change(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 821 | tSirExtScanSetSigChangeReqParams * |
| 822 | pSetSignificantChangeReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 823 | QDF_STATUS sme_reset_significant_change(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 824 | tSirExtScanResetSignificantChangeReqParams |
| 825 | *pResetReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 826 | QDF_STATUS sme_get_cached_results(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 827 | tSirExtScanGetCachedResultsReqParams * |
| 828 | pCachedResultsReq); |
| 829 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 830 | QDF_STATUS sme_set_epno_list(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 831 | struct wifi_epno_params *req_msg); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 832 | QDF_STATUS sme_set_passpoint_list(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 833 | struct wifi_passpoint_req *req_msg); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 834 | QDF_STATUS sme_reset_passpoint_list(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 835 | struct wifi_passpoint_req *req_msg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 836 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 837 | QDF_STATUS sme_ext_scan_register_callback(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 838 | void (*pExtScanIndCb)(void *, const uint16_t, void *)); |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 839 | #else |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 840 | static inline QDF_STATUS sme_ext_scan_register_callback(tHalHandle hHal, |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 841 | void (*pExtScanIndCb)(void *, const uint16_t, void *)) |
| 842 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 843 | return QDF_STATUS_SUCCESS; |
Prashanth Bhatta | 75fa9a1 | 2016-01-11 18:30:08 -0800 | [diff] [blame] | 844 | } |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 845 | #endif /* FEATURE_WLAN_EXTSCAN */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 846 | QDF_STATUS sme_abort_roam_scan(tHalHandle hHal, uint8_t sessionId); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 847 | #ifdef WLAN_FEATURE_LINK_LAYER_STATS |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 848 | QDF_STATUS sme_ll_stats_clear_req(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 849 | tSirLLStatsClearReq * pclearStatsReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 850 | QDF_STATUS sme_ll_stats_set_req(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 851 | tSirLLStatsSetReq *psetStatsReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 852 | QDF_STATUS sme_ll_stats_get_req(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 853 | tSirLLStatsGetReq *pgetStatsReq); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 854 | QDF_STATUS sme_set_link_layer_stats_ind_cb(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 855 | void (*callbackRoutine)(void *callbackCtx, |
| 856 | int indType, void *pRsp)); |
Zhang Qian | a6e9c10 | 2016-12-22 16:47:24 +0800 | [diff] [blame] | 857 | QDF_STATUS sme_set_link_layer_ext_cb(tHalHandle hal, |
| 858 | void (*ll_stats_ext_cb)(tHddHandle callback_ctx, |
| 859 | tSirLLStatsResults * rsp)); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 860 | QDF_STATUS sme_reset_link_layer_stats_ind_cb(tHalHandle hhal); |
Zhang Qian | 73c348a | 2017-03-13 16:15:55 +0800 | [diff] [blame] | 861 | QDF_STATUS sme_ll_stats_set_thresh(tHalHandle hal, |
| 862 | struct sir_ll_ext_stats_threshold *threshold); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 863 | #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ |
| 864 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 865 | QDF_STATUS sme_fw_mem_dump(tHalHandle hHal, void *recvd_req); |
| 866 | QDF_STATUS sme_fw_mem_dump_register_cb(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 867 | void (*callback_routine)(void *cb_context, |
| 868 | struct fw_dump_rsp *rsp)); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 869 | QDF_STATUS sme_fw_mem_dump_unregister_cb(tHalHandle hHal); |
Manikandan Mohan | 80dea79 | 2016-04-28 16:36:48 -0700 | [diff] [blame] | 870 | QDF_STATUS sme_set_wisa_params(tHalHandle hal, |
| 871 | struct sir_wisa_params *wisa_params); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 872 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 873 | QDF_STATUS sme_update_roam_offload_enabled(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 874 | bool nRoamOffloadEnabled); |
Deepak Dhamdhere | f2a7d8b | 2016-08-19 16:17:38 -0700 | [diff] [blame] | 875 | QDF_STATUS sme_update_roam_key_mgmt_offload_enabled(tHalHandle hal_ctx, |
| 876 | uint8_t session_id, |
| 877 | bool key_mgmt_offload_enabled, |
Deepak Dhamdhere | 828f189 | 2017-02-09 11:51:19 -0800 | [diff] [blame] | 878 | struct pmkid_mode_bits *pmkid_modes); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 879 | #endif |
| 880 | #ifdef WLAN_FEATURE_NAN |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 881 | QDF_STATUS sme_nan_event(tHalHandle hHal, void *pMsg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 882 | #endif /* WLAN_FEATURE_NAN */ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 883 | QDF_STATUS sme_get_link_status(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 884 | tCsrLinkStatusCallback callback, |
| 885 | void *pContext, uint8_t sessionId); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 886 | QDF_STATUS sme_get_temperature(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 887 | void *tempContext, |
| 888 | void (*pCallbackfn)(int temperature, |
| 889 | void *pContext)); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 890 | QDF_STATUS sme_set_scanning_mac_oui(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 891 | tSirScanMacOui *pScanMacOui); |
| 892 | |
| 893 | #ifdef IPA_OFFLOAD |
| 894 | /* --------------------------------------------------------------------------- |
| 895 | \fn sme_ipa_offload_enable_disable |
| 896 | \brief API to enable/disable IPA offload |
| 897 | \param hHal - The handle returned by macOpen. |
| 898 | \param sessionId - Session Identifier |
| 899 | \param pRequest - Pointer to the offload request. |
Deepak Dhamdhere | 0f076bd | 2016-06-02 11:29:21 -0700 | [diff] [blame] | 900 | \return QDF_STATUS |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 901 | ---------------------------------------------------------------------------*/ |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 902 | QDF_STATUS sme_ipa_offload_enable_disable(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 903 | uint8_t session_id, |
| 904 | struct sir_ipa_offload_enable_disable *request); |
| 905 | #else |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 906 | static inline QDF_STATUS sme_ipa_offload_enable_disable(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 907 | uint8_t session_id, |
| 908 | struct sir_ipa_offload_enable_disable *request) |
| 909 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 910 | return QDF_STATUS_SUCCESS; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 911 | } |
| 912 | #endif /* IPA_OFFLOAD */ |
| 913 | |
| 914 | #ifdef DHCP_SERVER_OFFLOAD |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 915 | QDF_STATUS sme_set_dhcp_srv_offload(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 916 | tSirDhcpSrvOffloadInfo * pDhcpSrvInfo); |
| 917 | #endif /* DHCP_SERVER_OFFLOAD */ |
| 918 | #ifdef WLAN_FEATURE_GPIO_LED_FLASHING |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 919 | QDF_STATUS sme_set_led_flashing(tHalHandle hHal, uint8_t type, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 920 | uint32_t x0, uint32_t x1); |
| 921 | #endif |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 922 | QDF_STATUS sme_handle_dfs_chan_scan(tHalHandle hHal, uint8_t dfs_flag); |
| 923 | QDF_STATUS sme_set_mas(uint32_t val); |
| 924 | QDF_STATUS sme_set_miracast(tHalHandle hal, uint8_t filter_type); |
| 925 | QDF_STATUS sme_ext_change_channel(tHalHandle hHal, uint32_t channel, |
Abhishek Singh | 518323d | 2015-10-19 17:42:01 +0530 | [diff] [blame] | 926 | uint8_t session_id); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 927 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 928 | QDF_STATUS sme_configure_modulated_dtim(tHalHandle hal, uint8_t session_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 929 | uint32_t modulated_dtim); |
| 930 | |
Mukul Sharma | 6398b25 | 2017-05-01 17:58:12 +0530 | [diff] [blame] | 931 | QDF_STATUS sme_override_listen_interval(tHalHandle h_hal, uint8_t session_id, |
| 932 | uint32_t override_li); |
| 933 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 934 | 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] | 935 | uint16_t stats_avg_factor); |
| 936 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 937 | QDF_STATUS sme_configure_guard_time(tHalHandle hal, uint8_t session_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 938 | uint32_t guard_time); |
| 939 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 940 | QDF_STATUS sme_wifi_start_logger(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 941 | struct sir_wifi_start_log start_log); |
| 942 | |
| 943 | bool sme_neighbor_middle_of_roaming(tHalHandle hHal, |
| 944 | uint8_t sessionId); |
| 945 | |
Jeff Johnson | a1e9261 | 2017-09-24 15:33:44 -0700 | [diff] [blame] | 946 | /** |
| 947 | * sme_enable_uapsd_for_ac() - enable uapsd for access catagory request to WMA |
| 948 | * @sta_id: station id |
| 949 | * @ac: access catagory |
| 950 | * @tid: tid value |
| 951 | * @pri: user priority |
| 952 | * @srvc_int: service interval |
| 953 | * @sus_int: suspend interval |
| 954 | * @dir: tspec direction |
| 955 | * @psb: PSB value |
| 956 | * @sessionId: session id |
| 957 | * @delay_interval: delay interval |
| 958 | * |
| 959 | * Return: QDF status |
| 960 | */ |
| 961 | QDF_STATUS sme_enable_uapsd_for_ac(uint8_t sta_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 962 | sme_ac_enum_type ac, uint8_t tid, |
| 963 | uint8_t pri, uint32_t srvc_int, |
| 964 | uint32_t sus_int, |
Abhishek Singh | 12be60f | 2017-08-11 13:52:42 +0530 | [diff] [blame] | 965 | enum sme_qos_wmm_dir_type dir, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 966 | uint8_t psb, uint32_t sessionId, |
| 967 | uint32_t delay_interval); |
| 968 | |
Jeff Johnson | a1e9261 | 2017-09-24 15:33:44 -0700 | [diff] [blame] | 969 | /** |
| 970 | * sme_disable_uapsd_for_ac() - disable uapsd access catagory request to WMA |
| 971 | * @sta_id: station id |
| 972 | * @ac: access catagory |
| 973 | * @sessionId: session id |
| 974 | * |
| 975 | * Return: QDF status |
| 976 | */ |
| 977 | QDF_STATUS sme_disable_uapsd_for_ac(uint8_t sta_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 978 | sme_ac_enum_type ac, |
| 979 | uint32_t sessionId); |
| 980 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 981 | QDF_STATUS sme_set_rssi_monitoring(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 982 | struct rssi_monitor_req *input); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 983 | QDF_STATUS sme_set_rssi_threshold_breached_cb(tHalHandle hal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 984 | void (*cb)(void *, struct rssi_breach_event *)); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 985 | QDF_STATUS sme_reset_rssi_threshold_breached_cb(tHalHandle hal); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 986 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 987 | QDF_STATUS sme_register_mgmt_frame_ind_callback(tHalHandle hal, |
Abhishek Singh | 7996eb7 | 2015-12-30 17:24:02 +0530 | [diff] [blame] | 988 | sir_mgmt_frame_ind_callback callback); |
| 989 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 990 | QDF_STATUS sme_update_nss(tHalHandle h_hal, uint8_t nss); |
Archana Ramachandran | 5041b25 | 2016-04-25 14:29:25 -0700 | [diff] [blame] | 991 | void sme_update_user_configured_nss(tHalHandle hal, uint8_t nss); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 992 | |
| 993 | bool sme_is_any_session_in_connected_state(tHalHandle h_hal); |
| 994 | |
Tushnim Bhattacharyya | 0c4ad2d | 2017-03-09 15:59:03 -0800 | [diff] [blame] | 995 | QDF_STATUS sme_pdev_set_pcl(struct policy_mgr_pcl_list msg); |
| 996 | QDF_STATUS sme_pdev_set_hw_mode(struct policy_mgr_hw_mode msg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 997 | void sme_register_hw_mode_trans_cb(tHalHandle hal, |
| 998 | hw_mode_transition_cb callback); |
Tushnim Bhattacharyya | 0c4ad2d | 2017-03-09 15:59:03 -0800 | [diff] [blame] | 999 | QDF_STATUS sme_nss_update_request(uint32_t vdev_id, |
| 1000 | uint8_t new_nss, policy_mgr_nss_update_cback cback, |
| 1001 | uint8_t next_action, struct wlan_objmgr_psoc *psoc, |
| 1002 | enum policy_mgr_conn_update_reason reason); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1003 | |
| 1004 | typedef void (*sme_peer_authorized_fp) (uint32_t vdev_id); |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1005 | QDF_STATUS sme_set_peer_authorized(uint8_t *peer_addr, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1006 | sme_peer_authorized_fp auth_fp, |
| 1007 | uint32_t vdev_id); |
Tushnim Bhattacharyya | 0c4ad2d | 2017-03-09 15:59:03 -0800 | [diff] [blame] | 1008 | QDF_STATUS sme_soc_set_dual_mac_config(struct policy_mgr_dual_mac_config msg); |
Archana Ramachandran | d41c3ed | 2016-02-10 15:48:06 -0800 | [diff] [blame] | 1009 | QDF_STATUS sme_soc_set_antenna_mode(tHalHandle hal, |
| 1010 | struct sir_antenna_mode_param *msg); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1011 | |
| 1012 | void sme_set_scan_disable(tHalHandle h_hal, int value); |
| 1013 | void sme_setdef_dot11mode(tHalHandle hal); |
| 1014 | |
Amar Singhal | 7c1e898 | 2016-05-19 15:08:09 -0700 | [diff] [blame] | 1015 | QDF_STATUS sme_handle_set_fcc_channel(tHalHandle hHal, |
Amar Singhal | 83a047a | 2016-05-19 15:56:11 -0700 | [diff] [blame] | 1016 | bool fcc_constraint, |
| 1017 | bool scan_pending); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1018 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1019 | 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] | 1020 | uint8_t session_id, |
| 1021 | uint32_t notify_id, |
| 1022 | int32_t val); |
| 1023 | |
| 1024 | void wlan_sap_enable_phy_error_logs(tHalHandle hal, bool enable_log); |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1025 | #ifdef WLAN_FEATURE_DSRC |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1026 | void sme_set_dot11p_config(tHalHandle hal, bool enable_dot11p); |
| 1027 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1028 | QDF_STATUS sme_ocb_set_config(tHalHandle hHal, void *context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1029 | ocb_callback callback, |
| 1030 | struct sir_ocb_config *config); |
| 1031 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1032 | 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] | 1033 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1034 | QDF_STATUS sme_ocb_start_timing_advert(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1035 | struct sir_ocb_timing_advert *timing_advert); |
| 1036 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1037 | QDF_STATUS sme_ocb_stop_timing_advert(tHalHandle hHal, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1038 | struct sir_ocb_timing_advert *timing_advert); |
| 1039 | |
Naveen Rawat | b4d3762 | 2015-11-13 16:15:25 -0800 | [diff] [blame] | 1040 | int sme_ocb_gen_timing_advert_frame(tHalHandle hHal, tSirMacAddr self_addr, |
| 1041 | uint8_t **buf, uint32_t *timestamp_offset, |
| 1042 | uint32_t *time_value_offset); |
| 1043 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1044 | QDF_STATUS sme_ocb_get_tsf_timer(tHalHandle hHal, void *context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1045 | ocb_callback callback, |
| 1046 | struct sir_ocb_get_tsf_timer *request); |
| 1047 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1048 | QDF_STATUS sme_dcc_get_stats(tHalHandle hHal, void *context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1049 | ocb_callback callback, |
| 1050 | struct sir_dcc_get_stats *request); |
| 1051 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1052 | QDF_STATUS sme_dcc_clear_stats(tHalHandle hHal, uint32_t vdev_id, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1053 | uint32_t dcc_stats_bitmap); |
| 1054 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1055 | QDF_STATUS sme_dcc_update_ndl(tHalHandle hHal, void *context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1056 | ocb_callback callback, |
| 1057 | struct sir_dcc_update_ndl *request); |
| 1058 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1059 | QDF_STATUS sme_register_for_dcc_stats_event(tHalHandle hHal, void *context, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1060 | ocb_callback callback); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 1061 | QDF_STATUS sme_deregister_for_dcc_stats_event(tHalHandle hHal); |
| 1062 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1063 | #else |
| 1064 | static inline void sme_set_dot11p_config(tHalHandle hal, bool enable_dot11p) |
| 1065 | { |
| 1066 | return; |
| 1067 | } |
| 1068 | |
| 1069 | static inline QDF_STATUS sme_ocb_set_config(tHalHandle hHal, void *context, |
| 1070 | ocb_callback callback, |
| 1071 | struct sir_ocb_config *config) |
| 1072 | { |
| 1073 | return QDF_STATUS_SUCCESS; |
| 1074 | } |
| 1075 | |
| 1076 | static inline QDF_STATUS sme_ocb_set_utc_time(struct sir_ocb_utc *utc) |
| 1077 | { |
| 1078 | return QDF_STATUS_SUCCESS; |
| 1079 | } |
| 1080 | |
| 1081 | static inline QDF_STATUS sme_ocb_start_timing_advert( |
| 1082 | struct sir_ocb_timing_advert *timing_advert) |
| 1083 | { |
| 1084 | return QDF_STATUS_SUCCESS; |
| 1085 | } |
| 1086 | |
| 1087 | static inline QDF_STATUS sme_ocb_stop_timing_advert(struct sir_ocb_timing_advert |
| 1088 | *timing_advert) |
| 1089 | { |
| 1090 | return QDF_STATUS_SUCCESS; |
| 1091 | } |
| 1092 | |
| 1093 | static inline int sme_ocb_gen_timing_advert_frame(tHalHandle hHal, |
| 1094 | tSirMacAddr self_addr, uint8_t **buf, |
| 1095 | uint32_t *timestamp_offset, |
| 1096 | uint32_t *time_value_offset) |
| 1097 | { |
| 1098 | return 0; |
| 1099 | } |
| 1100 | |
| 1101 | static inline QDF_STATUS sme_ocb_get_tsf_timer(tHalHandle hHal, void *context, |
| 1102 | ocb_callback callback, |
| 1103 | struct sir_ocb_get_tsf_timer *request) |
| 1104 | { |
| 1105 | return QDF_STATUS_SUCCESS; |
| 1106 | } |
| 1107 | |
| 1108 | static inline QDF_STATUS sme_dcc_get_stats(tHalHandle hHal, void *context, |
| 1109 | ocb_callback callback, |
| 1110 | struct sir_dcc_get_stats *request) |
| 1111 | { |
| 1112 | return QDF_STATUS_SUCCESS; |
| 1113 | } |
| 1114 | |
| 1115 | static inline QDF_STATUS sme_dcc_clear_stats(uint32_t vdev_id, |
| 1116 | uint32_t dcc_stats_bitmap) |
| 1117 | { |
| 1118 | return QDF_STATUS_SUCCESS; |
| 1119 | } |
| 1120 | |
| 1121 | static inline QDF_STATUS sme_dcc_update_ndl(tHalHandle hHal, void *context, |
| 1122 | ocb_callback callback, |
| 1123 | struct sir_dcc_update_ndl *request) |
| 1124 | { |
| 1125 | return QDF_STATUS_SUCCESS; |
| 1126 | } |
| 1127 | |
| 1128 | static inline QDF_STATUS sme_register_for_dcc_stats_event(tHalHandle hHal, |
| 1129 | void *context, ocb_callback callback) |
| 1130 | { |
| 1131 | return QDF_STATUS_SUCCESS; |
| 1132 | } |
| 1133 | static inline QDF_STATUS sme_deregister_for_dcc_stats_event(tHalHandle hHal) |
| 1134 | { |
| 1135 | return QDF_STATUS_SUCCESS; |
| 1136 | } |
| 1137 | #endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1138 | void sme_add_set_thermal_level_callback(tHalHandle hal, |
| 1139 | sme_set_thermal_level_callback callback); |
| 1140 | |
Krishna Kumaar Natarajan | 052c6e6 | 2015-09-28 15:32:55 -0700 | [diff] [blame] | 1141 | 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] | 1142 | bool sme_validate_sap_channel_switch(tHalHandle hal, |
| 1143 | uint16_t sap_ch, eCsrPhyMode sap_phy_mode, |
| 1144 | uint8_t cc_switch_mode, uint8_t session_id); |
Masti, Narayanraddi | c4a7ab8 | 2015-11-25 15:41:10 +0530 | [diff] [blame] | 1145 | |
Chandrasekaran, Manishekar | 2859de4 | 2016-02-11 16:17:38 +0530 | [diff] [blame] | 1146 | bool sme_is_session_id_valid(tHalHandle hal, uint32_t session_id); |
| 1147 | |
Masti, Narayanraddi | c4a7ab8 | 2015-11-25 15:41:10 +0530 | [diff] [blame] | 1148 | #ifdef FEATURE_WLAN_TDLS |
| 1149 | void sme_get_opclass(tHalHandle hal, uint8_t channel, uint8_t bw_offset, |
| 1150 | uint8_t *opclass); |
| 1151 | #else |
| 1152 | static inline void |
| 1153 | sme_get_opclass(tHalHandle hal, uint8_t channel, uint8_t bw_offset, |
| 1154 | uint8_t *opclass) |
| 1155 | { |
| 1156 | } |
| 1157 | #endif |
| 1158 | |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 1159 | #ifdef FEATURE_LFR_SUBNET_DETECTION |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1160 | QDF_STATUS sme_gateway_param_update(tHalHandle hHal, |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 1161 | struct gateway_param_update_req *request); |
| 1162 | #endif |
| 1163 | |
Ryan Hsu | 3c8f79f | 2015-12-02 16:45:09 -0800 | [diff] [blame] | 1164 | #ifdef FEATURE_GREEN_AP |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1165 | QDF_STATUS sme_send_egap_conf_params(uint32_t enable, |
Ryan Hsu | 3c8f79f | 2015-12-02 16:45:09 -0800 | [diff] [blame] | 1166 | uint32_t inactivity_time, |
| 1167 | uint32_t wait_time, |
| 1168 | uint32_t flags); |
| 1169 | #else |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1170 | static inline QDF_STATUS sme_send_egap_conf_params(uint32_t enable, |
Ryan Hsu | 3c8f79f | 2015-12-02 16:45:09 -0800 | [diff] [blame] | 1171 | uint32_t inactivity_time, |
| 1172 | uint32_t wait_time, |
| 1173 | uint32_t flags) |
| 1174 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 1175 | return QDF_STATUS_E_NOSUPPORT; |
Ryan Hsu | 3c8f79f | 2015-12-02 16:45:09 -0800 | [diff] [blame] | 1176 | } |
| 1177 | #endif |
Krunal Soni | e353194 | 2016-04-12 17:43:53 -0700 | [diff] [blame] | 1178 | |
Selvaraj, Sridhar | 57bb4d0 | 2016-08-31 16:14:15 +0530 | [diff] [blame] | 1179 | void sme_update_fine_time_measurement_capab(tHalHandle hal, uint8_t session_id, |
| 1180 | uint32_t val); |
Sandeep Puligilla | e087566 | 2016-02-12 16:09:21 -0800 | [diff] [blame] | 1181 | 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] | 1182 | QDF_STATUS sme_set_fw_test(struct set_fwtest_params *fw_test); |
Manikandan Mohan | dcc21ba | 2016-03-15 14:31:56 -0700 | [diff] [blame] | 1183 | QDF_STATUS sme_set_tsfcb(tHalHandle hHal, |
| 1184 | int (*cb_fn)(void *cb_ctx, struct stsf *ptsf), void *cb_ctx); |
Krunal Soni | e353194 | 2016-04-12 17:43:53 -0700 | [diff] [blame] | 1185 | |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 1186 | QDF_STATUS sme_reset_tsfcb(tHalHandle h_hal); |
| 1187 | |
Manikandan Mohan | 976e756 | 2016-03-15 16:33:31 -0700 | [diff] [blame] | 1188 | #ifdef WLAN_FEATURE_TSF |
| 1189 | QDF_STATUS sme_set_tsf_gpio(tHalHandle h_hal, uint32_t pinvalue); |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 1190 | QDF_STATUS sme_reset_tsf_gpio(tHalHandle h_hal); |
| 1191 | |
Manikandan Mohan | 976e756 | 2016-03-15 16:33:31 -0700 | [diff] [blame] | 1192 | #else |
| 1193 | static inline QDF_STATUS sme_set_tsf_gpio(tHalHandle h_hal, uint32_t pinvalue) |
| 1194 | { |
| 1195 | return QDF_STATUS_E_FAILURE; |
| 1196 | } |
Arun Khandavalli | 4b55da7 | 2016-07-19 19:55:01 +0530 | [diff] [blame] | 1197 | static inline QDF_STATUS sme_reset_tsf_gpio(tHalHandle h_hal) |
| 1198 | { |
| 1199 | return QDF_STATUS_E_FAILURE; |
| 1200 | } |
| 1201 | |
Manikandan Mohan | 976e756 | 2016-03-15 16:33:31 -0700 | [diff] [blame] | 1202 | #endif |
| 1203 | |
Archana Ramachandran | 20d2e23 | 2016-02-11 16:58:40 -0800 | [diff] [blame] | 1204 | QDF_STATUS sme_update_mimo_power_save(tHalHandle hHal, |
| 1205 | uint8_t is_ht_smps_enabled, |
Archana Ramachandran | fec2481 | 2016-02-16 16:31:56 -0800 | [diff] [blame] | 1206 | uint8_t ht_smps_mode, |
| 1207 | bool send_smps_action); |
Archana Ramachandran | 20d2e23 | 2016-02-11 16:58:40 -0800 | [diff] [blame] | 1208 | |
| 1209 | bool sme_is_sta_smps_allowed(tHalHandle hHal, uint8_t session_id); |
Gupta, Kapil | 4cb1d7d | 2016-04-16 18:16:25 -0700 | [diff] [blame] | 1210 | QDF_STATUS sme_add_beacon_filter(tHalHandle hal, |
| 1211 | uint32_t session_id, uint32_t *ie_map); |
| 1212 | QDF_STATUS sme_remove_beacon_filter(tHalHandle hal, uint32_t session_id); |
Arun Khandavalli | 2476ef5 | 2016-04-26 20:19:43 +0530 | [diff] [blame] | 1213 | |
Jeff Johnson | a867e0c | 2017-01-26 13:43:51 -0800 | [diff] [blame] | 1214 | /** |
| 1215 | * sme_get_bpf_offload_capabilities() - Get BPF offload capabilities |
| 1216 | * @hal: Global HAL handle |
| 1217 | * @callback: Callback function to be called with the result |
| 1218 | * @context: Opaque context to be used by the caller to associate the |
| 1219 | * request with the response |
| 1220 | * |
| 1221 | * This function constructs the cds message and fill in message type, |
| 1222 | * post the same to WDA. |
| 1223 | * |
| 1224 | * Return: QDF_STATUS enumeration |
| 1225 | */ |
| 1226 | QDF_STATUS sme_get_bpf_offload_capabilities(tHalHandle hal, |
| 1227 | bpf_get_offload_cb callback, |
| 1228 | void *context); |
| 1229 | |
Arun Khandavalli | 2476ef5 | 2016-04-26 20:19:43 +0530 | [diff] [blame] | 1230 | QDF_STATUS sme_set_bpf_instructions(tHalHandle hal, |
| 1231 | struct sir_bpf_set_offload *); |
Abhishek Singh | 1c67622 | 2016-05-09 14:20:28 +0530 | [diff] [blame] | 1232 | uint32_t sme_get_wni_dot11_mode(tHalHandle hal); |
Manjunathappa Prakash | 59f861d | 2016-04-21 10:33:31 -0700 | [diff] [blame] | 1233 | QDF_STATUS sme_create_mon_session(tHalHandle hal_handle, uint8_t *bssid); |
Gupta, Kapil | 96c7f2f | 2016-04-25 19:13:41 +0530 | [diff] [blame] | 1234 | QDF_STATUS sme_set_adaptive_dwelltime_config(tHalHandle hal, |
| 1235 | struct adaptive_dwelltime_params *dwelltime_params); |
Naveen Rawat | a410c5a | 2016-09-19 14:22:33 -0700 | [diff] [blame] | 1236 | |
| 1237 | void sme_set_vdev_ies_per_band(tHalHandle hal, uint8_t vdev_id); |
Kiran Kumar Lokere | 666bf85 | 2016-05-02 12:23:02 -0700 | [diff] [blame] | 1238 | void sme_set_pdev_ht_vht_ies(tHalHandle hHal, bool enable2x2); |
| 1239 | |
| 1240 | void sme_update_vdev_type_nss(tHalHandle hal, uint8_t max_supp_nss, |
| 1241 | uint32_t vdev_type_nss, eCsrBand band); |
Nitesh Shah | db5ea0d | 2017-03-22 15:17:47 +0530 | [diff] [blame] | 1242 | void sme_update_hw_dbs_capable(tHalHandle hal, uint8_t hw_dbs_capable); |
Peng Xu | 8fdaa49 | 2016-06-22 10:20:47 -0700 | [diff] [blame] | 1243 | void sme_register_p2p_lo_event(tHalHandle hHal, void *context, |
| 1244 | p2p_lo_callback callback); |
Manjeet Singh | f82ed07 | 2016-07-08 11:40:00 +0530 | [diff] [blame] | 1245 | |
Abhishek Singh | c994160 | 2016-08-09 16:06:22 +0530 | [diff] [blame] | 1246 | QDF_STATUS sme_remove_bssid_from_scan_list(tHalHandle hal, |
| 1247 | tSirMacAddr bssid); |
| 1248 | |
Manjeet Singh | f82ed07 | 2016-07-08 11:40:00 +0530 | [diff] [blame] | 1249 | QDF_STATUS sme_process_mac_pwr_dbg_cmd(tHalHandle hal, uint32_t session_id, |
| 1250 | struct sir_mac_pwr_dbg_cmd* |
| 1251 | dbg_args); |
| 1252 | |
Jeff Johnson | c1e6278 | 2017-11-09 09:50:17 -0800 | [diff] [blame] | 1253 | void sme_get_vdev_type_nss(enum QDF_OPMODE dev_mode, |
| 1254 | uint8_t *nss_2g, uint8_t *nss_5g); |
Masti, Narayanraddi | ab712a7 | 2016-08-04 11:59:11 +0530 | [diff] [blame] | 1255 | QDF_STATUS sme_roam_set_default_key_index(tHalHandle hal, uint8_t session_id, |
| 1256 | uint8_t default_idx); |
Kondabattini, Ganesh | 3f2d02c | 2016-09-13 12:23:47 +0530 | [diff] [blame] | 1257 | void sme_send_disassoc_req_frame(tHalHandle hal, uint8_t session_id, uint8_t |
| 1258 | *peer_mac, uint16_t reason, uint8_t |
| 1259 | wait_for_ack); |
Kondabattini, Ganesh | e4f18e0 | 2016-09-13 13:01:22 +0530 | [diff] [blame] | 1260 | QDF_STATUS sme_update_access_policy_vendor_ie(tHalHandle hal, |
| 1261 | uint8_t session_id, uint8_t *vendor_ie, |
| 1262 | int access_policy); |
| 1263 | |
Krishna Kumaar Natarajan | f1581df | 2017-02-21 13:42:08 -0800 | [diff] [blame] | 1264 | /** |
| 1265 | * sme_set_peer_param() - set peer param |
| 1266 | * @vdev_id: vdev ID |
| 1267 | * @peer_addr: peer MAC address |
| 1268 | * @param_id: param ID to be updated |
| 1269 | * @param_Value: paraam value |
| 1270 | * |
| 1271 | * This SME API is used to send the peer param to WMA to be sent to FW. |
| 1272 | * |
| 1273 | * Return: QDF_STATUS |
| 1274 | */ |
| 1275 | QDF_STATUS sme_set_peer_param(uint8_t *peer_addr, uint32_t param_id, |
| 1276 | uint32_t param_value, uint32_t vdev_id); |
| 1277 | |
Agrawal Ashish | 21ba257 | 2016-09-03 16:40:10 +0530 | [diff] [blame] | 1278 | QDF_STATUS sme_update_sta_roam_policy(tHalHandle hal, |
| 1279 | enum sta_roam_policy_dfs_mode dfs_mode, |
| 1280 | bool skip_unsafe_channels, |
Agrawal, Ashish | 9f84c40 | 2016-11-30 16:19:44 +0530 | [diff] [blame] | 1281 | uint8_t session_id, uint8_t sap_operating_band); |
Selvaraj, Sridhar | ebda0f2 | 2016-08-29 16:05:23 +0530 | [diff] [blame] | 1282 | QDF_STATUS sme_enable_disable_chanavoidind_event(tHalHandle hal, |
| 1283 | uint8_t set_value); |
Deepak Dhamdhere | b106ae5 | 2016-08-10 20:55:30 +0530 | [diff] [blame] | 1284 | QDF_STATUS sme_set_default_scan_ie(tHalHandle hal, uint16_t session_id, |
| 1285 | uint8_t *ie_data, uint16_t ie_len); |
Selvaraj, Sridhar | 7231c5f | 2016-09-28 12:42:33 +0530 | [diff] [blame] | 1286 | /** |
| 1287 | * sme_update_session_param() - API to update PE session param |
| 1288 | * @hal: HAL handle for device |
| 1289 | * @session_id: Session ID |
| 1290 | * @param_type: Param type to be updated |
| 1291 | * @param_val: Param value to be update |
| 1292 | * |
| 1293 | * Note: this setting will not persist over reboots. |
| 1294 | * |
| 1295 | * Return: QDF_STATUS |
| 1296 | */ |
| 1297 | QDF_STATUS sme_update_session_param(tHalHandle hal, uint8_t session_id, |
| 1298 | uint32_t param_type, uint32_t param_val); |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 1299 | |
Vignesh Viswanathan | 32761e4 | 2017-09-25 17:10:54 +0530 | [diff] [blame^] | 1300 | /** |
| 1301 | * sme_update_fils_setting() - API to update PE FILS setting |
| 1302 | * @hal: HAL handle for device |
| 1303 | * @session_id: Session ID |
| 1304 | * @param_val: Param value to be update |
| 1305 | * |
| 1306 | * Return: QDF_STATUS |
| 1307 | */ |
| 1308 | QDF_STATUS sme_update_fils_setting(tHalHandle hal, uint8_t session_id, |
| 1309 | uint8_t param_val); |
Padma, Santhosh Kumar | 72e7aec | 2016-10-12 17:23:44 +0530 | [diff] [blame] | 1310 | #ifdef WLAN_FEATURE_DISA |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 1311 | /** |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 1312 | * sme_encrypt_decrypt_msg() - handles encrypt/decrypt mesaage |
| 1313 | * @hal: HAL handle |
| 1314 | * @encrypt_decrypt_params: struct to set encryption/decryption params. |
Jeff Johnson | e8216e8 | 2017-01-26 15:54:51 -0800 | [diff] [blame] | 1315 | * @callback: callback function to be called with the result |
| 1316 | * @context: Opaque context to be passed to callback function |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 1317 | * |
| 1318 | * Return: QDF_STATUS enumeration. |
| 1319 | */ |
| 1320 | QDF_STATUS sme_encrypt_decrypt_msg(tHalHandle hal, |
Jeff Johnson | e8216e8 | 2017-01-26 15:54:51 -0800 | [diff] [blame] | 1321 | struct encrypt_decrypt_req_params *encrypt_decrypt_params, |
| 1322 | sme_encrypt_decrypt_callback callback, |
| 1323 | void *context); |
Padma, Santhosh Kumar | 72e7aec | 2016-10-12 17:23:44 +0530 | [diff] [blame] | 1324 | #endif |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 1325 | |
Jeff Johnson | 6136fb9 | 2017-03-30 15:21:49 -0700 | [diff] [blame] | 1326 | #ifdef WLAN_FEATURE_FIPS |
| 1327 | /** |
| 1328 | * sme_fips_request() - Perform a FIPS certification operation |
| 1329 | * @hal: Hal handle for the object being certified |
| 1330 | * @param: The FIPS certification parameters |
| 1331 | * @callback: Callback function to invoke with the results |
| 1332 | * @context: Opaque context to pass back to caller in the callback |
| 1333 | * |
| 1334 | * Return: QDF_STATUS_SUCCESS if the request is successfully sent |
| 1335 | * to firmware for processing, otherwise an error status. |
| 1336 | */ |
| 1337 | QDF_STATUS sme_fips_request(tHalHandle hal, struct fips_params *param, |
| 1338 | wma_fips_cb callback, void *context); |
| 1339 | #else |
| 1340 | static inline |
| 1341 | QDF_STATUS sme_fips_request(tHalHandle hal, struct fips_params *param, |
| 1342 | wma_fips_cb callback, void *context) |
| 1343 | { |
| 1344 | return QDF_STATUS_E_NOSUPPORT; |
| 1345 | } |
| 1346 | #endif /* WLAN_FEATURE_FIPS */ |
| 1347 | |
Agrawal Ashish | b2d1a45 | 2016-05-05 12:23:58 +0530 | [diff] [blame] | 1348 | /** |
| 1349 | * sme_set_cts2self_for_p2p_go() - sme function to set ini parms to FW. |
| 1350 | * @hal: reference to the HAL |
| 1351 | * |
| 1352 | * Return: QDF_STATUS |
| 1353 | */ |
| 1354 | QDF_STATUS sme_set_cts2self_for_p2p_go(tHalHandle hal); |
Kiran Kumar Lokere | 1aa9c9a | 2016-10-05 18:50:59 -0700 | [diff] [blame] | 1355 | void sme_set_prefer_80MHz_over_160MHz(tHalHandle hal, |
| 1356 | bool sta_prefer_80MHz_over_160MHz); |
Agrawal, Ashish | 35b251d | 2016-09-08 19:21:03 +0530 | [diff] [blame] | 1357 | QDF_STATUS sme_update_tx_fail_cnt_threshold(tHalHandle hal_handle, |
| 1358 | uint8_t session_id, uint32_t tx_fail_count); |
Agrawal Ashish | da3e950 | 2016-09-21 17:43:51 +0530 | [diff] [blame] | 1359 | QDF_STATUS sme_update_short_retry_limit_threshold(tHalHandle hal_handle, |
| 1360 | struct sme_short_retry_limit *short_retry_limit_th); |
| 1361 | QDF_STATUS sme_update_long_retry_limit_threshold(tHalHandle hal_handle, |
| 1362 | struct sme_long_retry_limit *long_retry_limit_th); |
yeshwanth sriram guntuka | a1ba9a2 | 2017-02-28 16:17:32 +0530 | [diff] [blame] | 1363 | /** |
| 1364 | * sme_roam_is_ese_assoc() - Check if association type is ESE |
| 1365 | * @roam_info: Pointer to roam info |
| 1366 | * |
| 1367 | * Return: true if ESE Association, false otherwise. |
| 1368 | */ |
| 1369 | #ifdef FEATURE_WLAN_ESE |
Jeff Johnson | 172237b | 2017-11-07 15:32:59 -0800 | [diff] [blame] | 1370 | bool sme_roam_is_ese_assoc(struct csr_roam_info *roam_info); |
yeshwanth sriram guntuka | a1ba9a2 | 2017-02-28 16:17:32 +0530 | [diff] [blame] | 1371 | #else |
Jeff Johnson | 172237b | 2017-11-07 15:32:59 -0800 | [diff] [blame] | 1372 | static inline bool sme_roam_is_ese_assoc(struct csr_roam_info *roam_info) |
yeshwanth sriram guntuka | a1ba9a2 | 2017-02-28 16:17:32 +0530 | [diff] [blame] | 1373 | { |
| 1374 | return false; |
| 1375 | } |
| 1376 | #endif |
| 1377 | /** |
| 1378 | * sme_neighbor_roam_is11r_assoc() - Check if association type is 11R |
| 1379 | * @hal_ctx: HAL handle |
| 1380 | * @session_id: session id |
| 1381 | * |
| 1382 | * Return: true if 11r Association, false otherwise. |
| 1383 | */ |
| 1384 | bool sme_neighbor_roam_is11r_assoc(tHalHandle hal_ctx, uint8_t session_id); |
Agrawal, Ashish | 4e5fa1c | 2016-09-21 19:03:43 +0530 | [diff] [blame] | 1385 | |
| 1386 | /** |
| 1387 | * sme_update_sta_inactivity_timeout(): Update sta_inactivity_timeout to FW |
| 1388 | * @hal: Handle returned by mac_open |
| 1389 | * @sta_inactivity_timer: struct for sta inactivity timer |
| 1390 | * |
| 1391 | * If a station does not send anything in sta_inactivity_timeout seconds, an |
| 1392 | * empty data frame is sent to it in order to verify whether it is |
| 1393 | * still in range. If this frame is not ACKed, the station will be |
| 1394 | * disassociated and then deauthenticated. |
| 1395 | * |
| 1396 | * Return: QDF_STATUS_SUCCESS or non-zero on failure. |
| 1397 | */ |
| 1398 | QDF_STATUS sme_update_sta_inactivity_timeout(tHalHandle hal_handle, |
| 1399 | struct sme_sta_inactivity_timeout *sta_inactivity_timer); |
| 1400 | |
Sreelakshmi Konamki | 58c7243 | 2016-11-09 17:06:44 +0530 | [diff] [blame] | 1401 | /** |
| 1402 | * sme_set_lost_link_info_cb() - plug in callback function for receiving |
| 1403 | * @hal: HAL handle |
| 1404 | * @cb: callback function |
| 1405 | * |
| 1406 | * Return: HAL status |
| 1407 | */ |
| 1408 | QDF_STATUS sme_set_lost_link_info_cb(tHalHandle hal, |
| 1409 | void (*cb)(void *, struct sir_lost_link_info *)); |
Yingying Tang | 9540997 | 2016-10-20 15:16:15 +0800 | [diff] [blame] | 1410 | |
Kapil Gupta | 8878ad9 | 2017-02-13 11:56:04 +0530 | [diff] [blame] | 1411 | /** |
| 1412 | * sme_update_new_channel_event() - update new channel event for sapFsm |
| 1413 | * @hal: HAL handle |
| 1414 | * @session_id: session id |
| 1415 | * |
| 1416 | * Return: QDF_STATUS_SUCCESS or non-zero on failure. |
| 1417 | */ |
| 1418 | QDF_STATUS sme_update_new_channel_event(tHalHandle hal, uint8_t session_id); |
Sridhar Selvaraj | dc400d2 | 2016-10-18 17:18:03 +0530 | [diff] [blame] | 1419 | #ifdef WLAN_POWER_DEBUGFS |
| 1420 | QDF_STATUS sme_power_debug_stats_req(tHalHandle hal, void (*callback_fn) |
| 1421 | (struct power_stats_response *response, |
| 1422 | void *context), void *power_stats_context); |
| 1423 | #endif |
Kabilan Kannan | 3c0a735 | 2016-12-02 18:49:38 -0800 | [diff] [blame] | 1424 | /** |
| 1425 | * sme_set_sar_power_limits() - set sar limits |
| 1426 | * @hal: HAL handle |
| 1427 | * @sar_limit_cmd: struct to send sar limit cmd. |
| 1428 | * |
| 1429 | * Return: QDF_STATUS enumeration. |
| 1430 | */ |
| 1431 | QDF_STATUS sme_set_sar_power_limits(tHalHandle hal, |
| 1432 | struct sar_limit_cmd_params *sar_limit_cmd); |
Amar Singhal | 6edf973 | 2016-11-20 21:43:40 -0800 | [diff] [blame] | 1433 | void sme_set_cc_src(tHalHandle hal_handle, enum country_src); |
Yingying Tang | 9540997 | 2016-10-20 15:16:15 +0800 | [diff] [blame] | 1434 | |
| 1435 | |
| 1436 | #ifdef WLAN_FEATURE_WOW_PULSE |
| 1437 | QDF_STATUS sme_set_wow_pulse(struct wow_pulse_mode *wow_pulse_set_info); |
| 1438 | #endif |
| 1439 | |
Anurag Chouhan | 3920c0f | 2017-09-11 17:10:56 +0530 | [diff] [blame] | 1440 | /* ARP DEBUG STATS */ |
| 1441 | QDF_STATUS sme_set_nud_debug_stats(tHalHandle hal, |
| 1442 | struct set_arp_stats_params |
| 1443 | *set_stats_param); |
| 1444 | QDF_STATUS sme_get_nud_debug_stats(tHalHandle hal, |
| 1445 | struct get_arp_stats_params |
| 1446 | *get_stats_param); |
| 1447 | QDF_STATUS sme_set_nud_debug_stats_cb(tHalHandle hal, |
| 1448 | void (*cb)(void *, struct rsp_stats *)); |
| 1449 | |
Kapil Gupta | 4f0c0c1 | 2017-02-07 15:21:15 +0530 | [diff] [blame] | 1450 | /** |
| 1451 | * sme_set_chan_info_callback() - Register chan info callback |
| 1452 | * @hal - MAC global handle |
| 1453 | * @callback_routine - callback routine from HDD |
| 1454 | * |
| 1455 | * This API is invoked by HDD to register its callback to mac |
| 1456 | * |
| 1457 | * Return: QDF_STATUS |
| 1458 | */ |
| 1459 | void sme_set_chan_info_callback(tHalHandle hal_handle, |
| 1460 | void (*callback)(struct scan_chan_info *chan_info)); |
Naveen Rawat | 664a7cb | 2017-01-19 17:58:14 -0800 | [diff] [blame] | 1461 | |
| 1462 | /** |
Hanumanth Reddy Pothula | 9005178 | 2017-05-04 22:14:43 +0530 | [diff] [blame] | 1463 | * sme_get_rssi_snr_by_bssid() - gets the rssi and snr by bssid from scan cache |
| 1464 | * @hal: handle returned by mac_open |
| 1465 | * @profile: current connected profile |
| 1466 | * @bssid: bssid to look for in scan cache |
| 1467 | * @rssi: rssi value found |
| 1468 | * @snr: snr value found |
| 1469 | * |
| 1470 | * Return: QDF_STATUS |
| 1471 | */ |
| 1472 | QDF_STATUS sme_get_rssi_snr_by_bssid(tHalHandle hal, tCsrRoamProfile *profile, |
| 1473 | const uint8_t *bssid, int8_t *rssi, |
| 1474 | int8_t *snr); |
| 1475 | |
| 1476 | /** |
Naveen Rawat | 664a7cb | 2017-01-19 17:58:14 -0800 | [diff] [blame] | 1477 | * sme_get_beacon_frm() - gets the bss descriptor from scan cache and prepares |
| 1478 | * beacon frame |
| 1479 | * @hal: handle returned by mac_open |
| 1480 | * @profile: current connected profile |
| 1481 | * @bssid: bssid to look for in scan cache |
| 1482 | * @frame_buf: frame buffer to populate |
| 1483 | * @frame_len: length of constructed frame |
Selvaraj, Sridhar | 64b0a9c | 2017-05-11 16:50:15 +0530 | [diff] [blame] | 1484 | * @channel: Pointer to channel info to be filled |
Naveen Rawat | 664a7cb | 2017-01-19 17:58:14 -0800 | [diff] [blame] | 1485 | * |
| 1486 | * Return: QDF_STATUS |
| 1487 | */ |
| 1488 | QDF_STATUS sme_get_beacon_frm(tHalHandle hal, tCsrRoamProfile *profile, |
| 1489 | const tSirMacAddr bssid, |
Selvaraj, Sridhar | 64b0a9c | 2017-05-11 16:50:15 +0530 | [diff] [blame] | 1490 | uint8_t **frame_buf, uint32_t *frame_len, |
| 1491 | int *channel); |
Naveen Rawat | 4195c5e | 2017-05-22 17:07:45 -0700 | [diff] [blame] | 1492 | /** |
| 1493 | * sme_fast_reassoc() - invokes FAST REASSOC command |
| 1494 | * @hal: handle returned by mac_open |
| 1495 | * @profile: current connected profile |
| 1496 | * @bssid: bssid to look for in scan cache |
| 1497 | * @channel: channel on which reassoc should be send |
| 1498 | * @vdev_id: vdev id |
Krunal Soni | 332f4af | 2017-06-01 14:36:17 -0700 | [diff] [blame] | 1499 | * @connected_bssid: bssid of currently connected profile |
Naveen Rawat | 4195c5e | 2017-05-22 17:07:45 -0700 | [diff] [blame] | 1500 | * |
| 1501 | * Return: QDF_STATUS |
| 1502 | */ |
| 1503 | QDF_STATUS sme_fast_reassoc(tHalHandle hal, tCsrRoamProfile *profile, |
| 1504 | const tSirMacAddr bssid, int channel, |
Krunal Soni | 332f4af | 2017-06-01 14:36:17 -0700 | [diff] [blame] | 1505 | uint8_t vdev_id, const tSirMacAddr connected_bssid); |
Naveen Rawat | 664a7cb | 2017-01-19 17:58:14 -0800 | [diff] [blame] | 1506 | |
Padma, Santhosh Kumar | 16dacfb | 2017-03-21 19:05:40 +0530 | [diff] [blame] | 1507 | /** |
| 1508 | * sme_congestion_register_callback(): registers congestion callback |
| 1509 | * @hal: handler for HAL |
| 1510 | * @congestion_cb: congestion callback |
| 1511 | * |
| 1512 | * Return: QDF_STATUS |
| 1513 | */ |
| 1514 | QDF_STATUS sme_congestion_register_callback(tHalHandle hal, |
| 1515 | void (*congestion_cb)(void *, uint32_t congestion, uint32_t vdev_id)); |
| 1516 | |
Tushnim Bhattacharyya | 9e81b4c | 2017-02-15 17:11:14 -0800 | [diff] [blame] | 1517 | /** |
Sreelakshmi Konamki | 88a2a41 | 2017-04-14 15:11:55 +0530 | [diff] [blame] | 1518 | * sme_rso_cmd_status_cb() - Set RSO cmd status callback |
| 1519 | * @hal: HAL Handle |
| 1520 | * @cb: HDD Callback to rso comman status read |
| 1521 | * |
| 1522 | * This function is used to save HDD RSO Command status callback in MAC |
| 1523 | * |
| 1524 | * Return: QDF_STATUS |
| 1525 | */ |
| 1526 | QDF_STATUS sme_rso_cmd_status_cb(tHalHandle hal, |
| 1527 | void (*cb)(void *, struct rso_cmd_status *)); |
| 1528 | |
| 1529 | /** |
Tushnim Bhattacharyya | 9e81b4c | 2017-02-15 17:11:14 -0800 | [diff] [blame] | 1530 | * sme_register_set_connection_info_cb() - Register connection |
| 1531 | * info callback |
| 1532 | * @hal - MAC global handle |
Tushnim Bhattacharyya | 0c4ad2d | 2017-03-09 15:59:03 -0800 | [diff] [blame] | 1533 | * @set_connection_info_cb - callback routine from HDD to set |
| 1534 | * connection info flag |
| 1535 | * @get_connection_info_cb - callback routine from HDD to get |
| 1536 | * connection info |
Tushnim Bhattacharyya | 9e81b4c | 2017-02-15 17:11:14 -0800 | [diff] [blame] | 1537 | * |
| 1538 | * This API is invoked by HDD to register its callback to mac |
| 1539 | * |
| 1540 | * Return: QDF_STATUS |
| 1541 | */ |
| 1542 | QDF_STATUS sme_register_set_connection_info_cb(tHalHandle hHal, |
Tushnim Bhattacharyya | 0c4ad2d | 2017-03-09 15:59:03 -0800 | [diff] [blame] | 1543 | bool (*set_connection_info_cb)(bool), |
| 1544 | bool (*get_connection_info_cb)(uint8_t *session_id, |
| 1545 | enum scan_reject_states *reason)); |
Tushnim Bhattacharyya | 9e81b4c | 2017-02-15 17:11:14 -0800 | [diff] [blame] | 1546 | |
Kiran Kumar Lokere | a3de226 | 2017-04-12 12:15:04 -0700 | [diff] [blame] | 1547 | /** |
Nitesh Shah | f9a09ff | 2017-05-22 15:46:25 +0530 | [diff] [blame] | 1548 | * sme_set_dbs_scan_selection_config() - Update DBS scan selection |
| 1549 | * configuration |
| 1550 | * @hal: The handle returned by macOpen |
| 1551 | * @params: wmi_dbs_scan_sel_params config |
| 1552 | * |
| 1553 | * Return: QDF_STATUS if DBS scan selection update |
| 1554 | * configuration success else failure status |
| 1555 | */ |
| 1556 | QDF_STATUS sme_set_dbs_scan_selection_config(tHalHandle hal, |
| 1557 | struct wmi_dbs_scan_sel_params *params); |
| 1558 | |
| 1559 | /** |
Kiran Kumar Lokere | a3de226 | 2017-04-12 12:15:04 -0700 | [diff] [blame] | 1560 | * sme_store_pdev() - store pdev |
| 1561 | * @hal - MAC global handle |
| 1562 | * @pdev - pdev ptr |
| 1563 | * |
| 1564 | * Return: QDF_STATUS |
| 1565 | */ |
| 1566 | void sme_store_pdev(tHalHandle hal, struct wlan_objmgr_pdev *pdev); |
| 1567 | |
Sandeep Puligilla | f587adf | 2017-04-27 19:53:21 -0700 | [diff] [blame] | 1568 | /** |
| 1569 | * sme_ipa_uc_stat_request() - set ipa config parameters |
| 1570 | * @vdev_id: virtual device for the command |
| 1571 | * @param_id: parameter id |
| 1572 | * @param_val: parameter value |
| 1573 | * @req_cat: parameter category |
| 1574 | * |
| 1575 | * Return: QDF_STATUS_SUCCESS or non-zero on failure |
| 1576 | */ |
| 1577 | QDF_STATUS sme_ipa_uc_stat_request(tHalHandle hal, |
| 1578 | uint32_t vdev_id, uint32_t param_id, |
| 1579 | uint32_t param_val, uint32_t req_cat); |
lifeng | 6683166 | 2017-05-19 16:01:35 +0800 | [diff] [blame] | 1580 | |
| 1581 | /** |
| 1582 | * sme_set_reorder_timeout() - set reorder timeout value |
| 1583 | * including Voice,Video,Besteffort,Background parameters |
| 1584 | * @hal: hal handle for getting global mac struct |
| 1585 | * @reg: struct sir_set_rx_reorder_timeout_val |
| 1586 | * |
| 1587 | * Return: QDF_STATUS_SUCCESS or non-zero on failure. |
| 1588 | */ |
| 1589 | QDF_STATUS sme_set_reorder_timeout(tHalHandle hal, |
| 1590 | struct sir_set_rx_reorder_timeout_val *req); |
| 1591 | |
| 1592 | /** |
| 1593 | * sme_set_rx_set_blocksize() - set blocksize value |
| 1594 | * including mac_addr and win_limit parameters |
| 1595 | * @hal: hal handle for getting global mac struct |
| 1596 | * @reg: struct sir_peer_set_rx_blocksize |
| 1597 | * |
| 1598 | * Return: QDF_STATUS_SUCCESS or non-zero on failure. |
| 1599 | */ |
| 1600 | |
| 1601 | QDF_STATUS sme_set_rx_set_blocksize(tHalHandle hal, |
| 1602 | struct sir_peer_set_rx_blocksize *req); |
| 1603 | |
Rajeev Kumar Sirasanagandla | 996e529 | 2016-11-22 21:20:33 +0530 | [diff] [blame] | 1604 | /** |
| 1605 | * sme_get_rcpi() - gets the rcpi value for peer mac addr |
| 1606 | * @hal: handle returned by mac_open |
| 1607 | * @rcpi: rcpi request containing peer mac addr, callback and related info |
| 1608 | * |
| 1609 | * This function posts the rcpi measurement request message to wma queue |
| 1610 | * |
| 1611 | * Return: QDF_STATUS |
| 1612 | */ |
| 1613 | QDF_STATUS sme_get_rcpi(tHalHandle hal, struct sme_rcpi_req *rcpi); |
| 1614 | |
Ravi Kumar Bokka | 05c14e5 | 2017-03-27 14:48:23 +0530 | [diff] [blame] | 1615 | /* |
| 1616 | * sme_set_chip_pwr_save_fail_cb() - set chip power save failure callback |
| 1617 | * @hal: global hal handle |
| 1618 | * @cb: callback function pointer |
| 1619 | * |
| 1620 | * This function stores the chip power save failure callback function. |
| 1621 | * |
| 1622 | * Return: QDF_STATUS enumeration. |
| 1623 | */ |
| 1624 | |
| 1625 | QDF_STATUS sme_set_chip_pwr_save_fail_cb(tHalHandle hal, void (*cb)(void *, |
| 1626 | struct chip_pwr_save_fail_detected_params *)); |
Naveen Rawat | 247a868 | 2017-06-05 15:00:31 -0700 | [diff] [blame] | 1627 | /** |
| 1628 | * sme_cli_set_command() - SME wrapper API over WMA "set" command |
| 1629 | * processor cmd |
| 1630 | * @vdev_id: virtual device for the command |
| 1631 | * @param_id: parameter id |
| 1632 | * @sval: parameter value |
| 1633 | * @vpdev: parameter category |
| 1634 | * |
| 1635 | * Command handler for set operations |
| 1636 | * |
| 1637 | * Return: 0 on success, errno on failure |
| 1638 | */ |
| 1639 | int sme_cli_set_command(int vdev_id, int param_id, int sval, int vpdev); |
Ravi Kumar Bokka | 05c14e5 | 2017-03-27 14:48:23 +0530 | [diff] [blame] | 1640 | |
Vidyullatha Kanchanapally | be0ebb3 | 2017-03-23 14:36:21 +0530 | [diff] [blame] | 1641 | /** |
| 1642 | * sme_set_bt_activity_info_cb - set the callback handler for bt events |
| 1643 | * @hal: handle returned by mac_open |
| 1644 | * @cb: callback handler |
| 1645 | * |
| 1646 | * Return: QDF_STATUS |
| 1647 | */ |
| 1648 | QDF_STATUS sme_set_bt_activity_info_cb(tHalHandle hal, |
| 1649 | void (*cb)(void *, uint32_t profile_info)); |
| 1650 | |
Will Huang | 558f808 | 2017-05-31 16:22:24 +0800 | [diff] [blame] | 1651 | /** |
Ashish Kumar Dhanotiya | b28338c | 2017-07-21 20:12:34 +0530 | [diff] [blame] | 1652 | * sme_set_smps_cfg() - set SMPS config params |
| 1653 | * @vdev_id: virtual device for the command |
| 1654 | * @param_id: parameter id |
| 1655 | * @param_val: parameter value |
| 1656 | * |
| 1657 | * Return: QDF_STATUS_SUCCESS or non-zero on failure |
| 1658 | */ |
| 1659 | |
| 1660 | QDF_STATUS sme_set_smps_cfg(uint32_t vdev_id, uint32_t param_id, |
| 1661 | uint32_t param_val); |
| 1662 | /** |
Will Huang | 558f808 | 2017-05-31 16:22:24 +0800 | [diff] [blame] | 1663 | * sme_get_peer_info() - sme api to get peer info |
| 1664 | * @hal: hal handle for getting global mac struct |
| 1665 | * @req: peer info request struct send to wma |
| 1666 | * @context: context of callback function |
| 1667 | * @callbackfn: hdd callback function when receive response |
| 1668 | * |
| 1669 | * This function will send WMA_GET_PEER_INFO to WMA |
| 1670 | * |
| 1671 | * Return: QDF_STATUS_SUCCESS or non-zero on failure |
| 1672 | */ |
| 1673 | QDF_STATUS sme_get_peer_info(tHalHandle hal, |
| 1674 | struct sir_peer_info_req req, |
| 1675 | void *context, |
| 1676 | void (*callbackfn)(struct sir_peer_info_resp *param, |
| 1677 | void *pcontext)); |
| 1678 | |
| 1679 | /** |
| 1680 | * sme_get_peer_info_ext() - sme api to get peer ext info |
| 1681 | * @hal: hal handle for getting global mac struct |
| 1682 | * @req: peer ext info request struct send to wma |
| 1683 | * @context: context of callback function |
| 1684 | * @callbackfn: hdd callback function when receive response |
| 1685 | * |
| 1686 | * This function will send WMA_GET_PEER_INFO_EXT to WMA |
| 1687 | * |
| 1688 | * Return: QDF_STATUS_SUCCESS or non-zero on failure |
| 1689 | */ |
| 1690 | QDF_STATUS sme_get_peer_info_ext(tHalHandle hal, |
| 1691 | struct sir_peer_info_ext_req *req, |
| 1692 | void *context, |
| 1693 | void (*callbackfn)(struct sir_peer_info_ext_resp *param, |
| 1694 | void *pcontext)); |
Manjeet Singh | a9cae43 | 2017-02-28 11:58:22 +0530 | [diff] [blame] | 1695 | |
Tushnim Bhattacharyya | 518e80f | 2017-08-30 17:35:33 -0700 | [diff] [blame] | 1696 | /** |
| 1697 | * sme_set_5g_band_pref() - sme api to set 5Ghz preference |
| 1698 | * @hal: hal handle for getting global mac struct |
| 1699 | * @pref_params: preference info request struct |
| 1700 | * |
| 1701 | * This function will set 5Ghz preference for STA connection |
| 1702 | * |
| 1703 | * Return: None |
| 1704 | */ |
Manjeet Singh | a9cae43 | 2017-02-28 11:58:22 +0530 | [diff] [blame] | 1705 | void sme_set_5g_band_pref(tHalHandle hal_handle, |
| 1706 | struct sme_5g_band_pref_params *pref_params); |
lifeng | d217d19 | 2017-05-09 19:44:16 +0800 | [diff] [blame] | 1707 | /** |
| 1708 | * sme_get_chain_rssi() - Get chain rssi |
| 1709 | * @hal: Global HAL handle |
| 1710 | * @input: get chain rssi req params |
| 1711 | * @callback: Callback function to be called with the result |
| 1712 | * @context: Opaque context to be used by the caller to associate the |
| 1713 | * request with the response |
| 1714 | * |
| 1715 | * This function constructs the cds message and fill in message type, |
| 1716 | * post the same to WDA. |
| 1717 | * |
| 1718 | * Return: QDF_STATUS enumeration |
| 1719 | */ |
| 1720 | QDF_STATUS sme_get_chain_rssi(tHalHandle hal, |
| 1721 | struct get_chain_rssi_req_params *input, |
| 1722 | get_chain_rssi_callback callback, |
| 1723 | void *context); |
Tushnim Bhattacharyya | c3c375e | 2017-08-04 23:39:55 -0700 | [diff] [blame] | 1724 | |
| 1725 | /** |
| 1726 | * sme_get_valid_channels() - sme api to get valid channels for |
| 1727 | * current regulatory domain |
| 1728 | * @chan_list: list of the valid channels |
| 1729 | * @list_len: length of the channel list |
| 1730 | * |
| 1731 | * This function will get valid channels for current regulatory |
| 1732 | * domain |
| 1733 | * |
| 1734 | * Return: QDF_STATUS_SUCCESS or non-zero on failure |
| 1735 | */ |
| 1736 | QDF_STATUS sme_get_valid_channels(uint8_t *chan_list, uint32_t *list_len); |
Tushnim Bhattacharyya | 518e80f | 2017-08-30 17:35:33 -0700 | [diff] [blame] | 1737 | |
| 1738 | /** |
| 1739 | * sme_get_mac_context() - sme api to get the pmac context |
| 1740 | * |
| 1741 | * This function will return the pmac context |
| 1742 | * |
| 1743 | * Return: pointer to pmac context |
| 1744 | */ |
| 1745 | tpAniSirGlobal sme_get_mac_context(void); |
Vignesh Viswanathan | 66c951d | 2017-09-06 12:23:42 +0530 | [diff] [blame] | 1746 | |
| 1747 | /** |
| 1748 | * sme_display_disconnect_stats() - Display per session Disconnect stats |
| 1749 | * @hal: hal global context |
| 1750 | * session_id: SME session id |
| 1751 | * |
| 1752 | * Return: None |
| 1753 | */ |
| 1754 | void sme_display_disconnect_stats(tHalHandle hal, uint8_t session_id); |
Sandeep Puligilla | 1426d61 | 2017-04-12 18:22:06 -0700 | [diff] [blame] | 1755 | |
| 1756 | /** |
| 1757 | * sme_process_msg_callback() - process callback message from LIM |
| 1758 | * @hal: global hal handle |
| 1759 | * @msg: scheduler message |
| 1760 | * |
| 1761 | * This function process the callback messages from LIM. |
| 1762 | * |
| 1763 | * Return: QDF_STATUS enumeration. |
| 1764 | */ |
| 1765 | QDF_STATUS sme_process_msg_callback(tHalHandle hal, |
| 1766 | struct scheduler_msg *msg); |
Nachiket Kukade | aaf8a71 | 2017-07-27 19:15:36 +0530 | [diff] [blame] | 1767 | |
| 1768 | /** |
| 1769 | * sme_set_bmiss_bcnt() - set bmiss config parameters |
| 1770 | * @vdev_id: virtual device for the command |
| 1771 | * @first_cnt: bmiss first value |
| 1772 | * @final_cnt: bmiss final value |
| 1773 | * |
| 1774 | * Return: QDF_STATUS_SUCCESS or non-zero on failure |
| 1775 | */ |
| 1776 | QDF_STATUS sme_set_bmiss_bcnt(uint32_t vdev_id, uint32_t first_cnt, |
| 1777 | uint32_t final_cnt); |
| 1778 | |
Ganesh Kondabattini | 479a8ae | 2017-10-03 16:49:24 +0530 | [diff] [blame] | 1779 | /** |
| 1780 | * sme_send_limit_off_channel_params() - send limit off channel parameters |
| 1781 | * @hal: global hal handle |
| 1782 | * @vdev_id: vdev id |
| 1783 | * @is_tos_active: tos active or inactive |
| 1784 | * @max_off_chan_time: max off channel time |
| 1785 | * @rest_time: rest time |
| 1786 | * @skip_dfs_chan: skip dfs channel |
| 1787 | * |
| 1788 | * This function sends command to WMA for setting limit off channel command |
| 1789 | * parameters. |
| 1790 | * |
| 1791 | * Return: QDF_STATUS enumeration. |
| 1792 | */ |
| 1793 | QDF_STATUS sme_send_limit_off_channel_params(tHalHandle hal, uint8_t vdev_id, |
| 1794 | bool is_tos_active, uint32_t max_off_chan_time, |
| 1795 | uint32_t rest_time, bool skip_dfs_chan); |
| 1796 | |
Nachiket Kukade | 8983cf6 | 2017-10-12 18:14:48 +0530 | [diff] [blame] | 1797 | /** |
| 1798 | * sme_set_vc_mode_config() - Set voltage corner config to FW. |
| 1799 | * @bitmap: Bitmap that refers to voltage corner config with |
| 1800 | * different phymode and bw configuration |
| 1801 | * |
| 1802 | * Return: QDF_STATUS |
| 1803 | */ |
| 1804 | QDF_STATUS sme_set_vc_mode_config(uint32_t vc_bitmap); |
| 1805 | |
Vignesh Viswanathan | c6d1e1c | 2017-09-18 12:32:49 +0530 | [diff] [blame] | 1806 | /** |
| 1807 | * sme_set_del_pmkid_cache() - API to update PMKID cache |
| 1808 | * @hal: HAL handle for device |
| 1809 | * @session_id: Session id |
| 1810 | * @pmk_cache_info: Pointer to PMK cache info |
| 1811 | * @is_add: boolean that implies whether to add or delete PMKID entry |
| 1812 | * |
| 1813 | * Return: QDF_STATUS |
| 1814 | */ |
| 1815 | QDF_STATUS sme_set_del_pmkid_cache(tHalHandle hal, uint8_t session_id, |
| 1816 | tPmkidCacheInfo *pmk_cache_info, |
| 1817 | bool is_add); |
| 1818 | |
| 1819 | /** |
| 1820 | * sme_send_hlp_ie_info() - API to send HLP IE info to fw |
| 1821 | * @hal: HAL handle for device |
| 1822 | * @session_id: Session id |
| 1823 | * @profile: CSR Roam profile |
| 1824 | * @if_addr: IP address |
| 1825 | * |
| 1826 | * This API is used to send HLP IE info along with IP address |
| 1827 | * to fw if LFR3 is enabled. |
| 1828 | * |
| 1829 | * Return: QDF_STATUS |
| 1830 | */ |
| 1831 | void sme_send_hlp_ie_info(tHalHandle hal, uint8_t session_id, |
| 1832 | tCsrRoamProfile *profile, uint32_t if_addr); |
| 1833 | |
| 1834 | #if defined(WLAN_FEATURE_FILS_SK) |
| 1835 | /** |
| 1836 | * sme_update_fils_config - Update FILS config to CSR roam session |
| 1837 | * @hal: HAL handle for device |
| 1838 | * @session_id: session id |
| 1839 | * @src_profile: Source profile having latest FILS config |
| 1840 | * |
| 1841 | * API to update FILS config to roam csr session and update the same |
| 1842 | * to fw if LFR3 is enabled. |
| 1843 | * |
| 1844 | * Return: QDF_STATUS |
| 1845 | */ |
| 1846 | QDF_STATUS sme_update_fils_config(tHalHandle hal, uint8_t session_id, |
| 1847 | tCsrRoamProfile *src_profile); |
| 1848 | |
| 1849 | /** |
| 1850 | * sme_free_join_rsp_fils_params - free fils params |
| 1851 | * @roam_info: roam info |
| 1852 | * |
| 1853 | * Return: void |
| 1854 | */ |
Jeff Johnson | 172237b | 2017-11-07 15:32:59 -0800 | [diff] [blame] | 1855 | void sme_free_join_rsp_fils_params(struct csr_roam_info *roam_info); |
Vignesh Viswanathan | c6d1e1c | 2017-09-18 12:32:49 +0530 | [diff] [blame] | 1856 | #else |
| 1857 | static inline QDF_STATUS sme_update_fils_config(tHalHandle hal, |
| 1858 | uint8_t session_id, |
| 1859 | tCsrRoamProfile *src_profile) |
| 1860 | { |
| 1861 | return QDF_STATUS_SUCCESS; |
| 1862 | } |
| 1863 | |
Jeff Johnson | 172237b | 2017-11-07 15:32:59 -0800 | [diff] [blame] | 1864 | static inline |
| 1865 | void sme_free_join_rsp_fils_params(struct csr_roam_info *roam_info) |
Vignesh Viswanathan | c6d1e1c | 2017-09-18 12:32:49 +0530 | [diff] [blame] | 1866 | {} |
| 1867 | |
| 1868 | #endif |
Kiran Kumar Lokere | e6476b2 | 2017-10-16 23:40:32 -0700 | [diff] [blame] | 1869 | #ifdef WLAN_FEATURE_11AX_BSS_COLOR |
| 1870 | /** |
| 1871 | * sme_set_he_bss_color() - Sets the HE BSS color |
| 1872 | * |
| 1873 | * @hal: The handle returned by mac_open |
| 1874 | * @session_id: session_id of the request |
| 1875 | * @bss_color: HE BSS color value to set |
| 1876 | * |
| 1877 | * Return: QDF_STATUS |
| 1878 | */ |
| 1879 | QDF_STATUS sme_set_he_bss_color(tHalHandle hal, uint8_t session_id, |
| 1880 | uint8_t bss_color); |
| 1881 | #else |
| 1882 | static inline QDF_STATUS sme_set_he_bss_color(tHalHandle hal, |
| 1883 | uint8_t session_id, uint8_t bss_color) |
| 1884 | { |
| 1885 | return QDF_STATUS_SUCCESS; |
| 1886 | } |
| 1887 | #endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1888 | #endif /* #if !defined( __SME_API_H ) */ |