Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1 | |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 2 | /* |
Sourav Mohapatra | 3629ecf | 2018-02-12 10:24:28 +0530 | [diff] [blame] | 3 | * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 4 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 5 | * |
| 6 | * |
| 7 | * |
| 8 | * Permission to use, copy, modify, and/or distribute this software for |
| 9 | * any purpose with or without fee is hereby granted, provided that the |
| 10 | * above copyright notice and this permission notice appear in all |
| 11 | * copies. |
| 12 | * |
| 13 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 14 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 15 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 16 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 17 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 18 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 20 | * PERFORMANCE OF THIS SOFTWARE. |
| 21 | */ |
Prakash Dhavali | 0573c4d | 2014-02-12 13:19:04 -0800 | [diff] [blame] | 22 | |
| 23 | /* |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 24 | * This file was originally distributed by Qualcomm Atheros, Inc. |
| 25 | * under proprietary terms before Copyright ownership was assigned |
| 26 | * to the Linux Foundation. |
| 27 | */ |
Tushnim Bhattacharyya | 5dd9456 | 2013-03-20 20:15:03 -0700 | [diff] [blame] | 28 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 29 | /*========================================================================== |
| 30 | * |
| 31 | * @file: wlan_hal_msg.h |
| 32 | * |
| 33 | * @brief: Exports and types for messages sent to HAL from WDI |
| 34 | * |
| 35 | * @author: Kumar Anand |
| 36 | * |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 37 | * |
| 38 | *=========================================================================*/ |
| 39 | |
| 40 | #ifndef _WLAN_HAL_MSG_H_ |
| 41 | #define _WLAN_HAL_MSG_H_ |
| 42 | |
| 43 | #include "halLegacyPalTypes.h" |
| 44 | #include "halCompiler.h" |
| 45 | #include "wlan_qct_dev_defs.h" |
| 46 | #include "wlan_nv.h" |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 47 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 48 | /*--------------------------------------------------------------------------- |
| 49 | API VERSIONING INFORMATION |
| 50 | |
| 51 | The RIVA API is versioned as MAJOR.MINOR.VERSION.REVISION |
| 52 | The MAJOR is incremented for major product/architecture changes |
| 53 | (and then MINOR/VERSION/REVISION are zeroed) |
| 54 | The MINOR is incremented for minor product/architecture changes |
| 55 | (and then VERSION/REVISION are zeroed) |
| 56 | The VERSION is incremented if a significant API change occurs |
| 57 | (and then REVISION is zeroed) |
| 58 | The REVISION is incremented if an insignificant API change occurs |
| 59 | or if a new API is added |
| 60 | All values are in the range 0..255 (ie they are 8-bit values) |
| 61 | ---------------------------------------------------------------------------*/ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 62 | #define WLAN_HAL_VER_MAJOR 1 |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 63 | #define WLAN_HAL_VER_MINOR 5 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 64 | #define WLAN_HAL_VER_VERSION 1 |
Viral Modi | e50b1d4 | 2012-12-10 13:04:52 -0800 | [diff] [blame] | 65 | #define WLAN_HAL_VER_REVISION 2 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 66 | |
| 67 | /*--------------------------------------------------------------------------- |
| 68 | Commom Type definitons |
| 69 | ---------------------------------------------------------------------------*/ |
| 70 | |
Srinivas Dasari | 4258463 | 2014-11-26 20:37:19 +0530 | [diff] [blame] | 71 | #define DISA_MAX_PAYLOAD_SIZE 1600 |
| 72 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 73 | //This is to force compiler to use the maximum of an int ( 4 bytes ) |
| 74 | #define WLAN_HAL_MAX_ENUM_SIZE 0x7FFFFFFF |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 75 | #define WLAN_HAL_MSG_TYPE_MAX_ENUM_SIZE 0x7FFF |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 76 | |
| 77 | //Max no. of transmit categories |
| 78 | #define STACFG_MAX_TC 8 |
| 79 | |
| 80 | //The maximum value of access category |
| 81 | #define WLAN_HAL_MAX_AC 4 |
| 82 | |
| 83 | typedef tANI_U8 tSirMacAddr[6]; |
| 84 | typedef tANI_U8 tHalIpv4Addr[4]; |
| 85 | |
| 86 | #define HAL_MAC_ADDR_LEN 6 |
| 87 | #define HAL_IPV4_ADDR_LEN 4 |
| 88 | |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 89 | #define WLAN_HAL_STA_INVALID_IDX 0xFF |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 90 | #define WLAN_HAL_BSS_INVALID_IDX 0xFF |
| 91 | |
| 92 | //Default Beacon template size |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 93 | #define BEACON_TEMPLATE_SIZE 0x180 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 94 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 95 | |
| 96 | //Max Tx Data Rate samples |
| 97 | #define MAX_TX_RATE_SAMPLES 10 |
| 98 | //Max Beacon Rssi samples |
| 99 | #define MAX_BCN_RSSI_SAMPLES 10 |
| 100 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 101 | //Param Change Bitmap sent to HAL |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 102 | #define PARAM_BCN_INTERVAL_CHANGED (1 << 0) |
| 103 | #define PARAM_SHORT_PREAMBLE_CHANGED (1 << 1) |
| 104 | #define PARAM_SHORT_SLOT_TIME_CHANGED (1 << 2) |
| 105 | #define PARAM_llACOEXIST_CHANGED (1 << 3) |
| 106 | #define PARAM_llBCOEXIST_CHANGED (1 << 4) |
| 107 | #define PARAM_llGCOEXIST_CHANGED (1 << 5) |
| 108 | #define PARAM_HT20MHZCOEXIST_CHANGED (1<<6) |
| 109 | #define PARAM_NON_GF_DEVICES_PRESENT_CHANGED (1<<7) |
| 110 | #define PARAM_RIFS_MODE_CHANGED (1<<8) |
| 111 | #define PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED (1<<9) |
| 112 | #define PARAM_OBSS_MODE_CHANGED (1<<10) |
| 113 | #define PARAM_BEACON_UPDATE_MASK (PARAM_BCN_INTERVAL_CHANGED|PARAM_SHORT_PREAMBLE_CHANGED|PARAM_SHORT_SLOT_TIME_CHANGED|PARAM_llACOEXIST_CHANGED |PARAM_llBCOEXIST_CHANGED|\ |
| 114 | PARAM_llGCOEXIST_CHANGED|PARAM_HT20MHZCOEXIST_CHANGED|PARAM_NON_GF_DEVICES_PRESENT_CHANGED|PARAM_RIFS_MODE_CHANGED|PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED| PARAM_OBSS_MODE_CHANGED) |
| 115 | |
| 116 | /*Dump command response Buffer size*/ |
Gopichand Nakkala | 089c258 | 2013-04-04 15:40:10 +0530 | [diff] [blame] | 117 | #define DUMPCMD_RSP_BUFFER 500 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 118 | |
| 119 | /*Version string max length (including NUL) */ |
| 120 | #define WLAN_HAL_VERSION_LENGTH 64 |
| 121 | |
Gopichand Nakkala | 175de4b | 2013-05-06 12:02:17 +0530 | [diff] [blame] | 122 | #define WLAN_HAL_ROAM_SCAN_MAX_PROBE_SIZE 450 |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 123 | /* 80 is actually NUM_RF_CHANNELS_V2, but beyond V2, this number will be ignored by FW */ |
Varun Reddy Yeturu | 94d94c1 | 2014-02-06 11:12:56 -0800 | [diff] [blame] | 124 | #define WLAN_HAL_ROAM_SCAN_MAX_CHANNELS 80 |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 125 | #define WLAN_HAL_ROAM_SACN_PMK_SIZE 32 |
Sreelakshmi Konamki | 24ebdca | 2017-05-29 15:48:36 +0530 | [diff] [blame] | 126 | #define WLAN_HAL_ROAM_SCAN_RESERVED_BYTES 19 |
Yue Ma | ab3ccfc | 2013-08-14 17:19:08 -0700 | [diff] [blame] | 127 | |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 128 | #define WLAN_HAL_EXT_SCAN_MAX_CHANNELS 16 |
| 129 | #define WLAN_HAL_EXT_SCAN_MAX_BUCKETS 16 |
| 130 | #define WLAN_HAL_EXT_SCAN_MAX_HOTLIST_APS 128 |
Padma, Santhosh Kumar | 208ca41 | 2015-09-10 20:47:34 +0530 | [diff] [blame] | 131 | #define WLAN_HAL_EXT_SCAN_MAX_HOTLIST_SSIDS 8 |
Padma, Santhosh Kumar | 9acee01 | 2015-08-21 19:58:01 +0530 | [diff] [blame] | 132 | |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 133 | #define WLAN_HAL_EXT_SCAN_MAX_RSSI_SAMPLE_SIZE 8 |
| 134 | |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 135 | /* For Logging enhancement feature currently max 2 address will be passed */ |
| 136 | /* In future we may pass 3 address and length in suspend mode corner case */ |
| 137 | #define MAX_NUM_OF_BUFFER 3 |
| 138 | |
| 139 | /* Log types */ |
| 140 | typedef enum |
| 141 | { |
| 142 | MGMT_FRAME_LOGS = 0, |
| 143 | QXDM_LOGGING = 1, |
Sachin Ahuja | c08f72a | 2015-09-22 15:25:47 +0530 | [diff] [blame] | 144 | FW_MEMORY_DUMP = 2, |
| 145 | FATAL_EVENT = 3 |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 146 | }tHalFrameLoggingType; |
| 147 | |
| 148 | /* Log size */ |
| 149 | typedef enum |
| 150 | { |
| 151 | LOG_SIZE_4K = 0, |
| 152 | LOG_SIZE_8K = 1, |
| 153 | LOG_SIZE_12K = 2, |
| 154 | LOG_SIZE_16K = 3, |
| 155 | LOG_SIZE_32K = 4, |
| 156 | LOG_SIZE_64K = 5, |
| 157 | LOG_SIZE_96K = 6 |
| 158 | }tHalLogBuffSize; |
| 159 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 160 | /* Message types for messages exchanged between WDI and HAL */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 161 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 162 | { |
| 163 | //Init/De-Init |
| 164 | WLAN_HAL_START_REQ = 0, |
| 165 | WLAN_HAL_START_RSP = 1, |
| 166 | WLAN_HAL_STOP_REQ = 2, |
| 167 | WLAN_HAL_STOP_RSP = 3, |
| 168 | |
| 169 | //Scan |
| 170 | WLAN_HAL_INIT_SCAN_REQ = 4, |
| 171 | WLAN_HAL_INIT_SCAN_RSP = 5, |
| 172 | WLAN_HAL_START_SCAN_REQ = 6, |
| 173 | WLAN_HAL_START_SCAN_RSP = 7 , |
| 174 | WLAN_HAL_END_SCAN_REQ = 8, |
| 175 | WLAN_HAL_END_SCAN_RSP = 9, |
| 176 | WLAN_HAL_FINISH_SCAN_REQ = 10, |
| 177 | WLAN_HAL_FINISH_SCAN_RSP = 11, |
| 178 | |
| 179 | // HW STA configuration/deconfiguration |
| 180 | WLAN_HAL_CONFIG_STA_REQ = 12, |
| 181 | WLAN_HAL_CONFIG_STA_RSP = 13, |
| 182 | WLAN_HAL_DELETE_STA_REQ = 14, |
| 183 | WLAN_HAL_DELETE_STA_RSP = 15, |
| 184 | WLAN_HAL_CONFIG_BSS_REQ = 16, |
| 185 | WLAN_HAL_CONFIG_BSS_RSP = 17, |
| 186 | WLAN_HAL_DELETE_BSS_REQ = 18, |
| 187 | WLAN_HAL_DELETE_BSS_RSP = 19, |
| 188 | |
| 189 | //Infra STA asscoiation |
| 190 | WLAN_HAL_JOIN_REQ = 20, |
| 191 | WLAN_HAL_JOIN_RSP = 21, |
| 192 | WLAN_HAL_POST_ASSOC_REQ = 22, |
| 193 | WLAN_HAL_POST_ASSOC_RSP = 23, |
| 194 | |
| 195 | //Security |
| 196 | WLAN_HAL_SET_BSSKEY_REQ = 24, |
| 197 | WLAN_HAL_SET_BSSKEY_RSP = 25, |
| 198 | WLAN_HAL_SET_STAKEY_REQ = 26, |
| 199 | WLAN_HAL_SET_STAKEY_RSP = 27, |
| 200 | WLAN_HAL_RMV_BSSKEY_REQ = 28, |
| 201 | WLAN_HAL_RMV_BSSKEY_RSP = 29, |
| 202 | WLAN_HAL_RMV_STAKEY_REQ = 30, |
| 203 | WLAN_HAL_RMV_STAKEY_RSP = 31, |
| 204 | |
| 205 | //Qos Related |
| 206 | WLAN_HAL_ADD_TS_REQ = 32, |
| 207 | WLAN_HAL_ADD_TS_RSP = 33, |
| 208 | WLAN_HAL_DEL_TS_REQ = 34, |
| 209 | WLAN_HAL_DEL_TS_RSP = 35, |
| 210 | WLAN_HAL_UPD_EDCA_PARAMS_REQ = 36, |
| 211 | WLAN_HAL_UPD_EDCA_PARAMS_RSP = 37, |
| 212 | WLAN_HAL_ADD_BA_REQ = 38, |
| 213 | WLAN_HAL_ADD_BA_RSP = 39, |
| 214 | WLAN_HAL_DEL_BA_REQ = 40, |
| 215 | WLAN_HAL_DEL_BA_RSP = 41, |
| 216 | |
| 217 | WLAN_HAL_CH_SWITCH_REQ = 42, |
| 218 | WLAN_HAL_CH_SWITCH_RSP = 43, |
| 219 | WLAN_HAL_SET_LINK_ST_REQ = 44, |
| 220 | WLAN_HAL_SET_LINK_ST_RSP = 45, |
| 221 | WLAN_HAL_GET_STATS_REQ = 46, |
| 222 | WLAN_HAL_GET_STATS_RSP = 47, |
| 223 | WLAN_HAL_UPDATE_CFG_REQ = 48, |
| 224 | WLAN_HAL_UPDATE_CFG_RSP = 49, |
| 225 | |
| 226 | WLAN_HAL_MISSED_BEACON_IND = 50, |
| 227 | WLAN_HAL_UNKNOWN_ADDR2_FRAME_RX_IND = 51, |
| 228 | WLAN_HAL_MIC_FAILURE_IND = 52, |
| 229 | WLAN_HAL_FATAL_ERROR_IND = 53, |
| 230 | WLAN_HAL_SET_KEYDONE_MSG = 54, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 231 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 232 | //NV Interface |
| 233 | WLAN_HAL_DOWNLOAD_NV_REQ = 55, |
| 234 | WLAN_HAL_DOWNLOAD_NV_RSP = 56, |
| 235 | |
| 236 | WLAN_HAL_ADD_BA_SESSION_REQ = 57, |
| 237 | WLAN_HAL_ADD_BA_SESSION_RSP = 58, |
| 238 | WLAN_HAL_TRIGGER_BA_REQ = 59, |
| 239 | WLAN_HAL_TRIGGER_BA_RSP = 60, |
| 240 | WLAN_HAL_UPDATE_BEACON_REQ = 61, |
| 241 | WLAN_HAL_UPDATE_BEACON_RSP = 62, |
| 242 | WLAN_HAL_SEND_BEACON_REQ = 63, |
| 243 | WLAN_HAL_SEND_BEACON_RSP = 64, |
| 244 | |
| 245 | WLAN_HAL_SET_BCASTKEY_REQ = 65, |
| 246 | WLAN_HAL_SET_BCASTKEY_RSP = 66, |
| 247 | WLAN_HAL_DELETE_STA_CONTEXT_IND = 67, |
| 248 | WLAN_HAL_UPDATE_PROBE_RSP_TEMPLATE_REQ = 68, |
| 249 | WLAN_HAL_UPDATE_PROBE_RSP_TEMPLATE_RSP = 69, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 250 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 251 | // PTT interface support |
| 252 | WLAN_HAL_PROCESS_PTT_REQ = 70, |
| 253 | WLAN_HAL_PROCESS_PTT_RSP = 71, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 254 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 255 | // BTAMP related events |
| 256 | WLAN_HAL_SIGNAL_BTAMP_EVENT_REQ = 72, |
| 257 | WLAN_HAL_SIGNAL_BTAMP_EVENT_RSP = 73, |
| 258 | WLAN_HAL_TL_HAL_FLUSH_AC_REQ = 74, |
| 259 | WLAN_HAL_TL_HAL_FLUSH_AC_RSP = 75, |
| 260 | |
| 261 | WLAN_HAL_ENTER_IMPS_REQ = 76, |
| 262 | WLAN_HAL_EXIT_IMPS_REQ = 77, |
| 263 | WLAN_HAL_ENTER_BMPS_REQ = 78, |
| 264 | WLAN_HAL_EXIT_BMPS_REQ = 79, |
| 265 | WLAN_HAL_ENTER_UAPSD_REQ = 80, |
| 266 | WLAN_HAL_EXIT_UAPSD_REQ = 81, |
| 267 | WLAN_HAL_UPDATE_UAPSD_PARAM_REQ = 82, |
| 268 | WLAN_HAL_CONFIGURE_RXP_FILTER_REQ = 83, |
| 269 | WLAN_HAL_ADD_BCN_FILTER_REQ = 84, |
| 270 | WLAN_HAL_REM_BCN_FILTER_REQ = 85, |
| 271 | WLAN_HAL_ADD_WOWL_BCAST_PTRN = 86, |
| 272 | WLAN_HAL_DEL_WOWL_BCAST_PTRN = 87, |
| 273 | WLAN_HAL_ENTER_WOWL_REQ = 88, |
| 274 | WLAN_HAL_EXIT_WOWL_REQ = 89, |
| 275 | WLAN_HAL_HOST_OFFLOAD_REQ = 90, |
| 276 | WLAN_HAL_SET_RSSI_THRESH_REQ = 91, |
| 277 | WLAN_HAL_GET_RSSI_REQ = 92, |
| 278 | WLAN_HAL_SET_UAPSD_AC_PARAMS_REQ = 93, |
| 279 | WLAN_HAL_CONFIGURE_APPS_CPU_WAKEUP_STATE_REQ = 94, |
| 280 | |
| 281 | WLAN_HAL_ENTER_IMPS_RSP = 95, |
| 282 | WLAN_HAL_EXIT_IMPS_RSP = 96, |
| 283 | WLAN_HAL_ENTER_BMPS_RSP = 97, |
| 284 | WLAN_HAL_EXIT_BMPS_RSP = 98, |
| 285 | WLAN_HAL_ENTER_UAPSD_RSP = 99, |
| 286 | WLAN_HAL_EXIT_UAPSD_RSP = 100, |
| 287 | WLAN_HAL_SET_UAPSD_AC_PARAMS_RSP = 101, |
| 288 | WLAN_HAL_UPDATE_UAPSD_PARAM_RSP = 102, |
| 289 | WLAN_HAL_CONFIGURE_RXP_FILTER_RSP = 103, |
| 290 | WLAN_HAL_ADD_BCN_FILTER_RSP = 104, |
| 291 | WLAN_HAL_REM_BCN_FILTER_RSP = 105, |
| 292 | WLAN_HAL_SET_RSSI_THRESH_RSP = 106, |
| 293 | WLAN_HAL_HOST_OFFLOAD_RSP = 107, |
| 294 | WLAN_HAL_ADD_WOWL_BCAST_PTRN_RSP = 108, |
| 295 | WLAN_HAL_DEL_WOWL_BCAST_PTRN_RSP = 109, |
| 296 | WLAN_HAL_ENTER_WOWL_RSP = 110, |
| 297 | WLAN_HAL_EXIT_WOWL_RSP = 111, |
| 298 | WLAN_HAL_RSSI_NOTIFICATION_IND = 112, |
| 299 | WLAN_HAL_GET_RSSI_RSP = 113, |
| 300 | WLAN_HAL_CONFIGURE_APPS_CPU_WAKEUP_STATE_RSP = 114, |
| 301 | |
| 302 | //11k related events |
| 303 | WLAN_HAL_SET_MAX_TX_POWER_REQ = 115, |
| 304 | WLAN_HAL_SET_MAX_TX_POWER_RSP = 116, |
| 305 | |
| 306 | //11R related msgs |
| 307 | WLAN_HAL_AGGR_ADD_TS_REQ = 117, |
| 308 | WLAN_HAL_AGGR_ADD_TS_RSP = 118, |
| 309 | |
| 310 | //P2P WLAN_FEATURE_P2P |
| 311 | WLAN_HAL_SET_P2P_GONOA_REQ = 119, |
| 312 | WLAN_HAL_SET_P2P_GONOA_RSP = 120, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 313 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 314 | //WLAN Dump commands |
| 315 | WLAN_HAL_DUMP_COMMAND_REQ = 121, |
| 316 | WLAN_HAL_DUMP_COMMAND_RSP = 122, |
| 317 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 318 | //OEM_DATA FEATURE SUPPORT |
| 319 | WLAN_HAL_START_OEM_DATA_REQ = 123, |
| 320 | WLAN_HAL_START_OEM_DATA_RSP = 124, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 321 | |
| 322 | //ADD SELF STA REQ and RSP |
| 323 | WLAN_HAL_ADD_STA_SELF_REQ = 125, |
| 324 | WLAN_HAL_ADD_STA_SELF_RSP = 126, |
| 325 | |
| 326 | //DEL SELF STA SUPPORT |
| 327 | WLAN_HAL_DEL_STA_SELF_REQ = 127, |
| 328 | WLAN_HAL_DEL_STA_SELF_RSP = 128, |
| 329 | |
| 330 | // Coex Indication |
| 331 | WLAN_HAL_COEX_IND = 129, |
| 332 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 333 | // Tx Complete Indication |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 334 | WLAN_HAL_OTA_TX_COMPL_IND = 130, |
| 335 | |
| 336 | //Host Suspend/resume messages |
| 337 | WLAN_HAL_HOST_SUSPEND_IND = 131, |
| 338 | WLAN_HAL_HOST_RESUME_REQ = 132, |
| 339 | WLAN_HAL_HOST_RESUME_RSP = 133, |
| 340 | |
| 341 | WLAN_HAL_SET_TX_POWER_REQ = 134, |
| 342 | WLAN_HAL_SET_TX_POWER_RSP = 135, |
| 343 | WLAN_HAL_GET_TX_POWER_REQ = 136, |
| 344 | WLAN_HAL_GET_TX_POWER_RSP = 137, |
| 345 | |
| 346 | WLAN_HAL_P2P_NOA_ATTR_IND = 138, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 347 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 348 | WLAN_HAL_ENABLE_RADAR_DETECT_REQ = 139, |
| 349 | WLAN_HAL_ENABLE_RADAR_DETECT_RSP = 140, |
| 350 | WLAN_HAL_GET_TPC_REPORT_REQ = 141, |
| 351 | WLAN_HAL_GET_TPC_REPORT_RSP = 142, |
| 352 | WLAN_HAL_RADAR_DETECT_IND = 143, |
| 353 | WLAN_HAL_RADAR_DETECT_INTR_IND = 144, |
| 354 | WLAN_HAL_KEEP_ALIVE_REQ = 145, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 355 | WLAN_HAL_KEEP_ALIVE_RSP = 146, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 356 | |
| 357 | /*PNO messages*/ |
| 358 | WLAN_HAL_SET_PREF_NETWORK_REQ = 147, |
| 359 | WLAN_HAL_SET_PREF_NETWORK_RSP = 148, |
| 360 | WLAN_HAL_SET_RSSI_FILTER_REQ = 149, |
| 361 | WLAN_HAL_SET_RSSI_FILTER_RSP = 150, |
| 362 | WLAN_HAL_UPDATE_SCAN_PARAM_REQ = 151, |
| 363 | WLAN_HAL_UPDATE_SCAN_PARAM_RSP = 152, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 364 | WLAN_HAL_PREF_NETW_FOUND_IND = 153, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 365 | |
| 366 | WLAN_HAL_SET_TX_PER_TRACKING_REQ = 154, |
| 367 | WLAN_HAL_SET_TX_PER_TRACKING_RSP = 155, |
| 368 | WLAN_HAL_TX_PER_HIT_IND = 156, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 369 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 370 | WLAN_HAL_8023_MULTICAST_LIST_REQ = 157, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 371 | WLAN_HAL_8023_MULTICAST_LIST_RSP = 158, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 372 | |
| 373 | WLAN_HAL_SET_PACKET_FILTER_REQ = 159, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 374 | WLAN_HAL_SET_PACKET_FILTER_RSP = 160, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 375 | WLAN_HAL_PACKET_FILTER_MATCH_COUNT_REQ = 161, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 376 | WLAN_HAL_PACKET_FILTER_MATCH_COUNT_RSP = 162, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 377 | WLAN_HAL_CLEAR_PACKET_FILTER_REQ = 163, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 378 | WLAN_HAL_CLEAR_PACKET_FILTER_RSP = 164, |
| 379 | /*This is temp fix. Should be removed once |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 380 | * Host and Riva code is in sync*/ |
| 381 | WLAN_HAL_INIT_SCAN_CON_REQ = 165, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 382 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 383 | WLAN_HAL_SET_POWER_PARAMS_REQ = 166, |
| 384 | WLAN_HAL_SET_POWER_PARAMS_RSP = 167, |
| 385 | |
| 386 | WLAN_HAL_TSM_STATS_REQ = 168, |
| 387 | WLAN_HAL_TSM_STATS_RSP = 169, |
| 388 | |
| 389 | // wake reason indication (WOW) |
| 390 | WLAN_HAL_WAKE_REASON_IND = 170, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 391 | // GTK offload support |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 392 | WLAN_HAL_GTK_OFFLOAD_REQ = 171, |
| 393 | WLAN_HAL_GTK_OFFLOAD_RSP = 172, |
| 394 | WLAN_HAL_GTK_OFFLOAD_GETINFO_REQ = 173, |
| 395 | WLAN_HAL_GTK_OFFLOAD_GETINFO_RSP = 174, |
| 396 | |
| 397 | WLAN_HAL_FEATURE_CAPS_EXCHANGE_REQ = 175, |
| 398 | WLAN_HAL_FEATURE_CAPS_EXCHANGE_RSP = 176, |
| 399 | WLAN_HAL_EXCLUDE_UNENCRYPTED_IND = 177, |
| 400 | |
| 401 | WLAN_HAL_SET_THERMAL_MITIGATION_REQ = 178, |
| 402 | WLAN_HAL_SET_THERMAL_MITIGATION_RSP = 179, |
| 403 | |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 404 | WLAN_HAL_UPDATE_VHT_OP_MODE_REQ = 182, |
| 405 | WLAN_HAL_UPDATE_VHT_OP_MODE_RSP = 183, |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 406 | |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 407 | WLAN_HAL_P2P_NOA_START_IND = 184, |
| 408 | |
| 409 | WLAN_HAL_GET_ROAM_RSSI_REQ = 185, |
| 410 | WLAN_HAL_GET_ROAM_RSSI_RSP = 186, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 411 | |
Shailender Karmuchi | ebe0e61 | 2013-01-18 18:49:14 -0800 | [diff] [blame] | 412 | WLAN_HAL_CLASS_B_STATS_IND = 187, |
| 413 | WLAN_HAL_DEL_BA_IND = 188, |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 414 | WLAN_HAL_DHCP_START_IND = 189, |
| 415 | WLAN_HAL_DHCP_STOP_IND = 190, |
Varun Reddy Yeturu | 4a231fb | 2013-05-22 13:11:28 -0700 | [diff] [blame] | 416 | WLAN_ROAM_SCAN_OFFLOAD_REQ = 191, |
| 417 | WLAN_ROAM_SCAN_OFFLOAD_RSP = 192, |
Gopichand Nakkala | 175de4b | 2013-05-06 12:02:17 +0530 | [diff] [blame] | 418 | WLAN_HAL_WIFI_PROXIMITY_REQ = 193, |
| 419 | WLAN_HAL_WIFI_PROXIMITY_RSP = 194, |
Shailender Karmuchi | 07f514b | 2013-06-25 01:14:09 -0700 | [diff] [blame] | 420 | |
| 421 | WLAN_HAL_START_SPECULATIVE_PS_POLLS_REQ = 195, |
| 422 | WLAN_HAL_START_SPECULATIVE_PS_POLLS_RSP = 196, |
| 423 | WLAN_HAL_STOP_SPECULATIVE_PS_POLLS_IND = 197, |
| 424 | |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 425 | WLAN_HAL_TDLS_LINK_ESTABLISHED_REQ = 198, |
| 426 | WLAN_HAL_TDLS_LINK_ESTABLISHED_RSP = 199, |
| 427 | WLAN_HAL_TDLS_LINK_TEARDOWN_REQ = 200, |
| 428 | WLAN_HAL_TDLS_LINK_TEARDOWN_RSP = 201, |
| 429 | WLAN_HAL_TDLS_IND = 202, |
Ravi Joshi | 9e8e7cd | 2013-07-31 14:54:08 -0700 | [diff] [blame] | 430 | WLAN_HAL_IBSS_PEER_INACTIVITY_IND = 203, |
Leo Chang | 397deb7 | 2013-08-22 11:33:16 -0700 | [diff] [blame] | 431 | |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 432 | /* Scan Offload APIs */ |
| 433 | WLAN_HAL_START_SCAN_OFFLOAD_REQ = 204, |
| 434 | WLAN_HAL_START_SCAN_OFFLOAD_RSP = 205, |
| 435 | WLAN_HAL_STOP_SCAN_OFFLOAD_REQ = 206, |
| 436 | WLAN_HAL_STOP_SCAN_OFFLOAD_RSP = 207, |
| 437 | WLAN_HAL_UPDATE_CHANNEL_LIST_REQ = 208, |
| 438 | WLAN_HAL_UPDATE_CHANNEL_LIST_RSP = 209, |
| 439 | WLAN_HAL_OFFLOAD_SCAN_EVENT_IND = 210, |
| 440 | |
Leo Chang | 397deb7 | 2013-08-22 11:33:16 -0700 | [diff] [blame] | 441 | /* APIs to offload TCP/UDP Heartbeat handshakes */ |
| 442 | WLAN_HAL_LPHB_CFG_REQ = 211, |
| 443 | WLAN_HAL_LPHB_CFG_RSP = 212, |
| 444 | WLAN_HAL_LPHB_IND = 213, |
| 445 | |
Yue Ma | ab3ccfc | 2013-08-14 17:19:08 -0700 | [diff] [blame] | 446 | WLAN_HAL_ADD_PERIODIC_TX_PTRN_IND = 214, |
| 447 | WLAN_HAL_DEL_PERIODIC_TX_PTRN_IND = 215, |
| 448 | WLAN_HAL_PERIODIC_TX_PTRN_FW_IND = 216, |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 449 | |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 450 | // Events to set Per-Band Tx Power Limit |
| 451 | WLAN_HAL_SET_MAX_TX_POWER_PER_BAND_REQ = 217, |
| 452 | WLAN_HAL_SET_MAX_TX_POWER_PER_BAND_RSP = 218, |
| 453 | |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 454 | WLAN_HAL_RMC_RULER_REQ = 219, |
| 455 | WLAN_HAL_RMC_RULER_RSP = 220, |
| 456 | WLAN_HAL_RMC_UPDATE_IND = 221, |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 457 | |
krunal soni | 2a4728d | 2013-09-20 21:56:50 -0700 | [diff] [blame] | 458 | /* Batchscan */ |
| 459 | WLAN_HAL_BATCHSCAN_SET_REQ = 222, |
| 460 | WLAN_HAL_BATCHSCAN_SET_RSP = 223, |
| 461 | WLAN_HAL_BATCHSCAN_TRIGGER_RESULT_IND = 224, |
| 462 | WLAN_HAL_BATCHSCAN_RESULT_IND = 225, |
| 463 | WLAN_HAL_BATCHSCAN_STOP_IND = 226, |
| 464 | |
| 465 | WLAN_HAL_GET_IBSS_PEER_INFO_REQ = 227, |
| 466 | WLAN_HAL_GET_IBSS_PEER_INFO_RSP = 228, |
| 467 | |
Chittajit Mitra | f5413a4 | 2013-10-18 14:20:08 -0700 | [diff] [blame] | 468 | WLAN_HAL_RATE_UPDATE_IND = 229, |
| 469 | |
AnjaneeDevi Kapparapu | 1fe854a | 2013-12-27 17:06:41 +0530 | [diff] [blame] | 470 | /* Tx Fail for weak link notification */ |
| 471 | WLAN_HAL_TX_FAIL_MONITOR_IND = 230, |
| 472 | WLAN_HAL_TX_FAIL_IND = 231, |
| 473 | |
| 474 | /* Multi-hop IP routing offload */ |
| 475 | WLAN_HAL_IP_FORWARD_TABLE_UPDATE_IND = 232, |
| 476 | |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 477 | /* Channel avoidance for LTE Coex */ |
AnjaneeDevi Kapparapu | 1fe854a | 2013-12-27 17:06:41 +0530 | [diff] [blame] | 478 | WLAN_HAL_AVOID_FREQ_RANGE_IND = 233, |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 479 | |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 480 | /* Fast Roam Offload Synchup request protocol */ |
| 481 | /* TODO_LFR3 : change this value accordingly before final check-in */ |
| 482 | WLAN_HAL_ROAM_OFFLOAD_SYNCH_IND = 234, |
| 483 | WLAN_HAL_ROAM_OFFLOAD_SYNCH_CNF = 235, |
| 484 | |
| 485 | WLAN_HAL_MOTION_START_EVENT_REQ = 250, |
| 486 | WLAN_HAL_MOTION_STOP_EVENT_REQ = 251, |
| 487 | |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 488 | /* Channel Switch Request version 1 */ |
| 489 | WLAN_HAL_CH_SWITCH_V1_REQ = 252, |
| 490 | WLAN_HAL_CH_SWITCH_V1_RSP = 253, |
| 491 | |
Sandeep Puligilla | 77bf84e | 2014-01-31 20:49:07 +0530 | [diff] [blame] | 492 | /* 2G4 HT40 OBSS scan */ |
| 493 | WLAN_HAL_START_HT40_OBSS_SCAN_IND = 254, |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 494 | WLAN_HAL_STOP_HT40_OBSS_SCAN_IND = 255,/* next free entry in tHalHostMsgType. */ |
| 495 | |
| 496 | /* WLAN NAN Messages */ |
| 497 | WLAN_HAL_NAN_FIRST = 256, |
| 498 | WLAN_HAL_NAN_REQ = WLAN_HAL_NAN_FIRST, |
| 499 | WLAN_HAL_NAN_RSP = 257, |
| 500 | WLAN_HAL_NAN_EVT = 258, |
| 501 | WLAN_HAL_NAN_LAST = WLAN_HAL_NAN_EVT, |
c_hpothu | 80c3047 | 2014-04-14 19:04:48 +0530 | [diff] [blame] | 502 | WLAN_HAL_PRINT_REG_INFO_IND = 259, |
| 503 | |
c_hpothu | a047e57 | 2014-05-01 15:03:11 +0530 | [diff] [blame] | 504 | WLAN_HAL_GET_BCN_MISS_RATE_REQ = 260, |
| 505 | WLAN_HAL_GET_BCN_MISS_RATE_RSP = 261, |
| 506 | |
Sunil Dutt | 8377a38 | 2014-05-26 21:18:04 +0530 | [diff] [blame] | 507 | /* WLAN LINK LAYER STATS Messages */ |
| 508 | WLAN_HAL_LL_SET_STATS_REQ = 262, |
| 509 | WLAN_HAL_LL_SET_STATS_RSP = 263, |
| 510 | WLAN_HAL_LL_GET_STATS_REQ = 264, |
| 511 | WLAN_HAL_LL_GET_STATS_RSP = 265, |
| 512 | WLAN_HAL_LL_CLEAR_STATS_REQ = 266, |
| 513 | WLAN_HAL_LL_CLEAR_STATS_RSP = 267, |
| 514 | WLAN_HAL_LL_NOTIFY_STATS = 268, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 515 | WLAN_HAL_LL_LAST = WLAN_HAL_LL_NOTIFY_STATS, |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 516 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 517 | /* WLAN EXT_SCAN Messages */ |
| 518 | WLAN_HAL_EXT_SCAN_START_REQ = 269, |
| 519 | WLAN_HAL_EXT_SCAN_START_RSP = 270, |
| 520 | WLAN_HAL_EXT_SCAN_GET_CAP_REQ = 271, |
| 521 | WLAN_HAL_EXT_SCAN_GET_CAP_RSP = 272, |
| 522 | WLAN_HAL_EXT_SCAN_STOP_REQ = 273, |
| 523 | WLAN_HAL_EXT_SCAN_STOP_RSP = 274, |
| 524 | WLAN_HAL_EXT_SCAN_GET_SCAN_REQ = 275, |
| 525 | WLAN_HAL_EXT_SCAN_GET_SCAN_RSP = 276, |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 526 | |
| 527 | WLAN_HAL_BSSID_HOTLIST_SET_REQ = 277, |
| 528 | WLAN_HAL_BSSID_HOTLIST_SET_RSP = 278, |
| 529 | WLAN_HAL_BSSID_HOTLIST_RESET_REQ = 279, |
| 530 | WLAN_HAL_BSSID_HOTLIST_RESET_RSP = 280, |
| 531 | |
| 532 | WLAN_HAL_SIG_RSSI_SET_REQ = 281, |
| 533 | WLAN_HAL_SIG_RSSI_SET_RSP = 282, |
| 534 | WLAN_HAL_SIG_RSSI_RESET_REQ = 283, |
| 535 | WLAN_HAL_SIG_RSSI_RESET_RSP = 284, |
| 536 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 537 | WLAN_HAL_EXT_SCAN_RESULT_IND = 285, |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 538 | WLAN_HAL_BSSID_HOTLIST_RESULT_IND = 286, |
| 539 | WLAN_HAL_SIG_RSSI_RESULT_IND = 287, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 540 | WLAN_HAL_EXT_SCAN_PROGRESS_IND = 288, |
| 541 | WLAN_HAL_EXT_SCAN_RESULT_AVAILABLE_IND = 289, |
Atul Mittal | 53419ed | 2014-08-03 19:41:23 +0530 | [diff] [blame] | 542 | WLAN_HAL_TDLS_CHAN_SWITCH_REQ = 290, |
| 543 | WLAN_HAL_TDLS_CHAN_SWITCH_RSP = 291, |
Siddharth Bhal | bd5efd7 | 2014-09-29 21:21:56 +0530 | [diff] [blame] | 544 | WLAN_HAL_MAC_SPOOFED_SCAN_REQ = 292, |
| 545 | WLAN_HAL_MAC_SPOOFED_SCAN_RSP = 293, |
Srinivas Dasari | 4258463 | 2014-11-26 20:37:19 +0530 | [diff] [blame] | 546 | /* LGE DISA encrypt-decrypt Messages */ |
| 547 | WLAN_HAL_ENCRYPT_DATA_REQ = 294, |
| 548 | WLAN_HAL_ENCRYPT_DATA_RSP = 295, |
Sunil Dutt | 8377a38 | 2014-05-26 21:18:04 +0530 | [diff] [blame] | 549 | |
Abhishek Singh | 725c158 | 2014-11-24 11:47:48 +0530 | [diff] [blame] | 550 | WLAN_HAL_FW_STATS_REQ = 296, |
| 551 | WLAN_HAL_FW_STATS_RSP = 297, |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 552 | WLAN_HAL_FW_LOGGING_INIT_REQ = 298, |
| 553 | WLAN_HAL_FW_LOGGING_INIT_RSP = 299, |
Siddharth Bhal | e8bfd5f | 2015-03-04 14:51:13 +0530 | [diff] [blame] | 554 | WLAN_HAL_GET_FRAME_LOG_REQ = 300, |
| 555 | WLAN_HAL_GET_FRAME_LOG_RSP = 301, |
Abhishek Singh | 725c158 | 2014-11-24 11:47:48 +0530 | [diff] [blame] | 556 | |
Abhishek Singh | bc31088 | 2015-05-22 15:17:02 +0530 | [diff] [blame] | 557 | /* Monitor Mode */ |
| 558 | WLAN_HAL_ENABLE_MONITOR_MODE_REQ = 302, |
| 559 | WLAN_HAL_ENABLE_MONITOR_MODE_RSP = 303, |
| 560 | |
| 561 | WLAN_HAL_DISABLE_MONITOR_MODE_REQ = 304, |
| 562 | WLAN_HAL_DISABLE_MONITOR_MODE_RSP = 305, |
Katya Nigam | f0511f6 | 2015-05-05 16:40:57 +0530 | [diff] [blame] | 563 | |
Abhishek Singh | bc31088 | 2015-05-22 15:17:02 +0530 | [diff] [blame] | 564 | WLAN_HAL_SET_RTS_CTS_HTVHT_IND = 306, |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 565 | // FW Logging |
| 566 | WLAN_HAL_FATAL_EVENT_LOGGING_REQ = 307, |
| 567 | WLAN_HAL_FATAL_EVENT_LOGGING_RSP = 308, |
| 568 | WLAN_HAL_FW_MEMORY_DUMP_REQ = 309, |
| 569 | WLAN_HAL_FW_MEMORY_DUMP_RSP = 310, |
| 570 | WLAN_HAL_FW_LOGGING_DXE_DONE_IND = 311, |
Sachin Ahuja | 75c1fd7 | 2015-08-28 15:46:46 +0530 | [diff] [blame] | 571 | WLAN_HAL_LOST_LINK_PARAMETERS_IND = 312, |
Mahesh A Saptasagar | 94c7cd4 | 2015-09-08 13:19:14 +0530 | [diff] [blame] | 572 | WLAN_HAL_SEND_FREQ_RANGE_CONTROL_IND = 313, |
Padma, Santhosh Kumar | 208ca41 | 2015-09-10 20:47:34 +0530 | [diff] [blame] | 573 | |
| 574 | WLAN_HAL_SSID_HOTLIST_SET_REQ = 314, |
| 575 | WLAN_HAL_SSID_HOTLIST_SET_RSP = 315, |
| 576 | WLAN_HAL_SSID_HOTLIST_RESET_REQ = 316, |
| 577 | WLAN_HAL_SSID_HOTLIST_RESET_RSP = 317, |
| 578 | |
| 579 | WLAN_HAL_SSID_HOTLIST_RESULT_IND = 318, |
| 580 | |
Padma, Santhosh Kumar | fa6659a | 2015-09-10 17:47:16 +0530 | [diff] [blame] | 581 | /* WFD Session Information to start/stop Scan */ |
| 582 | WLAN_HAL_HIGH_PRIORITY_DATA_INFO_REQ = 319, |
| 583 | |
Gupta, Kapil | 042e9fb | 2015-09-30 13:34:22 +0530 | [diff] [blame] | 584 | WLAN_HAL_START_RSSI_MONITORING_REQ = 321, |
| 585 | WLAN_HAL_START_RSSI_MONITORING_RSP = 322, |
| 586 | WLAN_HAL_RSSI_MONITORING_IND = 323, |
| 587 | WLAN_HAL_STOP_RSSI_MONITORING_REQ = 324, |
| 588 | WLAN_HAL_STOP_RSSI_MONITORING_RSP = 325, |
| 589 | |
Padma, Santhosh Kumar | 002b9e2 | 2015-10-20 17:39:57 +0530 | [diff] [blame] | 590 | //RTT3 SUPPORT |
| 591 | WLAN_HAL_START_OEM_DATA_REQ_IND_NEW = 326, |
| 592 | WLAN_HAL_START_OEM_DATA_RSP_IND_NEW = 327, |
| 593 | |
Arun Khandavalli | afc1643 | 2015-10-16 20:11:31 +0530 | [diff] [blame] | 594 | WLAN_HAL_WIFI_CONFIG_SET_PARAMS_REQ = 328, |
| 595 | WLAN_HAL_WIFI_CONFIG_SET_PARAMS_RSP = 329, |
| 596 | |
Mahesh A Saptasagar | f5ebe41 | 2015-12-18 19:01:44 +0530 | [diff] [blame] | 597 | WLAN_HAL_ANTENNA_DIVERSITY_SELECTION_REQ = 330, |
| 598 | WLAN_HAL_ANTENNA_DIVERSITY_SELECTION_RSP = 331, |
Mahesh A Saptasagar | bdad5eb | 2016-02-04 19:25:25 +0530 | [diff] [blame] | 599 | WLAN_HAL_MODIFY_ROAM_PARAMS_IND = 332, |
Selvaraj, Sridhar | 6c0eb3f | 2016-04-06 12:42:04 +0530 | [diff] [blame] | 600 | WLAN_HAL_SET_ALLOWED_ACTION_FRAMES_IND = 333, |
| 601 | |
Kapil Gupta | c104363 | 2016-06-25 00:23:30 +0530 | [diff] [blame] | 602 | /* PER based roaming support */ |
| 603 | WLAN_HAL_SET_PER_ROAM_CONFIG_REQ = 334, |
| 604 | WLAN_HAL_SET_PER_ROAM_CONFIG_RSP = 335, |
| 605 | WLAN_HAL_PER_ROAM_SCAN_TRIGGER_REQ = 336, |
| 606 | WLAN_HAL_PER_ROAM_SCAN_TRIGGER_RSP = 337, |
Anurag Chouhan | 9b3383a | 2016-12-13 22:29:55 +0530 | [diff] [blame] | 607 | |
| 608 | WLAN_HAL_DHCP_SERVER_OFFLOAD_REQ = 339, |
| 609 | WLAN_HAL_DHCP_SERVER_OFFLOAD_RSP = 340, |
Agrawal Ashish | c6aa013 | 2016-12-09 15:59:29 +0530 | [diff] [blame] | 610 | WLAN_HAL_SAP_AUTH_OFFLOAD_IND = 341, |
Anurag Chouhan | 9c3ddc7 | 2016-12-16 13:12:13 +0530 | [diff] [blame] | 611 | WLAN_HAL_MDNS_ENABLE_OFFLOAD_REQ = 342, |
| 612 | WLAN_HAL_MDNS_ENABLE_OFFLOAD_RSP = 343, |
| 613 | WLAN_HAL_MDNS_FQDN_OFFLOAD_REQ = 344, |
| 614 | WLAN_HAL_MDNS_FQDN_OFFLOAD_RSP = 345, |
| 615 | WLAN_HAL_MDNS_RESP_OFFLOAD_REQ = 346, |
| 616 | WLAN_HAL_MDNS_RESP_OFFLOAD_RSP = 347, |
| 617 | WLAN_HAL_MDNS_STATS_OFFLOAD_REQ = 348, |
| 618 | WLAN_HAL_MDNS_STATS_OFFLOAD_RSP = 349, |
Anurag Chouhan | 9b3383a | 2016-12-13 22:29:55 +0530 | [diff] [blame] | 619 | |
Kapil Gupta | e667f95 | 2016-12-20 18:23:27 +0530 | [diff] [blame] | 620 | /* QRF Support */ |
| 621 | WLAN_HAL_QRF_AP_FIND_COMMAND = 350, |
| 622 | WLAN_HAL_QRF_PREF_NETW_FOUND_IND = 351, |
Manjeet Singh | 4dedb50 | 2017-01-17 11:46:35 +0530 | [diff] [blame] | 623 | WLAN_HAL_CAPTURE_GET_TSF_TSTAMP = 352, |
| 624 | WLAN_HAL_CAPTURE_GET_TSF_TSTAMP_RSP = 353, |
Anurag Chouhan | ce0f082 | 2017-01-24 15:44:26 +0530 | [diff] [blame] | 625 | /* ARP DEBUG stats*/ |
| 626 | WLAN_HAL_FW_SET_CLEAR_ARP_STATS_REQ = 354, |
| 627 | WLAN_HAL_FW_SET_CLEAR_ARP_STATS_RSP = 355, |
| 628 | WLAN_HAL_FW_GET_ARP_STATS_REQ = 356, |
| 629 | WLAN_HAL_FW_GET_ARP_STATS_RSP = 357, |
Kapil Gupta | e667f95 | 2016-12-20 18:23:27 +0530 | [diff] [blame] | 630 | |
Sourav Mohapatra | 3629ecf | 2018-02-12 10:24:28 +0530 | [diff] [blame] | 631 | WLAN_HAL_POWER_CONTROL_MODE_CHANGE_REQ = 358, |
| 632 | WLAN_HAL_POWER_CONTROL_MODE_CHANGE_RSP = 359, |
| 633 | |
Sourav Mohapatra | 72c2c34 | 2018-03-05 19:49:05 +0530 | [diff] [blame] | 634 | WLAN_HAL_VOWIFI_IND = 360, |
Ashish Kumar Dhanotiya | c4c5384 | 2018-04-10 18:24:33 +0530 | [diff] [blame] | 635 | WLAN_HAL_QPOWER_ENABLE_BY_HOST_IND = 361, |
Sourav Mohapatra | 72c2c34 | 2018-03-05 19:49:05 +0530 | [diff] [blame] | 636 | |
Sunil Dutt | 8377a38 | 2014-05-26 21:18:04 +0530 | [diff] [blame] | 637 | WLAN_HAL_MSG_MAX = WLAN_HAL_MSG_TYPE_MAX_ENUM_SIZE |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 638 | }tHalHostMsgType; |
| 639 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 640 | /* Enumeration for Version */ |
| 641 | typedef enum |
| 642 | { |
| 643 | WLAN_HAL_MSG_VERSION0 = 0, |
| 644 | WLAN_HAL_MSG_VERSION1 = 1, |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 645 | WLAN_HAL_MSG_WCNSS_CTRL_VERSION = 0x7FFF, /*define as 2 bytes data*/ |
| 646 | WLAN_HAL_MSG_VERSION_MAX_FIELD = WLAN_HAL_MSG_WCNSS_CTRL_VERSION |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 647 | }tHalHostMsgVersion; |
| 648 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 649 | /* Enumeration for Boolean - False/True, On/Off */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 650 | typedef enum tagAniBoolean |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 651 | { |
| 652 | eANI_BOOLEAN_FALSE = 0, |
| 653 | eANI_BOOLEAN_TRUE, |
| 654 | eANI_BOOLEAN_OFF = 0, |
| 655 | eANI_BOOLEAN_ON = 1, |
| 656 | eANI_BOOLEAN_MAX_FIELD = 0x7FFFFFFF /* define as 4 bytes data */ |
| 657 | } eAniBoolean; |
| 658 | |
| 659 | typedef enum |
| 660 | { |
| 661 | eDRIVER_TYPE_PRODUCTION = 0, |
| 662 | eDRIVER_TYPE_MFG = 1, |
| 663 | eDRIVER_TYPE_DVT = 2, |
| 664 | eDRIVER_TYPE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 665 | } tDriverType; |
| 666 | |
| 667 | typedef enum |
| 668 | { |
| 669 | HAL_STOP_TYPE_SYS_RESET, |
| 670 | HAL_STOP_TYPE_SYS_DEEP_SLEEP, |
| 671 | HAL_STOP_TYPE_RF_KILL, |
| 672 | HAL_STOP_TYPE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 673 | }tHalStopType; |
| 674 | |
| 675 | typedef enum |
| 676 | { |
| 677 | eHAL_SYS_MODE_NORMAL, |
| 678 | eHAL_SYS_MODE_LEARN, |
| 679 | eHAL_SYS_MODE_SCAN, |
| 680 | eHAL_SYS_MODE_PROMISC, |
| 681 | eHAL_SYS_MODE_SUSPEND_LINK, |
Madan Mohan Koyyalamudi | d929711 | 2012-10-11 16:26:50 -0700 | [diff] [blame] | 682 | eHAL_SYS_MODE_ROAM_SCAN, |
| 683 | eHAL_SYS_MODE_ROAM_SUSPEND_LINK, |
bernal | 5e03921 | 2013-06-24 10:29:20 -0700 | [diff] [blame] | 684 | eHAL_SYS_MODE_OEM_DATA, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 685 | eHAL_SYS_MODE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 686 | } eHalSysMode; |
| 687 | |
| 688 | typedef enum |
| 689 | { |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 690 | eHAL_CHANNEL_SWITCH_SOURCE_SCAN, |
| 691 | eHAL_CHANNEL_SWITCH_SOURCE_LISTEN, |
| 692 | eHAL_CHANNEL_SWITCH_SOURCE_MCC, |
| 693 | eHAL_CHANNEL_SWITCH_SOURCE_CSA, |
| 694 | eHAL_CHANNEL_SWITCH_SOURCE_CONFIG_BSS, |
| 695 | eHAL_CHANNEL_SWITCH_SOURCE_CONFIG_STA, |
| 696 | eHAL_CHANNEL_SWITCH_SOURCE_JOIN_REQ, |
| 697 | eHAL_CHANNEL_SWITCH_SOURCE_INNAV, |
| 698 | eHAL_CHANNEL_SWITCH_SOURCE_WCA, |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 699 | eHAL_CHANNEL_SWITCH_SOURCE_MLME, |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 700 | eHAL_CHANNEL_SWITCH_SOURCE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 701 | } eHalChanSwitchSource; |
| 702 | |
| 703 | typedef enum |
| 704 | { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 705 | PHY_SINGLE_CHANNEL_CENTERED = 0, // 20MHz IF bandwidth centered on IF carrier |
| 706 | PHY_DOUBLE_CHANNEL_LOW_PRIMARY = 1, // 40MHz IF bandwidth with lower 20MHz supporting the primary channel |
| 707 | PHY_DOUBLE_CHANNEL_CENTERED = 2, // 40MHz IF bandwidth centered on IF carrier |
| 708 | PHY_DOUBLE_CHANNEL_HIGH_PRIMARY = 3, // 40MHz IF bandwidth with higher 20MHz supporting the primary channel |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 709 | #ifdef WLAN_FEATURE_11AC |
| 710 | PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_CENTERED = 4, //20/40MHZ offset LOW 40/80MHZ offset CENTERED |
| 711 | PHY_QUADRUPLE_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED = 5, //20/40MHZ offset CENTERED 40/80MHZ offset CENTERED |
| 712 | PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED = 6, //20/40MHZ offset HIGH 40/80MHZ offset CENTERED |
| 713 | PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_LOW = 7,//20/40MHZ offset LOW 40/80MHZ offset LOW |
| 714 | PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_LOW = 8, //20/40MHZ offset HIGH 40/80MHZ offset LOW |
| 715 | PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_HIGH = 9, //20/40MHZ offset LOW 40/80MHZ offset HIGH |
| 716 | PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_HIGH = 10,//20/40MHZ offset-HIGH 40/80MHZ offset HIGH |
| 717 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 718 | PHY_CHANNEL_BONDING_STATE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 719 | }ePhyChanBondState; |
| 720 | |
| 721 | // Spatial Multiplexing(SM) Power Save mode |
| 722 | typedef enum eSirMacHTMIMOPowerSaveState |
| 723 | { |
| 724 | eSIR_HT_MIMO_PS_STATIC = 0, // Static SM Power Save mode |
| 725 | eSIR_HT_MIMO_PS_DYNAMIC = 1, // Dynamic SM Power Save mode |
| 726 | eSIR_HT_MIMO_PS_NA = 2, // reserved |
| 727 | eSIR_HT_MIMO_PS_NO_LIMIT = 3, // SM Power Save disabled |
| 728 | eSIR_HT_MIMO_PS_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 729 | } tSirMacHTMIMOPowerSaveState; |
| 730 | |
| 731 | /* each station added has a rate mode which specifies the sta attributes */ |
| 732 | typedef enum eStaRateMode { |
| 733 | eSTA_TAURUS = 0, |
| 734 | eSTA_TITAN, |
| 735 | eSTA_POLARIS, |
| 736 | eSTA_11b, |
| 737 | eSTA_11bg, |
| 738 | eSTA_11a, |
| 739 | eSTA_11n, |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 740 | #ifdef WLAN_FEATURE_11AC |
| 741 | eSTA_11ac, |
| 742 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 743 | eSTA_INVALID_RATE_MODE = WLAN_HAL_MAX_ENUM_SIZE |
| 744 | } tStaRateMode, *tpStaRateMode; |
| 745 | |
| 746 | #define SIR_NUM_11B_RATES 4 //1,2,5.5,11 |
| 747 | #define SIR_NUM_11A_RATES 8 //6,9,12,18,24,36,48,54 |
| 748 | #define SIR_NUM_POLARIS_RATES 3 //72,96,108 |
| 749 | |
| 750 | #define SIR_MAC_MAX_SUPPORTED_MCS_SET 16 |
| 751 | |
| 752 | |
| 753 | typedef enum eSirBssType |
| 754 | { |
| 755 | eSIR_INFRASTRUCTURE_MODE, |
| 756 | eSIR_INFRA_AP_MODE, //Added for softAP support |
| 757 | eSIR_IBSS_MODE, |
| 758 | eSIR_BTAMP_STA_MODE, //Added for BT-AMP support |
| 759 | eSIR_BTAMP_AP_MODE, //Added for BT-AMP support |
| 760 | eSIR_AUTO_MODE, |
| 761 | eSIR_DONOT_USE_BSS_TYPE = WLAN_HAL_MAX_ENUM_SIZE |
| 762 | } tSirBssType; |
| 763 | |
| 764 | typedef enum eSirNwType |
| 765 | { |
| 766 | eSIR_11A_NW_TYPE, |
| 767 | eSIR_11B_NW_TYPE, |
| 768 | eSIR_11G_NW_TYPE, |
| 769 | eSIR_11N_NW_TYPE, |
| 770 | eSIR_DONOT_USE_NW_TYPE = WLAN_HAL_MAX_ENUM_SIZE |
| 771 | } tSirNwType; |
| 772 | |
| 773 | typedef tANI_U16 tSirMacBeaconInterval; |
| 774 | |
| 775 | #define SIR_MAC_RATESET_EID_MAX 12 |
| 776 | |
| 777 | typedef enum eSirMacHTOperatingMode |
| 778 | { |
| 779 | eSIR_HT_OP_MODE_PURE, // No Protection |
| 780 | eSIR_HT_OP_MODE_OVERLAP_LEGACY, // Overlap Legacy device present, protection is optional |
| 781 | eSIR_HT_OP_MODE_NO_LEGACY_20MHZ_HT, // No legacy device, but 20 MHz HT present |
| 782 | eSIR_HT_OP_MODE_MIXED, // Protection is required |
| 783 | eSIR_HT_OP_MODE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 784 | } tSirMacHTOperatingMode; |
| 785 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 786 | /// Encryption type enum used with peer |
| 787 | typedef enum eAniEdType |
| 788 | { |
| 789 | eSIR_ED_NONE, |
| 790 | eSIR_ED_WEP40, |
| 791 | eSIR_ED_WEP104, |
| 792 | eSIR_ED_TKIP, |
| 793 | eSIR_ED_CCMP, |
| 794 | eSIR_ED_WPI, |
| 795 | eSIR_ED_AES_128_CMAC, |
| 796 | eSIR_ED_NOT_IMPLEMENTED = WLAN_HAL_MAX_ENUM_SIZE |
| 797 | } tAniEdType; |
| 798 | |
| 799 | #define WLAN_MAX_KEY_RSC_LEN 16 |
| 800 | #define WLAN_WAPI_KEY_RSC_LEN 16 |
| 801 | |
| 802 | /// MAX key length when ULA is used |
| 803 | #define SIR_MAC_MAX_KEY_LENGTH 32 |
| 804 | #define SIR_MAC_MAX_NUM_OF_DEFAULT_KEYS 4 |
| 805 | |
| 806 | /// Enum to specify whether key is used |
| 807 | /// for TX only, RX only or both |
| 808 | typedef enum eAniKeyDirection |
| 809 | { |
| 810 | eSIR_TX_ONLY, |
| 811 | eSIR_RX_ONLY, |
| 812 | eSIR_TX_RX, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 813 | eSIR_TX_DEFAULT, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 814 | eSIR_DONOT_USE_KEY_DIRECTION = WLAN_HAL_MAX_ENUM_SIZE |
| 815 | } tAniKeyDirection; |
| 816 | |
| 817 | typedef enum eAniWepType |
| 818 | { |
| 819 | eSIR_WEP_STATIC, |
| 820 | eSIR_WEP_DYNAMIC, |
| 821 | eSIR_WEP_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 822 | } tAniWepType; |
| 823 | |
| 824 | typedef enum eSriLinkState { |
| 825 | |
| 826 | eSIR_LINK_IDLE_STATE = 0, |
| 827 | eSIR_LINK_PREASSOC_STATE = 1, |
| 828 | eSIR_LINK_POSTASSOC_STATE = 2, |
| 829 | eSIR_LINK_AP_STATE = 3, |
| 830 | eSIR_LINK_IBSS_STATE = 4, |
| 831 | |
| 832 | /* BT-AMP Case */ |
| 833 | eSIR_LINK_BTAMP_PREASSOC_STATE = 5, |
| 834 | eSIR_LINK_BTAMP_POSTASSOC_STATE = 6, |
| 835 | eSIR_LINK_BTAMP_AP_STATE = 7, |
| 836 | eSIR_LINK_BTAMP_STA_STATE = 8, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 837 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 838 | /* Reserved for HAL Internal Use */ |
| 839 | eSIR_LINK_LEARN_STATE = 9, |
| 840 | eSIR_LINK_SCAN_STATE = 10, |
| 841 | eSIR_LINK_FINISH_SCAN_STATE = 11, |
| 842 | eSIR_LINK_INIT_CAL_STATE = 12, |
| 843 | eSIR_LINK_FINISH_CAL_STATE = 13, |
| 844 | #ifdef WLAN_FEATURE_P2P |
| 845 | eSIR_LINK_LISTEN_STATE = 14, |
Gopichand Nakkala | 180b110 | 2013-05-29 13:12:44 +0530 | [diff] [blame] | 846 | eSIR_LINK_SEND_ACTION_STATE = 15, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 847 | #endif |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 848 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
| 849 | eSIR_LINK_FT_PREASSOC_STATE = 16, |
| 850 | #endif |
Padma, Santhosh Kumar | f42bd3e | 2017-01-20 14:59:02 +0530 | [diff] [blame] | 851 | #ifdef WLAN_FEATURE_LFR_MBB |
| 852 | eSIR_LINK_PRE_AUTH_REASSOC_STATE = 17, |
| 853 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 854 | eSIR_LINK_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 855 | } tSirLinkState; |
| 856 | |
| 857 | typedef enum |
| 858 | { |
| 859 | HAL_SUMMARY_STATS_INFO = 0x00000001, |
| 860 | HAL_GLOBAL_CLASS_A_STATS_INFO = 0x00000002, |
| 861 | HAL_GLOBAL_CLASS_B_STATS_INFO = 0x00000004, |
| 862 | HAL_GLOBAL_CLASS_C_STATS_INFO = 0x00000008, |
| 863 | HAL_GLOBAL_CLASS_D_STATS_INFO = 0x00000010, |
Sushant Kaushik | 3320057 | 2015-08-05 16:46:20 +0530 | [diff] [blame] | 864 | HAL_PER_STA_STATS_INFO = 0x00000020, |
| 865 | HAL_PER_TX_PKT_STATS_INFO = 0x00000040 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 866 | }eHalStatsMask; |
| 867 | |
| 868 | /* BT-AMP events type */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 869 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 870 | { |
| 871 | BTAMP_EVENT_CONNECTION_START, |
| 872 | BTAMP_EVENT_CONNECTION_STOP, |
| 873 | BTAMP_EVENT_CONNECTION_TERMINATED, |
| 874 | BTAMP_EVENT_TYPE_MAX = WLAN_HAL_MAX_ENUM_SIZE, //This and beyond are invalid values |
| 875 | } tBtAmpEventType; |
| 876 | |
| 877 | //*************************************************************** |
| 878 | |
| 879 | |
| 880 | /*******************PE Statistics*************************/ |
| 881 | typedef enum |
| 882 | { |
| 883 | PE_SUMMARY_STATS_INFO = 0x00000001, |
| 884 | PE_GLOBAL_CLASS_A_STATS_INFO = 0x00000002, |
| 885 | PE_GLOBAL_CLASS_B_STATS_INFO = 0x00000004, |
| 886 | PE_GLOBAL_CLASS_C_STATS_INFO = 0x00000008, |
| 887 | PE_GLOBAL_CLASS_D_STATS_INFO = 0x00000010, |
| 888 | PE_PER_STA_STATS_INFO = 0x00000020, |
Sushant Kaushik | 3320057 | 2015-08-05 16:46:20 +0530 | [diff] [blame] | 889 | PE_PER_TX_PKT_STATS_INFO = 0x00000040, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 890 | PE_STATS_TYPE_MAX = WLAN_HAL_MAX_ENUM_SIZE //This and beyond are invalid values |
| 891 | }ePEStatsMask; |
| 892 | |
Sunil Dutt | 8377a38 | 2014-05-26 21:18:04 +0530 | [diff] [blame] | 893 | |
| 894 | /******************************LINK LAYER Statitics**********************/ |
| 895 | |
| 896 | typedef int wifi_radio; |
| 897 | typedef int wifi_channel; |
| 898 | typedef int wifi_tx_rate; |
| 899 | |
| 900 | /* channel operating width */ |
| 901 | typedef enum { |
| 902 | WIFI_CHAN_WIDTH_20 = 0, |
| 903 | WIFI_CHAN_WIDTH_40 = 1, |
| 904 | WIFI_CHAN_WIDTH_80 = 2, |
| 905 | WIFI_CHAN_WIDTH_160 = 3, |
| 906 | WIFI_CHAN_WIDTH_80P80 = 4, |
| 907 | WIFI_CHAN_WIDTH_5 = 5, |
| 908 | WIFI_CHAN_WIDTH_10 = 6, |
| 909 | } wifi_channel_width; |
| 910 | |
| 911 | typedef enum { |
| 912 | WIFI_DISCONNECTED = 0, |
| 913 | WIFI_AUTHENTICATING = 1, |
| 914 | WIFI_ASSOCIATING = 2, |
| 915 | WIFI_ASSOCIATED = 3, |
| 916 | WIFI_EAPOL_STARTED = 4, // if done by firmware/driver |
| 917 | WIFI_EAPOL_COMPLETED = 5, // if done by firmware/driver |
| 918 | } wifi_connection_state; |
| 919 | |
| 920 | typedef enum { |
| 921 | WIFI_ROAMING_IDLE = 0, |
| 922 | WIFI_ROAMING_ACTIVE = 1, |
| 923 | } wifi_roam_state; |
| 924 | |
| 925 | typedef enum { |
| 926 | WIFI_INTERFACE_STA = 0, |
| 927 | WIFI_INTERFACE_SOFTAP = 1, |
| 928 | WIFI_INTERFACE_IBSS = 2, |
| 929 | WIFI_INTERFACE_P2P_CLIENT = 3, |
| 930 | WIFI_INTERFACE_P2P_GO = 4, |
| 931 | WIFI_INTERFACE_NAN = 5, |
| 932 | WIFI_INTERFACE_MESH = 6, |
| 933 | } wifi_interface_mode; |
| 934 | |
| 935 | #define WIFI_CAPABILITY_QOS 0x00000001 // set for QOS association |
| 936 | #define WIFI_CAPABILITY_PROTECTED 0x00000002 // set for protected association (802.11 beacon frame control protected bit set) |
| 937 | #define WIFI_CAPABILITY_INTERWORKING 0x00000004 // set if 802.11 Extended Capabilities element interworking bit is set |
| 938 | #define WIFI_CAPABILITY_HS20 0x00000008 // set for HS20 association |
| 939 | #define WIFI_CAPABILITY_SSID_UTF8 0x00000010 // set is 802.11 Extended Capabilities element UTF-8 SSID bit is set |
| 940 | #define WIFI_CAPABILITY_COUNTRY 0x00000020 // set is 802.11 Country Element is present |
| 941 | |
| 942 | typedef PACKED_PRE struct PACKED_POST |
| 943 | { |
| 944 | wifi_interface_mode mode; // interface mode |
| 945 | tANI_U8 mac_addr[6]; // interface mac address (self) |
| 946 | wifi_connection_state state; // connection state (valid for STA, CLI only) |
| 947 | wifi_roam_state roaming; // roaming state |
| 948 | tANI_U32 capabilities; // WIFI_CAPABILITY_XXX (self) |
| 949 | tANI_U8 ssid[33]; // null terminated SSID |
| 950 | tANI_U8 bssid[6]; // bssid |
| 951 | tANI_U8 ap_country_str[3]; // country string advertised by AP |
| 952 | tANI_U8 country_str[3]; // country string for this association |
| 953 | } wifi_interface_info; |
| 954 | |
| 955 | /* channel information */ |
| 956 | typedef PACKED_PRE struct PACKED_POST |
| 957 | { |
| 958 | wifi_channel_width width; // channel width (20, 40, 80, 80+80, 160) |
| 959 | wifi_channel center_freq; // primary 20 MHz channel |
| 960 | wifi_channel center_freq0; // center frequency (MHz) first segment |
| 961 | wifi_channel center_freq1; // center frequency (MHz) second segment |
| 962 | } wifi_channel_info; |
| 963 | |
| 964 | /* wifi rate info */ |
| 965 | typedef PACKED_PRE struct PACKED_POST |
| 966 | { |
| 967 | tANI_U32 preamble :3; // 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved |
| 968 | tANI_U32 nss :2; // 0:1x1, 1:2x2, 3:3x3, 4:4x4 |
| 969 | tANI_U32 bw :3; // 0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz |
| 970 | tANI_U32 rateMcsIdx :8; // OFDM/CCK rate code would be as per ieee std in the units of 0.5mbps |
| 971 | // HT/VHT it would be mcs index |
| 972 | tANI_U32 reserved :16; // reserved |
| 973 | tANI_U32 bitrate; // units of 100 Kbps |
| 974 | } wifi_rate; |
| 975 | |
| 976 | /* channel statistics */ |
| 977 | typedef PACKED_PRE struct PACKED_POST |
| 978 | { |
| 979 | wifi_channel_info channel; // channel |
| 980 | tANI_U32 on_time; // msecs the radio is awake (32 bits number accruing over time) |
| 981 | tANI_U32 cca_busy_time; // msecs the CCA register is busy (32 bits number accruing over time) |
| 982 | } wifi_channel_stats; |
| 983 | |
| 984 | /* radio statistics */ |
| 985 | typedef PACKED_PRE struct PACKED_POST |
| 986 | { |
| 987 | wifi_radio radio; // wifi radio (if multiple radio supported) |
| 988 | tANI_U32 on_time; // msecs the radio is awake (32 bits number accruing over time) |
| 989 | tANI_U32 tx_time; // msecs the radio is transmitting (32 bits number accruing over time) |
| 990 | tANI_U32 rx_time; // msecs the radio is in active receive (32 bits number accruing over time) |
| 991 | tANI_U32 on_time_scan; // msecs the radio is awake due to all scan (32 bits number accruing over time) |
| 992 | tANI_U32 on_time_nbd; // msecs the radio is awake due to NAN (32 bits number accruing over time) |
| 993 | tANI_U32 on_time_gscan; // msecs the radio is awake due to G?scan (32 bits number accruing over time) |
| 994 | tANI_U32 on_time_roam_scan; // msecs the radio is awake due to roam?scan (32 bits number accruing over time) |
| 995 | tANI_U32 on_time_pno_scan; // msecs the radio is awake due to PNO scan (32 bits number accruing over time) |
| 996 | tANI_U32 on_time_hs20; // msecs the radio is awake due to HS2.0 scans and GAS exchange (32 bits number accruing over time) |
| 997 | tANI_U32 num_channels; // number of channels |
| 998 | wifi_channel_stats channels[1]; // channel statistics |
| 999 | } wifi_radio_stat; |
| 1000 | |
| 1001 | /* per rate statistics */ |
| 1002 | typedef PACKED_PRE struct PACKED_POST |
| 1003 | { |
| 1004 | wifi_rate rate; // rate information * |
| 1005 | tANI_U32 tx_mpdu; // number of successfully transmitted data pkts (ACK rcvd) * |
| 1006 | tANI_U32 rx_mpdu; // number of received data pkts |
| 1007 | tANI_U32 mpdu_lost; // number of data packet losses (no ACK) |
| 1008 | tANI_U32 retries; // total number of data pkt retries * |
| 1009 | tANI_U32 retries_short; // number of short data pkt retries |
| 1010 | tANI_U32 retries_long; // number of long data pkt retries |
| 1011 | } wifi_rate_stat; |
| 1012 | |
| 1013 | /* access categories */ |
| 1014 | typedef enum { |
| 1015 | WIFI_AC_VO = 0, |
| 1016 | WIFI_AC_VI = 1, |
| 1017 | WIFI_AC_BE = 2, |
| 1018 | WIFI_AC_BK = 3, |
| 1019 | WIFI_AC_MAX = 4, |
| 1020 | } wifi_traffic_ac; |
| 1021 | |
| 1022 | /* wifi peer type */ |
| 1023 | typedef enum |
| 1024 | { |
| 1025 | WIFI_PEER_STA, |
| 1026 | WIFI_PEER_AP, |
| 1027 | WIFI_PEER_P2P_GO, |
| 1028 | WIFI_PEER_P2P_CLIENT, |
| 1029 | WIFI_PEER_NAN, |
| 1030 | WIFI_PEER_TDLS, |
| 1031 | WIFI_PEER_INVALID, |
| 1032 | } wifi_peer_type; |
| 1033 | |
| 1034 | /* per peer statistics */ |
| 1035 | typedef PACKED_PRE struct PACKED_POST |
| 1036 | { |
| 1037 | wifi_peer_type type; // peer type (AP, TDLS, GO etc.) |
| 1038 | tANI_U8 peer_mac_address[6]; // mac address |
| 1039 | tANI_U32 capabilities; // peer WIFI_CAPABILITY_XXX |
| 1040 | tANI_U32 num_rate; // number of rates |
| 1041 | wifi_rate_stat rate_stats[1]; // per rate statistics, number of entries = num_rate |
| 1042 | } wifi_peer_info; |
| 1043 | |
| 1044 | /* per access category statistics */ |
| 1045 | typedef PACKED_PRE struct PACKED_POST |
Sunil Dutt | 8377a38 | 2014-05-26 21:18:04 +0530 | [diff] [blame] | 1046 | { |
| 1047 | wifi_traffic_ac ac; // access category (VI, VO, BE, BK) |
| 1048 | tANI_U32 tx_mpdu; // number of successfully transmitted unicast data pkts (ACK rcvd) |
| 1049 | tANI_U32 rx_mpdu; // number of received unicast mpdus |
| 1050 | tANI_U32 tx_mcast; // number of succesfully transmitted multicast data packets |
| 1051 | // STA case: implies ACK received from AP for the unicast packet in which mcast pkt was sent |
| 1052 | tANI_U32 rx_mcast; // number of received multicast data packets |
| 1053 | tANI_U32 rx_ampdu; // number of received unicast a-mpdus |
| 1054 | tANI_U32 tx_ampdu; // number of transmitted unicast a-mpdus |
| 1055 | tANI_U32 mpdu_lost; // number of data pkt losses (no ACK) |
| 1056 | tANI_U32 retries; // total number of data pkt retries |
| 1057 | tANI_U32 retries_short; // number of short data pkt retries |
| 1058 | tANI_U32 retries_long; // number of long data pkt retries |
| 1059 | tANI_U32 contention_time_min; // data pkt min contention time (usecs) |
| 1060 | tANI_U32 contention_time_max; // data pkt max contention time (usecs) |
| 1061 | tANI_U32 contention_time_avg; // data pkt avg contention time (usecs) |
| 1062 | tANI_U32 contention_num_samples; // num of data pkts used for contention statistics |
| 1063 | } wifi_wmm_ac_stat; |
| 1064 | |
Mukul Sharma | 03f8649 | 2015-10-20 16:10:13 +0530 | [diff] [blame] | 1065 | typedef PACKED_PRE struct PACKED_POST |
| 1066 | { |
| 1067 | tANI_U64 average_tsf_offset; |
| 1068 | tANI_U32 leaky_ap_avg_num_frames_leaked; |
| 1069 | tANI_U32 leaky_ap_guard_time; |
| 1070 | tANI_U32 leaky_ap_detected; |
| 1071 | } wifi_iface_leaky_ap_info; |
| 1072 | |
Sunil Dutt | 8377a38 | 2014-05-26 21:18:04 +0530 | [diff] [blame] | 1073 | /* Interface statistics - corresponding to 2nd most LSB in wifi statistics bitmap for getting statistics */ |
| 1074 | typedef PACKED_PRE struct PACKED_POST |
Sunil Dutt | 8377a38 | 2014-05-26 21:18:04 +0530 | [diff] [blame] | 1075 | { |
| 1076 | wifi_interface_info info; // current state of the interface |
| 1077 | tANI_U32 beacon_rx; // access point beacon received count from connected AP |
| 1078 | tANI_U32 mgmt_rx; // access point mgmt frames received count from connected AP (including Beacon) |
| 1079 | tANI_U32 mgmt_action_rx; // action frames received count |
| 1080 | tANI_U32 mgmt_action_tx; // action frames transmit count |
| 1081 | tANI_U32 rssi_mgmt; // access Point Beacon and Management frames RSSI (averaged) |
| 1082 | tANI_U32 rssi_data; // access Point Data Frames RSSI (averaged) from connected AP |
| 1083 | tANI_U32 rssi_ack; // access Point ACK RSSI (averaged) from connected AP |
| 1084 | wifi_wmm_ac_stat AccessclassStats[WIFI_AC_MAX]; // per ac data packet statistics |
Mukul Sharma | 03f8649 | 2015-10-20 16:10:13 +0530 | [diff] [blame] | 1085 | wifi_iface_leaky_ap_info leakyApInfo; |
Sunil Dutt | 8377a38 | 2014-05-26 21:18:04 +0530 | [diff] [blame] | 1086 | } wifi_iface_stat; |
| 1087 | |
| 1088 | /* Peer statistics - corresponding to 3rd most LSB in wifi statistics bitmap for getting statistics */ |
| 1089 | typedef PACKED_PRE struct PACKED_POST |
| 1090 | { |
| 1091 | tANI_U32 num_peers; // number of peers |
| 1092 | wifi_peer_info peer_info[1]; // per peer statistics |
| 1093 | } wifi_peer_stat; |
| 1094 | |
| 1095 | /* wifi statistics bitmap for getting statistics */ |
| 1096 | #define WMI_LINK_STATS_RADIO 0x00000001 |
| 1097 | #define WMI_LINK_STATS_IFACE 0x00000002 |
| 1098 | #define WMI_LINK_STATS_ALL_PEER 0x00000004 |
| 1099 | #define WMI_LINK_STATS_PER_PEER 0x00000008 |
| 1100 | |
| 1101 | /* wifi statistics bitmap for clearing statistics */ |
| 1102 | #define WIFI_STATS_RADIO 0x00000001 // all radio statistics |
| 1103 | #define WIFI_STATS_RADIO_CCA 0x00000002 // cca_busy_time (within radio statistics) |
| 1104 | #define WIFI_STATS_RADIO_CHANNELS 0x00000004 // all channel statistics (within radio statistics) |
| 1105 | #define WIFI_STATS_RADIO_SCAN 0x00000008 // all scan statistics (within radio statistics) |
| 1106 | #define WIFI_STATS_IFACE 0x00000010 // all interface statistics |
| 1107 | #define WIFI_STATS_IFACE_TXRATE 0x00000020 // all tx rate statistics (within interface statistics) |
| 1108 | #define WIFI_STATS_IFACE_AC 0x00000040 // all ac statistics (within interface statistics) |
| 1109 | #define WIFI_STATS_IFACE_CONTENTION 0x00000080 // all contention (min, max, avg) statistics (within ac statisctics) |
| 1110 | |
| 1111 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1112 | /*--------------------------------------------------------------------------- |
| 1113 | Message definitons - All the messages below need to be packed |
| 1114 | ---------------------------------------------------------------------------*/ |
| 1115 | |
| 1116 | #if defined(__ANI_COMPILER_PRAGMA_PACK_STACK) |
| 1117 | #pragma pack(push, 1) |
| 1118 | #elif defined(__ANI_COMPILER_PRAGMA_PACK) |
| 1119 | #pragma pack(1) |
| 1120 | #else |
| 1121 | #endif |
| 1122 | |
| 1123 | /// Definition for HAL API Version. |
| 1124 | typedef PACKED_PRE struct PACKED_POST |
| 1125 | { |
| 1126 | tANI_U8 revision; |
| 1127 | tANI_U8 version; |
| 1128 | tANI_U8 minor; |
| 1129 | tANI_U8 major; |
| 1130 | } tWcnssWlanVersion, *tpWcnssWlanVersion; |
| 1131 | |
| 1132 | /// Definition for Encryption Keys |
| 1133 | typedef PACKED_PRE struct PACKED_POST |
| 1134 | { |
| 1135 | tANI_U8 keyId; |
| 1136 | tANI_U8 unicast; // 0 for multicast |
| 1137 | tAniKeyDirection keyDirection; |
| 1138 | tANI_U8 keyRsc[WLAN_MAX_KEY_RSC_LEN]; // Usage is unknown |
| 1139 | tANI_U8 paeRole; // =1 for authenticator,=0 for supplicant |
| 1140 | tANI_U16 keyLength; |
| 1141 | tANI_U8 key[SIR_MAC_MAX_KEY_LENGTH]; |
| 1142 | } tSirKeys, *tpSirKeys; |
| 1143 | |
| 1144 | |
| 1145 | //SetStaKeyParams Moving here since it is shared by configbss/setstakey msgs |
| 1146 | typedef PACKED_PRE struct PACKED_POST |
| 1147 | { |
| 1148 | /*STA Index*/ |
| 1149 | tANI_U16 staIdx; |
| 1150 | |
| 1151 | /*Encryption Type used with peer*/ |
| 1152 | tAniEdType encType; |
| 1153 | |
| 1154 | /*STATIC/DYNAMIC - valid only for WEP*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1155 | tAniWepType wepType; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1156 | |
| 1157 | /*Default WEP key, valid only for static WEP, must between 0 and 3.*/ |
| 1158 | tANI_U8 defWEPIdx; |
| 1159 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1160 | /* valid only for non-static WEP encyrptions */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1161 | tSirKeys key[SIR_MAC_MAX_NUM_OF_DEFAULT_KEYS]; |
| 1162 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1163 | /*Control for Replay Count, 1= Single TID based replay count on Tx |
| 1164 | 0 = Per TID based replay count on TX */ |
| 1165 | tANI_U8 singleTidRc; |
| 1166 | |
| 1167 | } tSetStaKeyParams, *tpSetStaKeyParams; |
| 1168 | |
| 1169 | |
| 1170 | |
| 1171 | /* 4-byte control message header used by HAL*/ |
| 1172 | typedef PACKED_PRE struct PACKED_POST |
| 1173 | { |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1174 | tHalHostMsgType msgType:16; |
| 1175 | tHalHostMsgVersion msgVersion:16; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1176 | tANI_U32 msgLen; |
| 1177 | } tHalMsgHeader, *tpHalMsgHeader; |
| 1178 | |
| 1179 | /* Config format required by HAL for each CFG item*/ |
| 1180 | typedef PACKED_PRE struct PACKED_POST |
| 1181 | { |
| 1182 | /* Cfg Id. The Id required by HAL is exported by HAL |
| 1183 | * in shared header file between UMAC and HAL.*/ |
| 1184 | tANI_U16 uCfgId; |
| 1185 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1186 | /* Length of the Cfg. This parameter is used to go to next cfg |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1187 | * in the TLV format.*/ |
| 1188 | tANI_U16 uCfgLen; |
| 1189 | |
| 1190 | /* Padding bytes for unaligned address's */ |
| 1191 | tANI_U16 uCfgPadBytes; |
| 1192 | |
| 1193 | /* Reserve bytes for making cfgVal to align address */ |
| 1194 | tANI_U16 uCfgReserve; |
| 1195 | |
| 1196 | /* Following the uCfgLen field there should be a 'uCfgLen' bytes |
| 1197 | * containing the uCfgValue ; tANI_U8 uCfgValue[uCfgLen] */ |
| 1198 | } tHalCfg, *tpHalCfg; |
| 1199 | |
| 1200 | /*--------------------------------------------------------------------------- |
| 1201 | WLAN_HAL_START_REQ |
| 1202 | ---------------------------------------------------------------------------*/ |
| 1203 | |
| 1204 | typedef PACKED_PRE struct PACKED_POST sHalMacStartParameters |
| 1205 | { |
| 1206 | /* Drive Type - Production or FTM etc */ |
| 1207 | tDriverType driverType; |
| 1208 | |
| 1209 | /*Length of the config buffer*/ |
| 1210 | tANI_U32 uConfigBufferLen; |
| 1211 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1212 | /* Following this there is a TLV formatted buffer of length |
| 1213 | * "uConfigBufferLen" bytes containing all config values. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1214 | * The TLV is expected to be formatted like this: |
| 1215 | * 0 15 31 31+CFG_LEN-1 length-1 |
| 1216 | * | CFG_ID | CFG_LEN | CFG_BODY | CFG_ID |......| |
| 1217 | */ |
| 1218 | } tHalMacStartParameters, *tpHalMacStartParameters; |
| 1219 | |
| 1220 | typedef PACKED_PRE struct PACKED_POST |
| 1221 | { |
| 1222 | /* Note: The length specified in tHalMacStartReqMsg messages should be |
| 1223 | * header.msgLen = sizeof(tHalMacStartReqMsg) + uConfigBufferLen */ |
| 1224 | tHalMsgHeader header; |
| 1225 | tHalMacStartParameters startReqParams; |
| 1226 | } tHalMacStartReqMsg, *tpHalMacStartReqMsg; |
| 1227 | |
| 1228 | /*--------------------------------------------------------------------------- |
| 1229 | WLAN_HAL_START_RSP |
| 1230 | ---------------------------------------------------------------------------*/ |
| 1231 | |
| 1232 | typedef PACKED_PRE struct PACKED_POST sHalMacStartRspParameters |
| 1233 | { |
| 1234 | /*success or failure */ |
| 1235 | tANI_U16 status; |
| 1236 | |
| 1237 | /*Max number of STA supported by the device*/ |
| 1238 | tANI_U8 ucMaxStations; |
| 1239 | |
| 1240 | /*Max number of BSS supported by the device*/ |
| 1241 | tANI_U8 ucMaxBssids; |
| 1242 | |
| 1243 | /*API Version */ |
| 1244 | tWcnssWlanVersion wcnssWlanVersion; |
| 1245 | |
| 1246 | /*CRM build information */ |
| 1247 | tANI_U8 wcnssCrmVersionString[WLAN_HAL_VERSION_LENGTH]; |
| 1248 | |
| 1249 | /*hardware/chipset/misc version information */ |
| 1250 | tANI_U8 wcnssWlanVersionString[WLAN_HAL_VERSION_LENGTH]; |
| 1251 | |
| 1252 | } tHalMacStartRspParams, *tpHalMacStartRspParams; |
| 1253 | |
| 1254 | typedef PACKED_PRE struct PACKED_POST |
| 1255 | { |
| 1256 | tHalMsgHeader header; |
| 1257 | tHalMacStartRspParams startRspParams; |
| 1258 | } tHalMacStartRspMsg, *tpHalMacStartRspMsg; |
| 1259 | |
| 1260 | /*--------------------------------------------------------------------------- |
| 1261 | WLAN_HAL_STOP_REQ |
| 1262 | ---------------------------------------------------------------------------*/ |
| 1263 | |
| 1264 | typedef PACKED_PRE struct PACKED_POST |
| 1265 | { |
| 1266 | /*The reason for which the device is being stopped*/ |
| 1267 | tHalStopType reason; |
| 1268 | |
| 1269 | }tHalMacStopReqParams, *tpHalMacStopReqParams; |
| 1270 | |
| 1271 | typedef PACKED_PRE struct PACKED_POST |
| 1272 | { |
| 1273 | tHalMsgHeader header; |
| 1274 | tHalMacStopReqParams stopReqParams; |
| 1275 | } tHalMacStopReqMsg, *tpHalMacStopReqMsg; |
| 1276 | |
| 1277 | /*--------------------------------------------------------------------------- |
| 1278 | WLAN_HAL_STOP_RSP |
| 1279 | ---------------------------------------------------------------------------*/ |
| 1280 | |
| 1281 | typedef PACKED_PRE struct PACKED_POST |
| 1282 | { |
| 1283 | /*success or failure */ |
| 1284 | tANI_U32 status; |
| 1285 | |
| 1286 | }tHalMacStopRspParams, *tpHalMacStopRspParams; |
| 1287 | |
| 1288 | typedef PACKED_PRE struct PACKED_POST |
| 1289 | { |
| 1290 | tHalMsgHeader header; |
| 1291 | tHalMacStopRspParams stopRspParams; |
| 1292 | } tHalMacStopRspMsg, *tpHalMacStopRspMsg; |
| 1293 | |
| 1294 | /*--------------------------------------------------------------------------- |
| 1295 | WLAN_HAL_UPDATE_CFG_REQ |
| 1296 | ---------------------------------------------------------------------------*/ |
| 1297 | |
| 1298 | typedef PACKED_PRE struct PACKED_POST |
| 1299 | { |
| 1300 | /* Length of the config buffer. Allows UMAC to update multiple CFGs */ |
| 1301 | tANI_U32 uConfigBufferLen; |
| 1302 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1303 | /* Following this there is a TLV formatted buffer of length |
| 1304 | * "uConfigBufferLen" bytes containing all config values. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1305 | * The TLV is expected to be formatted like this: |
| 1306 | * 0 15 31 31+CFG_LEN-1 length-1 |
| 1307 | * | CFG_ID | CFG_LEN | CFG_BODY | CFG_ID |......| |
| 1308 | */ |
| 1309 | } tHalUpdateCfgReqParams, *tpHalUpdateCfgReqParams; |
| 1310 | |
| 1311 | typedef PACKED_PRE struct PACKED_POST |
| 1312 | { |
| 1313 | /* Note: The length specified in tHalUpdateCfgReqMsg messages should be |
| 1314 | * header.msgLen = sizeof(tHalUpdateCfgReqMsg) + uConfigBufferLen */ |
| 1315 | tHalMsgHeader header; |
| 1316 | tHalUpdateCfgReqParams updateCfgReqParams; |
| 1317 | } tHalUpdateCfgReqMsg, *tpHalUpdateCfgReqMsg; |
| 1318 | |
| 1319 | /*--------------------------------------------------------------------------- |
| 1320 | WLAN_HAL_UPDATE_CFG_RSP |
| 1321 | ---------------------------------------------------------------------------*/ |
| 1322 | |
| 1323 | typedef PACKED_PRE struct PACKED_POST |
| 1324 | { |
| 1325 | /* success or failure */ |
| 1326 | tANI_U32 status; |
| 1327 | |
| 1328 | }tHalUpdateCfgRspParams, *tpHalUpdateCfgRspParams; |
| 1329 | |
| 1330 | typedef PACKED_PRE struct PACKED_POST |
| 1331 | { |
| 1332 | tHalMsgHeader header; |
| 1333 | tHalUpdateCfgRspParams updateCfgRspParams; |
| 1334 | } tHalUpdateCfgRspMsg, *tpHalUpdateCfgRspMsg; |
| 1335 | |
| 1336 | /*--------------------------------------------------------------------------- |
| 1337 | WLAN_HAL_INIT_SCAN_REQ |
| 1338 | ---------------------------------------------------------------------------*/ |
| 1339 | |
| 1340 | /// Frame control field format (2 bytes) |
| 1341 | typedef __ani_attr_pre_packed struct sSirMacFrameCtl |
| 1342 | { |
| 1343 | |
| 1344 | #ifndef ANI_LITTLE_BIT_ENDIAN |
| 1345 | |
| 1346 | tANI_U8 subType :4; |
| 1347 | tANI_U8 type :2; |
| 1348 | tANI_U8 protVer :2; |
| 1349 | |
| 1350 | tANI_U8 order :1; |
| 1351 | tANI_U8 wep :1; |
| 1352 | tANI_U8 moreData :1; |
| 1353 | tANI_U8 powerMgmt :1; |
| 1354 | tANI_U8 retry :1; |
| 1355 | tANI_U8 moreFrag :1; |
| 1356 | tANI_U8 fromDS :1; |
| 1357 | tANI_U8 toDS :1; |
| 1358 | |
| 1359 | #else |
| 1360 | |
| 1361 | tANI_U8 protVer :2; |
| 1362 | tANI_U8 type :2; |
| 1363 | tANI_U8 subType :4; |
| 1364 | |
| 1365 | tANI_U8 toDS :1; |
| 1366 | tANI_U8 fromDS :1; |
| 1367 | tANI_U8 moreFrag :1; |
| 1368 | tANI_U8 retry :1; |
| 1369 | tANI_U8 powerMgmt :1; |
| 1370 | tANI_U8 moreData :1; |
| 1371 | tANI_U8 wep :1; |
| 1372 | tANI_U8 order :1; |
| 1373 | |
| 1374 | #endif |
| 1375 | |
| 1376 | } __ani_attr_packed tSirMacFrameCtl, *tpSirMacFrameCtl; |
| 1377 | |
| 1378 | /// Sequence control field |
| 1379 | typedef __ani_attr_pre_packed struct sSirMacSeqCtl |
| 1380 | { |
| 1381 | tANI_U8 fragNum : 4; |
| 1382 | tANI_U8 seqNumLo : 4; |
| 1383 | tANI_U8 seqNumHi : 8; |
| 1384 | } __ani_attr_packed tSirMacSeqCtl, *tpSirMacSeqCtl; |
| 1385 | |
| 1386 | /// Management header format |
| 1387 | typedef __ani_attr_pre_packed struct sSirMacMgmtHdr |
| 1388 | { |
| 1389 | tSirMacFrameCtl fc; |
| 1390 | tANI_U8 durationLo; |
| 1391 | tANI_U8 durationHi; |
| 1392 | tANI_U8 da[6]; |
| 1393 | tANI_U8 sa[6]; |
| 1394 | tANI_U8 bssId[6]; |
| 1395 | tSirMacSeqCtl seqControl; |
| 1396 | } __ani_attr_packed tSirMacMgmtHdr, *tpSirMacMgmtHdr; |
| 1397 | |
| 1398 | /// Scan Entry to hold active BSS idx's |
| 1399 | typedef __ani_attr_pre_packed struct sSirScanEntry |
| 1400 | { |
| 1401 | tANI_U8 bssIdx[HAL_NUM_BSSID]; |
| 1402 | tANI_U8 activeBSScnt; |
| 1403 | }__ani_attr_packed tSirScanEntry, *ptSirScanEntry; |
| 1404 | |
| 1405 | typedef PACKED_PRE struct PACKED_POST { |
| 1406 | |
| 1407 | /*LEARN - AP Role |
| 1408 | SCAN - STA Role*/ |
| 1409 | eHalSysMode scanMode; |
| 1410 | |
| 1411 | /*BSSID of the BSS*/ |
| 1412 | tSirMacAddr bssid; |
| 1413 | |
| 1414 | /*Whether BSS needs to be notified*/ |
| 1415 | tANI_U8 notifyBss; |
| 1416 | |
| 1417 | /*Kind of frame to be used for notifying the BSS (Data Null, QoS Null, or |
| 1418 | CTS to Self). Must always be a valid frame type.*/ |
| 1419 | tANI_U8 frameType; |
| 1420 | |
| 1421 | /*UMAC has the option of passing the MAC frame to be used for notifying |
| 1422 | the BSS. If non-zero, HAL will use the MAC frame buffer pointed to by |
| 1423 | macMgmtHdr. If zero, HAL will generate the appropriate MAC frame based on |
| 1424 | frameType.*/ |
| 1425 | tANI_U8 frameLength; |
| 1426 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1427 | /* Following the framelength there is a MAC frame buffer if frameLength |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1428 | is non-zero. */ |
| 1429 | tSirMacMgmtHdr macMgmtHdr; |
| 1430 | |
| 1431 | /*Entry to hold number of active BSS idx's*/ |
| 1432 | tSirScanEntry scanEntry; |
| 1433 | |
| 1434 | } tInitScanParams, * tpInitScanParams; |
| 1435 | |
| 1436 | typedef PACKED_PRE struct PACKED_POST |
| 1437 | { |
| 1438 | tHalMsgHeader header; |
| 1439 | tInitScanParams initScanParams; |
| 1440 | } tHalInitScanReqMsg, *tpHalInitScanReqMsg; |
| 1441 | |
| 1442 | typedef PACKED_PRE struct PACKED_POST { |
| 1443 | |
| 1444 | /*LEARN - AP Role |
| 1445 | SCAN - STA Role*/ |
| 1446 | eHalSysMode scanMode; |
| 1447 | |
| 1448 | /*BSSID of the BSS*/ |
| 1449 | tSirMacAddr bssid; |
| 1450 | |
| 1451 | /*Whether BSS needs to be notified*/ |
| 1452 | tANI_U8 notifyBss; |
| 1453 | |
| 1454 | /*Kind of frame to be used for notifying the BSS (Data Null, QoS Null, or |
| 1455 | CTS to Self). Must always be a valid frame type.*/ |
| 1456 | tANI_U8 frameType; |
| 1457 | |
| 1458 | /*UMAC has the option of passing the MAC frame to be used for notifying |
| 1459 | the BSS. If non-zero, HAL will use the MAC frame buffer pointed to by |
| 1460 | macMgmtHdr. If zero, HAL will generate the appropriate MAC frame based on |
| 1461 | frameType.*/ |
| 1462 | tANI_U8 frameLength; |
| 1463 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1464 | /* Following the framelength there is a MAC frame buffer if frameLength |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1465 | is non-zero. */ |
| 1466 | tSirMacMgmtHdr macMgmtHdr; |
| 1467 | |
| 1468 | /*Entry to hold number of active BSS idx's*/ |
| 1469 | tSirScanEntry scanEntry; |
| 1470 | |
| 1471 | /* Single NoA usage in Scanning */ |
| 1472 | tANI_U8 useNoA; |
| 1473 | |
| 1474 | /* Indicates the scan duration (in ms) */ |
| 1475 | tANI_U16 scanDuration; |
| 1476 | |
| 1477 | } tInitScanConParams, * tpInitScanConParams; |
| 1478 | |
| 1479 | typedef PACKED_PRE struct PACKED_POST |
| 1480 | { |
| 1481 | tHalMsgHeader header; |
| 1482 | tInitScanConParams initScanParams; |
| 1483 | } tHalInitScanConReqMsg, *tpHalInitScanConReqMsg; |
| 1484 | |
| 1485 | |
| 1486 | /*--------------------------------------------------------------------------- |
| 1487 | WLAN_HAL_INIT_SCAN_RSP |
| 1488 | ---------------------------------------------------------------------------*/ |
| 1489 | |
| 1490 | typedef PACKED_PRE struct PACKED_POST |
| 1491 | { |
| 1492 | /*success or failure */ |
| 1493 | tANI_U32 status; |
| 1494 | |
| 1495 | }tHalInitScanRspParams, *tpHalInitScanRspParams; |
| 1496 | |
| 1497 | typedef PACKED_PRE struct PACKED_POST |
| 1498 | { |
| 1499 | tHalMsgHeader header; |
| 1500 | tHalInitScanRspParams initScanRspParams; |
| 1501 | } tHalInitScanRspMsg, *tpHalInitScanRspMsg; |
| 1502 | |
| 1503 | /*--------------------------------------------------------------------------- |
| 1504 | WLAN_HAL_START_SCAN_REQ |
| 1505 | ---------------------------------------------------------------------------*/ |
| 1506 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1507 | typedef PACKED_PRE struct PACKED_POST |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1508 | { |
| 1509 | /*Indicates the channel to scan*/ |
| 1510 | tANI_U8 scanChannel; |
| 1511 | |
| 1512 | } tStartScanParams, * tpStartScanParams; |
| 1513 | |
| 1514 | typedef PACKED_PRE struct PACKED_POST |
| 1515 | { |
| 1516 | tHalMsgHeader header; |
| 1517 | tStartScanParams startScanParams; |
| 1518 | } tHalStartScanReqMsg, *tpHalStartScanReqMsg; |
| 1519 | |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 1520 | typedef PACKED_PRE struct PACKED_POST |
| 1521 | { |
| 1522 | tHalMsgHeader header; |
| 1523 | } tHalMotionEventReqMsg, *tpHalMotionEventReqMsg; |
| 1524 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1525 | /*--------------------------------------------------------------------------- |
| 1526 | WLAN_HAL_START_SCAN_RSP |
| 1527 | ---------------------------------------------------------------------------*/ |
| 1528 | |
| 1529 | typedef PACKED_PRE struct PACKED_POST |
| 1530 | { |
| 1531 | /*success or failure */ |
| 1532 | tANI_U32 status; |
| 1533 | |
| 1534 | tANI_U32 startTSF[2]; |
| 1535 | tPowerdBm txMgmtPower; |
| 1536 | |
| 1537 | }tHalStartScanRspParams, *tpHalStartScanRspParams; |
| 1538 | |
| 1539 | typedef PACKED_PRE struct PACKED_POST |
| 1540 | { |
| 1541 | tHalMsgHeader header; |
| 1542 | tHalStartScanRspParams startScanRspParams; |
| 1543 | } tHalStartScanRspMsg, *tpHalStartScanRspMsg; |
| 1544 | |
| 1545 | /*--------------------------------------------------------------------------- |
| 1546 | WLAN_HAL_END_SCAN_REQ |
| 1547 | ---------------------------------------------------------------------------*/ |
| 1548 | |
| 1549 | typedef PACKED_PRE struct PACKED_POST |
| 1550 | { |
| 1551 | /*Indicates the channel to stop scanning. Not used really. But retained |
| 1552 | for symmetry with "start Scan" message. It can also help in error |
| 1553 | check if needed.*/ |
| 1554 | tANI_U8 scanChannel; |
| 1555 | |
| 1556 | } tEndScanParams, *tpEndScanParams; |
| 1557 | |
| 1558 | typedef PACKED_PRE struct PACKED_POST |
| 1559 | { |
| 1560 | tHalMsgHeader header; |
| 1561 | tEndScanParams endScanParams; |
| 1562 | } tHalEndScanReqMsg, *tpHalEndScanReqMsg; |
| 1563 | |
| 1564 | /*--------------------------------------------------------------------------- |
| 1565 | WLAN_HAL_END_SCAN_RSP |
| 1566 | ---------------------------------------------------------------------------*/ |
| 1567 | |
| 1568 | typedef PACKED_PRE struct PACKED_POST |
| 1569 | { |
| 1570 | /*success or failure */ |
| 1571 | tANI_U32 status; |
| 1572 | |
| 1573 | }tHalEndScanRspParams, *tpHalEndScanRspParams; |
| 1574 | |
| 1575 | typedef PACKED_PRE struct PACKED_POST |
| 1576 | { |
| 1577 | tHalMsgHeader header; |
| 1578 | tHalEndScanRspParams endScanRspParams; |
| 1579 | } tHalEndScanRspMsg, *tpHalEndScanRspMsg; |
| 1580 | |
| 1581 | /*--------------------------------------------------------------------------- |
| 1582 | WLAN_HAL_FINISH_SCAN_REQ |
| 1583 | ---------------------------------------------------------------------------*/ |
| 1584 | |
| 1585 | typedef PACKED_PRE struct PACKED_POST |
| 1586 | { |
| 1587 | /* Identifies the operational state of the AP/STA |
| 1588 | * LEARN - AP Role SCAN - STA Role */ |
| 1589 | eHalSysMode scanMode; |
| 1590 | |
| 1591 | /*Operating channel to tune to.*/ |
| 1592 | tANI_U8 currentOperChannel; |
| 1593 | |
| 1594 | /*Channel Bonding state If 20/40 MHz is operational, this will indicate the |
| 1595 | 40 MHz extension channel in combination with the control channel*/ |
| 1596 | ePhyChanBondState cbState; |
| 1597 | |
| 1598 | /*BSSID of the BSS*/ |
| 1599 | tSirMacAddr bssid; |
| 1600 | |
| 1601 | /*Whether BSS needs to be notified*/ |
| 1602 | tANI_U8 notifyBss; |
| 1603 | |
| 1604 | /*Kind of frame to be used for notifying the BSS (Data Null, QoS Null, or |
| 1605 | CTS to Self). Must always be a valid frame type.*/ |
| 1606 | tANI_U8 frameType; |
| 1607 | |
| 1608 | /*UMAC has the option of passing the MAC frame to be used for notifying |
| 1609 | the BSS. If non-zero, HAL will use the MAC frame buffer pointed to by |
| 1610 | macMgmtHdr. If zero, HAL will generate the appropriate MAC frame based on |
| 1611 | frameType.*/ |
| 1612 | tANI_U8 frameLength; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1613 | |
| 1614 | /*Following the framelength there is a MAC frame buffer if frameLength |
| 1615 | is non-zero.*/ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1616 | tSirMacMgmtHdr macMgmtHdr; |
| 1617 | |
| 1618 | /*Entry to hold number of active BSS idx's*/ |
| 1619 | tSirScanEntry scanEntry; |
| 1620 | |
| 1621 | } tFinishScanParams, *tpFinishScanParams; |
| 1622 | |
| 1623 | typedef PACKED_PRE struct PACKED_POST |
| 1624 | { |
| 1625 | tHalMsgHeader header; |
| 1626 | tFinishScanParams finishScanParams; |
| 1627 | } tHalFinishScanReqMsg, *tpHalFinishScanReqMsg; |
| 1628 | |
| 1629 | /*--------------------------------------------------------------------------- |
| 1630 | WLAN_HAL_FINISH_SCAN_RSP |
| 1631 | ---------------------------------------------------------------------------*/ |
| 1632 | |
| 1633 | typedef PACKED_PRE struct PACKED_POST |
| 1634 | { |
| 1635 | /*success or failure */ |
| 1636 | tANI_U32 status; |
| 1637 | |
| 1638 | }tHalFinishScanRspParams, *tpHalFinishScanRspParams; |
| 1639 | |
| 1640 | typedef PACKED_PRE struct PACKED_POST |
| 1641 | { |
| 1642 | tHalMsgHeader header; |
| 1643 | tHalFinishScanRspParams finishScanRspParams; |
| 1644 | } tHalFinishScanRspMsg, *tpHalFinishScanRspMsg; |
| 1645 | |
Srinivas Dasari | 4258463 | 2014-11-26 20:37:19 +0530 | [diff] [blame] | 1646 | typedef PACKED_PRE struct PACKED_POST |
| 1647 | { |
| 1648 | tSetStaKeyParams keyParams; |
| 1649 | uint8 pn[6]; |
| 1650 | } tHalEncConfigParams; |
| 1651 | |
| 1652 | typedef PACKED_PRE struct PACKED_POST |
| 1653 | { |
| 1654 | uint16 length; |
| 1655 | uint8 data[DISA_MAX_PAYLOAD_SIZE]; |
| 1656 | } tHalDisaPayload; |
| 1657 | |
| 1658 | typedef PACKED_PRE struct PACKED_POST |
| 1659 | { |
| 1660 | #ifdef BYTE_ORDER_BIG_ENDIAN |
| 1661 | uint8 reserved1 : 1; |
| 1662 | uint8 ackpolicy : 2; |
| 1663 | uint8 eosp : 1; |
| 1664 | uint8 tid : 4; |
| 1665 | |
| 1666 | uint8 appsbufferstate : 8; |
| 1667 | #else |
| 1668 | uint8 appsbufferstate : 8; |
| 1669 | |
| 1670 | uint8 tid : 4; |
| 1671 | uint8 eosp : 1; |
| 1672 | uint8 ackpolicy : 2; |
| 1673 | uint8 reserved1 : 1; |
| 1674 | #endif |
| 1675 | } tHalQosCtrlFieldType; |
| 1676 | |
| 1677 | typedef PACKED_PRE struct PACKED_POST |
| 1678 | { |
| 1679 | #ifdef BYTE_ORDER_BIG_ENDIAN |
| 1680 | uint16 subtype : 4; |
| 1681 | uint16 type : 2; |
| 1682 | uint16 protocol : 2; |
| 1683 | |
| 1684 | uint16 order : 1; |
| 1685 | uint16 wep : 1; |
| 1686 | uint16 moredata : 1; |
| 1687 | uint16 pm : 1; |
| 1688 | uint16 retry : 1; |
| 1689 | uint16 morefrag : 1; |
| 1690 | uint16 fromds : 1; |
| 1691 | uint16 tods : 1; |
| 1692 | #else |
| 1693 | |
| 1694 | uint16 tods : 1; |
| 1695 | uint16 fromds : 1; |
| 1696 | uint16 morefrag : 1; |
| 1697 | uint16 retry : 1; |
| 1698 | uint16 pm : 1; |
| 1699 | uint16 moredata : 1; |
| 1700 | uint16 wep : 1; |
| 1701 | uint16 order : 1; |
| 1702 | |
| 1703 | uint16 protocol : 2; |
| 1704 | uint16 type : 2; |
| 1705 | uint16 subtype : 4; |
| 1706 | #endif |
| 1707 | } tHalFrmCtrlType; |
| 1708 | |
| 1709 | typedef PACKED_PRE struct PACKED_POST |
| 1710 | { |
| 1711 | /* Frame control field */ |
| 1712 | tHalFrmCtrlType fc; |
| 1713 | /* Duration ID */ |
| 1714 | uint16 usDurationId; |
| 1715 | /* Address 1 field */ |
| 1716 | uint8 vA1[HAL_MAC_ADDR_LEN]; |
| 1717 | /* Address 2 field */ |
| 1718 | uint8 vA2[HAL_MAC_ADDR_LEN]; |
| 1719 | /* Address 3 field */ |
| 1720 | uint8 vA3[HAL_MAC_ADDR_LEN]; |
| 1721 | /* Sequence control field */ |
| 1722 | uint16 seqNum; |
| 1723 | /* Optional A4 address */ |
| 1724 | uint8 optvA4[HAL_MAC_ADDR_LEN]; |
| 1725 | /* Optional QOS control field */ |
| 1726 | tHalQosCtrlFieldType usQosCtrl; |
| 1727 | } tHal80211Header; |
| 1728 | |
| 1729 | typedef PACKED_PRE struct PACKED_POST |
| 1730 | { |
| 1731 | tHal80211Header macHeader; |
| 1732 | tHalEncConfigParams encParams; |
| 1733 | tHalDisaPayload data; |
| 1734 | } tSetEncryptedDataParams, *tpSetEncryptedDataParams; |
| 1735 | |
| 1736 | typedef PACKED_PRE struct PACKED_POST |
| 1737 | { |
| 1738 | tHalMsgHeader header; |
| 1739 | tSetEncryptedDataParams encryptedDataParams; |
| 1740 | } tSetEncryptedDataReqMsg, *tpSetEncryptedDataReqMsg; |
| 1741 | |
| 1742 | typedef PACKED_PRE struct PACKED_POST |
| 1743 | { |
| 1744 | tANI_U32 status; |
| 1745 | tHalDisaPayload encryptedPayload; |
| 1746 | } tSetEncryptedDataRspParams, *tpSetEncryptedDataRspParams; |
| 1747 | |
| 1748 | typedef PACKED_PRE struct PACKED_POST |
| 1749 | { |
| 1750 | tHalMsgHeader header; |
| 1751 | tSetEncryptedDataRspParams encryptedDataRspParams; |
| 1752 | } tSetEncryptedDataRspMsg, *tpSetEncryptedDataRspMsg; |
| 1753 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1754 | /*--------------------------------------------------------------------------- |
| 1755 | WLAN_HAL_CONFIG_STA_REQ |
| 1756 | ---------------------------------------------------------------------------*/ |
| 1757 | |
| 1758 | typedef PACKED_PRE struct PACKED_POST { |
| 1759 | /* |
| 1760 | * For Self STA Entry: this represents Self Mode. |
| 1761 | * For Peer Stations, this represents the mode of the peer. |
| 1762 | * On Station: |
| 1763 | * --this mode is updated when PE adds the Self Entry. |
| 1764 | * -- OR when PE sends 'ADD_BSS' message and station context in BSS is used to indicate the mode of the AP. |
| 1765 | * ON AP: |
| 1766 | * -- this mode is updated when PE sends 'ADD_BSS' and Sta entry for that BSS is used |
| 1767 | * to indicate the self mode of the AP. |
| 1768 | * -- OR when a station is associated, PE sends 'ADD_STA' message with this mode updated. |
| 1769 | */ |
| 1770 | |
| 1771 | tStaRateMode opRateMode; |
| 1772 | // 11b, 11a and aniLegacyRates are IE rates which gives rate in unit of 500Kbps |
| 1773 | tANI_U16 llbRates[SIR_NUM_11B_RATES]; |
| 1774 | tANI_U16 llaRates[SIR_NUM_11A_RATES]; |
| 1775 | tANI_U16 aniLegacyRates[SIR_NUM_POLARIS_RATES]; |
| 1776 | tANI_U16 reserved; |
| 1777 | |
| 1778 | //Taurus only supports 26 Titan Rates(no ESF/concat Rates will be supported) |
| 1779 | //First 26 bits are reserved for those Titan rates and |
| 1780 | //the last 4 bits(bit28-31) for Taurus, 2(bit26-27) bits are reserved. |
| 1781 | tANI_U32 aniEnhancedRateBitmap; //Titan and Taurus Rates |
| 1782 | |
| 1783 | /* |
| 1784 | * 0-76 bits used, remaining reserved |
| 1785 | * bits 0-15 and 32 should be set. |
| 1786 | */ |
| 1787 | tANI_U8 supportedMCSSet[SIR_MAC_MAX_SUPPORTED_MCS_SET]; |
| 1788 | |
| 1789 | /* |
| 1790 | * RX Highest Supported Data Rate defines the highest data |
| 1791 | * rate that the STA is able to receive, in unites of 1Mbps. |
| 1792 | * This value is derived from "Supported MCS Set field" inside |
| 1793 | * the HT capability element. |
| 1794 | */ |
| 1795 | tANI_U16 rxHighestDataRate; |
| 1796 | |
| 1797 | } tSirSupportedRates, *tpSirSupportedRates; |
| 1798 | |
| 1799 | typedef PACKED_PRE struct PACKED_POST |
| 1800 | { |
| 1801 | /*BSSID of STA*/ |
| 1802 | tSirMacAddr bssId; |
| 1803 | |
| 1804 | /*ASSOC ID, as assigned by UMAC*/ |
| 1805 | tANI_U16 assocId; |
| 1806 | |
| 1807 | /* STA entry Type: 0 - Self, 1 - Other/Peer, 2 - BSSID, 3 - BCAST */ |
| 1808 | tANI_U8 staType; |
| 1809 | |
| 1810 | /*Short Preamble Supported.*/ |
| 1811 | tANI_U8 shortPreambleSupported; |
| 1812 | |
| 1813 | /*MAC Address of STA*/ |
| 1814 | tSirMacAddr staMac; |
| 1815 | |
| 1816 | /*Listen interval of the STA*/ |
| 1817 | tANI_U16 listenInterval; |
| 1818 | |
| 1819 | /*Support for 11e/WMM*/ |
| 1820 | tANI_U8 wmmEnabled; |
| 1821 | |
| 1822 | /*11n HT capable STA*/ |
| 1823 | tANI_U8 htCapable; |
| 1824 | |
| 1825 | /*TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz*/ |
| 1826 | tANI_U8 txChannelWidthSet; |
| 1827 | |
| 1828 | /*RIFS mode 0 - NA, 1 - Allowed */ |
| 1829 | tANI_U8 rifsMode; |
| 1830 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 1831 | /*L-SIG TXOP Protection mechanism |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1832 | 0 - No Support, 1 - Supported |
| 1833 | SG - there is global field */ |
| 1834 | tANI_U8 lsigTxopProtection; |
| 1835 | |
| 1836 | /*Max Ampdu Size supported by STA. TPE programming. |
| 1837 | 0 : 8k , 1 : 16k, 2 : 32k, 3 : 64k */ |
| 1838 | tANI_U8 maxAmpduSize; |
| 1839 | |
| 1840 | /*Max Ampdu density. Used by RA. 3 : 0~7 : 2^(11nAMPDUdensity -4)*/ |
| 1841 | tANI_U8 maxAmpduDensity; |
| 1842 | |
| 1843 | /*Max AMSDU size 1 : 3839 bytes, 0 : 7935 bytes*/ |
| 1844 | tANI_U8 maxAmsduSize; |
| 1845 | |
| 1846 | /*Short GI support for 40Mhz packets*/ |
| 1847 | tANI_U8 fShortGI40Mhz; |
| 1848 | |
| 1849 | /*Short GI support for 20Mhz packets*/ |
| 1850 | tANI_U8 fShortGI20Mhz; |
| 1851 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1852 | /*Robust Management Frame (RMF) enabled/disabled*/ |
| 1853 | tANI_U8 rmfEnabled; |
| 1854 | |
| 1855 | /* The unicast encryption type in the association */ |
| 1856 | tANI_U32 encryptType; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1857 | |
| 1858 | /*HAL should update the existing STA entry, if this flag is set. UMAC |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1859 | will set this flag in case of RE-ASSOC, where we want to reuse the old |
| 1860 | STA ID. 0 = Add, 1 = Update*/ |
| 1861 | tANI_U8 action; |
| 1862 | |
| 1863 | /*U-APSD Flags: 1b per AC. Encoded as follows: |
| 1864 | b7 b6 b5 b4 b3 b2 b1 b0 = |
| 1865 | X X X X BE BK VI VO */ |
| 1866 | tANI_U8 uAPSD; |
| 1867 | |
| 1868 | /*Max SP Length*/ |
| 1869 | tANI_U8 maxSPLen; |
| 1870 | |
| 1871 | /*11n Green Field preamble support |
| 1872 | 0 - Not supported, 1 - Supported */ |
| 1873 | tANI_U8 greenFieldCapable; |
| 1874 | |
| 1875 | /*MIMO Power Save mode*/ |
| 1876 | tSirMacHTMIMOPowerSaveState mimoPS; |
| 1877 | |
| 1878 | /*Delayed BA Support*/ |
| 1879 | tANI_U8 delayedBASupport; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1880 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1881 | /*Max AMPDU duration in 32us*/ |
| 1882 | tANI_U8 us32MaxAmpduDuration; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1883 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1884 | /*HT STA should set it to 1 if it is enabled in BSS. HT STA should set |
| 1885 | it to 0 if AP does not support it. This indication is sent to HAL and |
| 1886 | HAL uses this flag to pickup up appropriate 40Mhz rates.*/ |
| 1887 | tANI_U8 fDsssCckMode40Mhz; |
| 1888 | |
| 1889 | /* Valid STA Idx when action=Update. Set to 0xFF when invalid! |
| 1890 | Retained for backward compalibity with existing HAL code*/ |
| 1891 | tANI_U8 staIdx; |
| 1892 | |
| 1893 | /* BSSID of BSS to which station is associated. Set to 0xFF when invalid. |
| 1894 | Retained for backward compalibity with existing HAL code*/ |
| 1895 | tANI_U8 bssIdx; |
| 1896 | |
| 1897 | tANI_U8 p2pCapableSta; |
| 1898 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1899 | /*Reserved to align next field on a dword boundary*/ |
| 1900 | tANI_U8 reserved; |
| 1901 | |
| 1902 | /*These rates are the intersection of peer and self capabilities.*/ |
| 1903 | tSirSupportedRates supportedRates; |
| 1904 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1905 | } tConfigStaParams, *tpConfigStaParams; |
| 1906 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1907 | /*------------------------------------------------------------------------ |
| 1908 | * WLAN_HAL_CONFIG_STA_REQ |
| 1909 | * ----------------------------------------------------------------------*/ |
| 1910 | |
| 1911 | typedef PACKED_PRE struct PACKED_POST { |
| 1912 | /* |
| 1913 | * For Self STA Entry: this represents Self Mode. |
| 1914 | * For Peer Stations, this represents the mode of the peer. |
| 1915 | * On Station: |
| 1916 | * --this mode is updated when PE adds the Self Entry. |
| 1917 | * -- OR when PE sends 'ADD_BSS' message and station context in BSS is used to indicate the mode of the AP. |
| 1918 | * ON AP: |
| 1919 | * -- this mode is updated when PE sends 'ADD_BSS' and Sta entry for that BSS is used |
| 1920 | * to indicate the self mode of the AP. |
| 1921 | * -- OR when a station is associated, PE sends 'ADD_STA' message with this mode updated. |
| 1922 | */ |
| 1923 | |
| 1924 | tStaRateMode opRateMode; |
| 1925 | // 11b, 11a and aniLegacyRates are IE rates which gives rate in unit of 500Kbps |
| 1926 | tANI_U16 llbRates[SIR_NUM_11B_RATES]; |
| 1927 | tANI_U16 llaRates[SIR_NUM_11A_RATES]; |
| 1928 | tANI_U16 aniLegacyRates[SIR_NUM_POLARIS_RATES]; |
| 1929 | tANI_U16 reserved; |
| 1930 | |
| 1931 | //Taurus only supports 26 Titan Rates(no ESF/concat Rates will be supported) |
| 1932 | //First 26 bits are reserved for those Titan rates and |
| 1933 | //the last 4 bits(bit28-31) for Taurus, 2(bit26-27) bits are reserved. |
| 1934 | tANI_U32 aniEnhancedRateBitmap; //Titan and Taurus Rates |
| 1935 | |
| 1936 | /* |
| 1937 | * 0-76 bits used, remaining reserved |
| 1938 | * bits 0-15 and 32 should be set. |
| 1939 | */ |
| 1940 | tANI_U8 supportedMCSSet[SIR_MAC_MAX_SUPPORTED_MCS_SET]; |
| 1941 | |
| 1942 | /* |
| 1943 | * RX Highest Supported Data Rate defines the highest data |
| 1944 | * rate that the STA is able to receive, in unites of 1Mbps. |
| 1945 | * This value is derived from "Supported MCS Set field" inside |
| 1946 | * the HT capability element. |
| 1947 | */ |
| 1948 | tANI_U16 rxHighestDataRate; |
| 1949 | |
| 1950 | /* Indicates the Maximum MCS that can be received for each number |
| 1951 | * of spacial streams */ |
| 1952 | tANI_U16 vhtRxMCSMap; |
| 1953 | |
| 1954 | /*Indicate the highest VHT data rate that the STA is able to receive*/ |
| 1955 | tANI_U16 vhtRxHighestDataRate; |
| 1956 | |
| 1957 | /* Indicates the Maximum MCS that can be transmitted for each number |
| 1958 | * of spacial streams */ |
| 1959 | tANI_U16 vhtTxMCSMap; |
| 1960 | |
| 1961 | /*Indicate the highest VHT data rate that the STA is able to transmit*/ |
| 1962 | tANI_U16 vhtTxHighestDataRate; |
| 1963 | |
| 1964 | } tSirSupportedRates_V1, *tpSirSupportedRates_V1; |
| 1965 | |
| 1966 | typedef PACKED_PRE struct PACKED_POST |
| 1967 | { |
| 1968 | /*BSSID of STA*/ |
| 1969 | tSirMacAddr bssId; |
| 1970 | |
| 1971 | /*ASSOC ID, as assigned by UMAC*/ |
| 1972 | tANI_U16 assocId; |
| 1973 | |
| 1974 | /* STA entry Type: 0 - Self, 1 - Other/Peer, 2 - BSSID, 3 - BCAST */ |
| 1975 | tANI_U8 staType; |
| 1976 | |
| 1977 | /*Short Preamble Supported.*/ |
| 1978 | tANI_U8 shortPreambleSupported; |
| 1979 | |
| 1980 | /*MAC Address of STA*/ |
| 1981 | tSirMacAddr staMac; |
| 1982 | |
| 1983 | /*Listen interval of the STA*/ |
| 1984 | tANI_U16 listenInterval; |
| 1985 | |
| 1986 | /*Support for 11e/WMM*/ |
| 1987 | tANI_U8 wmmEnabled; |
| 1988 | |
| 1989 | /*11n HT capable STA*/ |
| 1990 | tANI_U8 htCapable; |
| 1991 | |
| 1992 | /*TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz*/ |
| 1993 | tANI_U8 txChannelWidthSet; |
| 1994 | |
| 1995 | /*RIFS mode 0 - NA, 1 - Allowed */ |
| 1996 | tANI_U8 rifsMode; |
| 1997 | |
| 1998 | /*L-SIG TXOP Protection mechanism |
| 1999 | 0 - No Support, 1 - Supported |
| 2000 | SG - there is global field */ |
| 2001 | tANI_U8 lsigTxopProtection; |
| 2002 | |
| 2003 | /*Max Ampdu Size supported by STA. TPE programming. |
| 2004 | 0 : 8k , 1 : 16k, 2 : 32k, 3 : 64k */ |
| 2005 | tANI_U8 maxAmpduSize; |
| 2006 | |
| 2007 | /*Max Ampdu density. Used by RA. 3 : 0~7 : 2^(11nAMPDUdensity -4)*/ |
| 2008 | tANI_U8 maxAmpduDensity; |
| 2009 | |
| 2010 | /*Max AMSDU size 1 : 3839 bytes, 0 : 7935 bytes*/ |
| 2011 | tANI_U8 maxAmsduSize; |
| 2012 | |
| 2013 | /*Short GI support for 40Mhz packets*/ |
| 2014 | tANI_U8 fShortGI40Mhz; |
| 2015 | |
| 2016 | /*Short GI support for 20Mhz packets*/ |
| 2017 | tANI_U8 fShortGI20Mhz; |
| 2018 | |
| 2019 | /*Robust Management Frame (RMF) enabled/disabled*/ |
| 2020 | tANI_U8 rmfEnabled; |
| 2021 | |
| 2022 | /* The unicast encryption type in the association */ |
| 2023 | tANI_U32 encryptType; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2024 | |
| 2025 | /*HAL should update the existing STA entry, if this flag is set. UMAC |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2026 | will set this flag in case of RE-ASSOC, where we want to reuse the old |
| 2027 | STA ID. 0 = Add, 1 = Update*/ |
| 2028 | tANI_U8 action; |
| 2029 | |
| 2030 | /*U-APSD Flags: 1b per AC. Encoded as follows: |
| 2031 | b7 b6 b5 b4 b3 b2 b1 b0 = |
| 2032 | X X X X BE BK VI VO */ |
| 2033 | tANI_U8 uAPSD; |
| 2034 | |
| 2035 | /*Max SP Length*/ |
| 2036 | tANI_U8 maxSPLen; |
| 2037 | |
| 2038 | /*11n Green Field preamble support |
| 2039 | 0 - Not supported, 1 - Supported */ |
| 2040 | tANI_U8 greenFieldCapable; |
| 2041 | |
| 2042 | /*MIMO Power Save mode*/ |
| 2043 | tSirMacHTMIMOPowerSaveState mimoPS; |
| 2044 | |
| 2045 | /*Delayed BA Support*/ |
| 2046 | tANI_U8 delayedBASupport; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2047 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2048 | /*Max AMPDU duration in 32us*/ |
| 2049 | tANI_U8 us32MaxAmpduDuration; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2050 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2051 | /*HT STA should set it to 1 if it is enabled in BSS. HT STA should set |
| 2052 | it to 0 if AP does not support it. This indication is sent to HAL and |
| 2053 | HAL uses this flag to pickup up appropriate 40Mhz rates.*/ |
| 2054 | tANI_U8 fDsssCckMode40Mhz; |
| 2055 | |
| 2056 | /* Valid STA Idx when action=Update. Set to 0xFF when invalid! |
| 2057 | Retained for backward compalibity with existing HAL code*/ |
| 2058 | tANI_U8 staIdx; |
| 2059 | |
| 2060 | /* BSSID of BSS to which station is associated. Set to 0xFF when invalid. |
| 2061 | Retained for backward compalibity with existing HAL code*/ |
| 2062 | tANI_U8 bssIdx; |
| 2063 | |
| 2064 | tANI_U8 p2pCapableSta; |
| 2065 | |
| 2066 | /*Reserved to align next field on a dword boundary*/ |
Gopichand Nakkala | b2d2c31 | 2013-01-04 11:41:02 -0800 | [diff] [blame] | 2067 | tANI_U8 htLdpcEnabled:1; |
| 2068 | tANI_U8 vhtLdpcEnabled:1; |
Gopichand Nakkala | f1c2c78 | 2013-01-21 15:42:29 -0800 | [diff] [blame] | 2069 | tANI_U8 vhtTxBFEnabled:1; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2070 | tANI_U8 vhtTxMUBformeeCapable:1; |
| 2071 | tANI_U8 reserved:4; |
Gopichand Nakkala | b2d2c31 | 2013-01-04 11:41:02 -0800 | [diff] [blame] | 2072 | |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 2073 | /*These rates are the intersection of peer and self capabilities.*/ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2074 | tSirSupportedRates_V1 supportedRates; |
| 2075 | |
| 2076 | tANI_U8 vhtCapable; |
| 2077 | tANI_U8 vhtTxChannelWidthSet; |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 2078 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2079 | } tConfigStaParams_V1, *tpConfigStaParams_V1; |
| 2080 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2081 | typedef PACKED_PRE struct PACKED_POST |
| 2082 | { |
| 2083 | tHalMsgHeader header; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2084 | PACKED_PRE union PACKED_POST { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2085 | tConfigStaParams configStaParams; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2086 | tConfigStaParams_V1 configStaParams_V1; |
| 2087 | } uStaParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2088 | } tConfigStaReqMsg, *tpConfigStaReqMsg; |
| 2089 | |
| 2090 | /*--------------------------------------------------------------------------- |
| 2091 | WLAN_HAL_CONFIG_STA_RSP |
| 2092 | ---------------------------------------------------------------------------*/ |
| 2093 | |
| 2094 | typedef PACKED_PRE struct PACKED_POST |
| 2095 | { |
| 2096 | /*success or failure */ |
| 2097 | tANI_U32 status; |
| 2098 | |
| 2099 | /* Station index; valid only when 'status' field value SUCCESS */ |
| 2100 | tANI_U8 staIdx; |
| 2101 | |
| 2102 | /* BSSID Index of BSS to which the station is associated */ |
| 2103 | tANI_U8 bssIdx; |
| 2104 | |
| 2105 | /* DPU Index for PTK */ |
| 2106 | tANI_U8 dpuIndex; |
| 2107 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2108 | /* DPU Index for GTK */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2109 | tANI_U8 bcastDpuIndex; |
| 2110 | |
| 2111 | /*DPU Index for IGTK */ |
| 2112 | tANI_U8 bcastMgmtDpuIdx; |
| 2113 | |
| 2114 | /*PTK DPU signature*/ |
| 2115 | tANI_U8 ucUcastSig; |
| 2116 | |
| 2117 | /*GTK DPU isignature*/ |
| 2118 | tANI_U8 ucBcastSig; |
| 2119 | |
| 2120 | /* IGTK DPU signature*/ |
| 2121 | tANI_U8 ucMgmtSig; |
| 2122 | |
| 2123 | tANI_U8 p2pCapableSta; |
| 2124 | |
| 2125 | }tConfigStaRspParams, *tpConfigStaRspParams; |
| 2126 | |
| 2127 | typedef PACKED_PRE struct PACKED_POST |
| 2128 | { |
| 2129 | tHalMsgHeader header; |
| 2130 | tConfigStaRspParams configStaRspParams; |
| 2131 | }tConfigStaRspMsg, *tpConfigStaRspMsg; |
| 2132 | |
| 2133 | /*--------------------------------------------------------------------------- |
| 2134 | WLAN_HAL_DELETE_STA_REQ |
| 2135 | ---------------------------------------------------------------------------*/ |
| 2136 | |
| 2137 | /* Delete STA Request params */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2138 | typedef PACKED_PRE struct PACKED_POST |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2139 | { |
| 2140 | /* Index of STA to delete */ |
| 2141 | tANI_U8 staIdx; |
| 2142 | } tDeleteStaParams, *tpDeleteStaParams; |
| 2143 | |
| 2144 | /* Delete STA Request message*/ |
| 2145 | typedef PACKED_PRE struct PACKED_POST |
| 2146 | { |
| 2147 | tHalMsgHeader header; |
| 2148 | tDeleteStaParams delStaParams; |
| 2149 | } tDeleteStaReqMsg, *tpDeleteStaReqMsg; |
| 2150 | |
| 2151 | /*--------------------------------------------------------------------------- |
| 2152 | WLAN_HAL_DELETE_STA_RSP |
| 2153 | ---------------------------------------------------------------------------*/ |
| 2154 | |
| 2155 | /* Delete STA Response Params */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2156 | typedef PACKED_PRE struct PACKED_POST |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2157 | { |
| 2158 | /*success or failure */ |
| 2159 | tANI_U32 status; |
| 2160 | |
| 2161 | /* Index of STA deleted */ |
| 2162 | tANI_U8 staId; |
| 2163 | } tDeleteStaRspParams, *tpDeleteStaRspParams; |
| 2164 | |
| 2165 | /* Delete STA Response message*/ |
| 2166 | typedef PACKED_PRE struct PACKED_POST |
| 2167 | { |
| 2168 | tHalMsgHeader header; |
| 2169 | tDeleteStaRspParams delStaRspParams; |
| 2170 | } tDeleteStaRspMsg, *tpDeleteStaRspMsg; |
| 2171 | |
| 2172 | /*--------------------------------------------------------------------------- |
| 2173 | WLAN_HAL_CONFIG_BSS_REQ |
| 2174 | ---------------------------------------------------------------------------*/ |
| 2175 | |
| 2176 | //12 Bytes long because this structure can be used to represent rate |
| 2177 | //and extended rate set IEs. The parser assume this to be at least 12 |
| 2178 | typedef __ani_attr_pre_packed struct sSirMacRateSet |
| 2179 | { |
| 2180 | tANI_U8 numRates; |
| 2181 | tANI_U8 rate[SIR_MAC_RATESET_EID_MAX]; |
| 2182 | } __ani_attr_packed tSirMacRateSet; |
| 2183 | |
| 2184 | // access category record |
| 2185 | typedef __ani_attr_pre_packed struct sSirMacAciAifsn |
| 2186 | { |
| 2187 | #ifndef ANI_LITTLE_BIT_ENDIAN |
| 2188 | tANI_U8 rsvd : 1; |
| 2189 | tANI_U8 aci : 2; |
| 2190 | tANI_U8 acm : 1; |
| 2191 | tANI_U8 aifsn : 4; |
| 2192 | #else |
| 2193 | tANI_U8 aifsn : 4; |
| 2194 | tANI_U8 acm : 1; |
| 2195 | tANI_U8 aci : 2; |
| 2196 | tANI_U8 rsvd : 1; |
| 2197 | #endif |
| 2198 | } __ani_attr_packed tSirMacAciAifsn; |
| 2199 | |
| 2200 | // contention window size |
| 2201 | typedef __ani_attr_pre_packed struct sSirMacCW |
| 2202 | { |
| 2203 | #ifndef ANI_LITTLE_BIT_ENDIAN |
| 2204 | tANI_U8 max : 4; |
| 2205 | tANI_U8 min : 4; |
| 2206 | #else |
| 2207 | tANI_U8 min : 4; |
| 2208 | tANI_U8 max : 4; |
| 2209 | #endif |
| 2210 | } __ani_attr_packed tSirMacCW; |
| 2211 | |
| 2212 | typedef __ani_attr_pre_packed struct sSirMacEdcaParamRecord |
| 2213 | { |
| 2214 | tSirMacAciAifsn aci; |
| 2215 | tSirMacCW cw; |
| 2216 | tANI_U16 txoplimit; |
| 2217 | } __ani_attr_packed tSirMacEdcaParamRecord; |
| 2218 | |
| 2219 | typedef __ani_attr_pre_packed struct sSirMacSSid |
| 2220 | { |
| 2221 | tANI_U8 length; |
| 2222 | tANI_U8 ssId[32]; |
| 2223 | } __ani_attr_packed tSirMacSSid; |
| 2224 | |
| 2225 | // Concurrency role. These are generic IDs that identify the various roles |
| 2226 | // in the software system. |
| 2227 | typedef enum { |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2228 | HAL_STA_MODE=0, |
| 2229 | HAL_STA_SAP_MODE=1, // to support softAp mode . This is misleading. It means AP MODE only. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2230 | HAL_P2P_CLIENT_MODE, |
| 2231 | HAL_P2P_GO_MODE, |
| 2232 | HAL_MONITOR_MODE, |
| 2233 | } tHalConMode; |
| 2234 | |
| 2235 | //This is a bit pattern to be set for each mode |
| 2236 | //bit 0 - sta mode |
| 2237 | //bit 1 - ap mode |
| 2238 | //bit 2 - p2p client mode |
| 2239 | //bit 3 - p2p go mode |
| 2240 | typedef enum |
| 2241 | { |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2242 | HAL_STA=1, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2243 | HAL_SAP=2, |
| 2244 | HAL_STA_SAP=3, //to support sta, softAp mode . This means STA+AP mode |
| 2245 | HAL_P2P_CLIENT=4, |
| 2246 | HAL_P2P_GO=8, |
| 2247 | HAL_MAX_CONCURRENCY_PERSONA=4 |
| 2248 | } tHalConcurrencyMode; |
| 2249 | |
Kiran Kumar Lokere | 0ad5cd3 | 2013-06-25 11:26:22 -0700 | [diff] [blame] | 2250 | // IFACE PERSONA for different Operating modes |
| 2251 | typedef enum |
| 2252 | { |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 2253 | HAL_IFACE_UNKNOWN=0, |
| 2254 | HAL_IFACE_STA_MODE=1, |
| 2255 | HAL_IFACE_P2P_MODE=2, |
| 2256 | HAL_IFACE_MAX=0x7FFFFFFF, |
Kiran Kumar Lokere | 0ad5cd3 | 2013-06-25 11:26:22 -0700 | [diff] [blame] | 2257 | } tHalIfacePersona; |
| 2258 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2259 | typedef PACKED_PRE struct PACKED_POST |
| 2260 | { |
| 2261 | /* BSSID */ |
| 2262 | tSirMacAddr bssId; |
| 2263 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2264 | /* Self Mac Address */ |
| 2265 | tSirMacAddr selfMacAddr; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2266 | |
| 2267 | /* BSS type */ |
| 2268 | tSirBssType bssType; |
| 2269 | |
| 2270 | /*Operational Mode: AP =0, STA = 1*/ |
| 2271 | tANI_U8 operMode; |
| 2272 | |
| 2273 | /*Network Type*/ |
| 2274 | tSirNwType nwType; |
| 2275 | |
| 2276 | /*Used to classify PURE_11G/11G_MIXED to program MTU*/ |
| 2277 | tANI_U8 shortSlotTimeSupported; |
| 2278 | |
| 2279 | /*Co-exist with 11a STA*/ |
| 2280 | tANI_U8 llaCoexist; |
| 2281 | |
| 2282 | /*Co-exist with 11b STA*/ |
| 2283 | tANI_U8 llbCoexist; |
| 2284 | |
| 2285 | /*Co-exist with 11g STA*/ |
| 2286 | tANI_U8 llgCoexist; |
| 2287 | |
| 2288 | /*Coexistence with 11n STA*/ |
| 2289 | tANI_U8 ht20Coexist; |
| 2290 | |
| 2291 | /*Non GF coexist flag*/ |
| 2292 | tANI_U8 llnNonGFCoexist; |
| 2293 | |
| 2294 | /*TXOP protection support*/ |
| 2295 | tANI_U8 fLsigTXOPProtectionFullSupport; |
| 2296 | |
| 2297 | /*RIFS mode*/ |
| 2298 | tANI_U8 fRIFSMode; |
| 2299 | |
| 2300 | /*Beacon Interval in TU*/ |
| 2301 | tSirMacBeaconInterval beaconInterval; |
| 2302 | |
| 2303 | /*DTIM period*/ |
| 2304 | tANI_U8 dtimPeriod; |
| 2305 | |
| 2306 | /*TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz*/ |
| 2307 | tANI_U8 txChannelWidthSet; |
| 2308 | |
| 2309 | /*Operating channel*/ |
| 2310 | tANI_U8 currentOperChannel; |
| 2311 | |
| 2312 | /*Extension channel for channel bonding*/ |
| 2313 | tANI_U8 currentExtChannel; |
| 2314 | |
| 2315 | /*Reserved to align next field on a dword boundary*/ |
| 2316 | tANI_U8 reserved; |
| 2317 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2318 | /*SSID of the BSS*/ |
| 2319 | tSirMacSSid ssId; |
| 2320 | |
| 2321 | /*HAL should update the existing BSS entry, if this flag is set. |
| 2322 | UMAC will set this flag in case of reassoc, where we want to resue the |
| 2323 | the old BSSID and still return success 0 = Add, 1 = Update*/ |
| 2324 | tANI_U8 action; |
| 2325 | |
| 2326 | /* MAC Rate Set */ |
| 2327 | tSirMacRateSet rateSet; |
| 2328 | |
| 2329 | /*Enable/Disable HT capabilities of the BSS*/ |
| 2330 | tANI_U8 htCapable; |
| 2331 | |
| 2332 | // Enable/Disable OBSS protection |
| 2333 | tANI_U8 obssProtEnabled; |
| 2334 | |
| 2335 | /*RMF enabled/disabled*/ |
| 2336 | tANI_U8 rmfEnabled; |
| 2337 | |
| 2338 | /*HT Operating Mode operating mode of the 802.11n STA*/ |
| 2339 | tSirMacHTOperatingMode htOperMode; |
| 2340 | |
| 2341 | /*Dual CTS Protection: 0 - Unused, 1 - Used*/ |
| 2342 | tANI_U8 dualCTSProtection; |
| 2343 | |
| 2344 | /* Probe Response Max retries */ |
| 2345 | tANI_U8 ucMaxProbeRespRetryLimit; |
| 2346 | |
| 2347 | /* To Enable Hidden ssid */ |
| 2348 | tANI_U8 bHiddenSSIDEn; |
| 2349 | |
| 2350 | /* To Enable Disable FW Proxy Probe Resp */ |
| 2351 | tANI_U8 bProxyProbeRespEn; |
| 2352 | |
| 2353 | /* Boolean to indicate if EDCA params are valid. UMAC might not have valid |
| 2354 | EDCA params or might not desire to apply EDCA params during config BSS. |
| 2355 | 0 implies Not Valid ; Non-Zero implies valid*/ |
| 2356 | tANI_U8 edcaParamsValid; |
| 2357 | |
| 2358 | /*EDCA Parameters for Best Effort Access Category*/ |
| 2359 | tSirMacEdcaParamRecord acbe; |
| 2360 | |
| 2361 | /*EDCA Parameters forBackground Access Category*/ |
| 2362 | tSirMacEdcaParamRecord acbk; |
| 2363 | |
| 2364 | /*EDCA Parameters for Video Access Category*/ |
| 2365 | tSirMacEdcaParamRecord acvi; |
| 2366 | |
| 2367 | /*EDCA Parameters for Voice Access Category*/ |
| 2368 | tSirMacEdcaParamRecord acvo; |
| 2369 | |
| 2370 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 2371 | tANI_U8 extSetStaKeyParamValid; //Ext Bss Config Msg if set |
| 2372 | tSetStaKeyParams extSetStaKeyParam; //SetStaKeyParams for ext bss msg |
| 2373 | #endif |
| 2374 | |
| 2375 | /* Persona for the BSS can be STA,AP,GO,CLIENT value same as tHalConMode */ |
| 2376 | tANI_U8 halPersona; |
| 2377 | |
| 2378 | tANI_U8 bSpectrumMgtEnable; |
| 2379 | |
| 2380 | /*HAL fills in the tx power used for mgmt frames in txMgmtPower*/ |
| 2381 | tANI_S8 txMgmtPower; |
| 2382 | /*maxTxPower has max power to be used after applying the power constraint if any */ |
| 2383 | tANI_S8 maxTxPower; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2384 | /*Context of the station being added in HW |
| 2385 | Add a STA entry for "itself" - |
| 2386 | On AP - Add the AP itself in an "STA context" |
| 2387 | On STA - Add the AP to which this STA is joining in an "STA context" */ |
| 2388 | tConfigStaParams staContext; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2389 | } tConfigBssParams, * tpConfigBssParams; |
| 2390 | |
| 2391 | |
| 2392 | /*-------------------------------------------------------------------------- |
| 2393 | * WLAN_HAL_CONFIG_BSS_REQ |
| 2394 | *--------------------------------------------------------------------------*/ |
| 2395 | typedef PACKED_PRE struct PACKED_POST |
| 2396 | { |
| 2397 | /* BSSID */ |
| 2398 | tSirMacAddr bssId; |
| 2399 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2400 | /* Self Mac Address */ |
| 2401 | tSirMacAddr selfMacAddr; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2402 | |
| 2403 | /* BSS type */ |
| 2404 | tSirBssType bssType; |
| 2405 | |
| 2406 | /*Operational Mode: AP =0, STA = 1*/ |
| 2407 | tANI_U8 operMode; |
| 2408 | |
| 2409 | /*Network Type*/ |
| 2410 | tSirNwType nwType; |
| 2411 | |
| 2412 | /*Used to classify PURE_11G/11G_MIXED to program MTU*/ |
| 2413 | tANI_U8 shortSlotTimeSupported; |
| 2414 | |
| 2415 | /*Co-exist with 11a STA*/ |
| 2416 | tANI_U8 llaCoexist; |
| 2417 | |
| 2418 | /*Co-exist with 11b STA*/ |
| 2419 | tANI_U8 llbCoexist; |
| 2420 | |
| 2421 | /*Co-exist with 11g STA*/ |
| 2422 | tANI_U8 llgCoexist; |
| 2423 | |
| 2424 | /*Coexistence with 11n STA*/ |
| 2425 | tANI_U8 ht20Coexist; |
| 2426 | |
| 2427 | /*Non GF coexist flag*/ |
| 2428 | tANI_U8 llnNonGFCoexist; |
| 2429 | |
| 2430 | /*TXOP protection support*/ |
| 2431 | tANI_U8 fLsigTXOPProtectionFullSupport; |
| 2432 | /*RIFS mode*/ |
| 2433 | tANI_U8 fRIFSMode; |
| 2434 | |
| 2435 | /*Beacon Interval in TU*/ |
| 2436 | tSirMacBeaconInterval beaconInterval; |
| 2437 | |
| 2438 | /*DTIM period*/ |
| 2439 | tANI_U8 dtimPeriod; |
| 2440 | |
| 2441 | /*TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz*/ |
| 2442 | tANI_U8 txChannelWidthSet; |
| 2443 | |
| 2444 | /*Operating channel*/ |
| 2445 | tANI_U8 currentOperChannel; |
| 2446 | |
| 2447 | /*Extension channel for channel bonding*/ |
| 2448 | tANI_U8 currentExtChannel; |
| 2449 | |
| 2450 | /*Reserved to align next field on a dword boundary*/ |
| 2451 | tANI_U8 reserved; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2452 | |
| 2453 | /*SSID of the BSS*/ |
| 2454 | tSirMacSSid ssId; |
| 2455 | |
| 2456 | /*HAL should update the existing BSS entry, if this flag is set. |
| 2457 | UMAC will set this flag in case of reassoc, where we want to resue the |
| 2458 | the old BSSID and still return success 0 = Add, 1 = Update*/ |
| 2459 | tANI_U8 action; |
| 2460 | |
| 2461 | /* MAC Rate Set */ |
| 2462 | tSirMacRateSet rateSet; |
| 2463 | |
| 2464 | /*Enable/Disable HT capabilities of the BSS*/ |
| 2465 | tANI_U8 htCapable; |
| 2466 | |
| 2467 | // Enable/Disable OBSS protection |
| 2468 | tANI_U8 obssProtEnabled; |
| 2469 | |
| 2470 | /*RMF enabled/disabled*/ |
| 2471 | tANI_U8 rmfEnabled; |
| 2472 | |
| 2473 | /*HT Operating Mode operating mode of the 802.11n STA*/ |
| 2474 | tSirMacHTOperatingMode htOperMode; |
| 2475 | |
| 2476 | /*Dual CTS Protection: 0 - Unused, 1 - Used*/ |
| 2477 | tANI_U8 dualCTSProtection; |
| 2478 | |
| 2479 | /* Probe Response Max retries */ |
| 2480 | tANI_U8 ucMaxProbeRespRetryLimit; |
| 2481 | |
| 2482 | /* To Enable Hidden ssid */ |
| 2483 | tANI_U8 bHiddenSSIDEn; |
| 2484 | |
| 2485 | /* To Enable Disable FW Proxy Probe Resp */ |
| 2486 | tANI_U8 bProxyProbeRespEn; |
| 2487 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2488 | /* Boolean to indicate if EDCA params are valid. UMAC might not have valid |
| 2489 | EDCA params or might not desire to apply EDCA params during config BSS. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2490 | 0 implies Not Valid ; Non-Zero implies valid*/ |
| 2491 | tANI_U8 edcaParamsValid; |
| 2492 | |
| 2493 | /*EDCA Parameters for Best Effort Access Category*/ |
| 2494 | tSirMacEdcaParamRecord acbe; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2495 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2496 | /*EDCA Parameters forBackground Access Category*/ |
| 2497 | tSirMacEdcaParamRecord acbk; |
| 2498 | |
| 2499 | /*EDCA Parameters for Video Access Category*/ |
| 2500 | tSirMacEdcaParamRecord acvi; |
| 2501 | |
| 2502 | /*EDCA Parameters for Voice Access Category*/ |
| 2503 | tSirMacEdcaParamRecord acvo; |
| 2504 | |
| 2505 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 2506 | tANI_U8 extSetStaKeyParamValid; //Ext Bss Config Msg if set |
| 2507 | tSetStaKeyParams extSetStaKeyParam; //SetStaKeyParams for ext bss msg |
| 2508 | #endif |
| 2509 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2510 | /* Persona for the BSS can be STA,AP,GO,CLIENT value same as tHalConMode */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2511 | tANI_U8 halPersona; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2512 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2513 | tANI_U8 bSpectrumMgtEnable; |
| 2514 | |
| 2515 | /*HAL fills in the tx power used for mgmt frames in txMgmtPower*/ |
| 2516 | tANI_S8 txMgmtPower; |
| 2517 | /*maxTxPower has max power to be used after applying the power constraint if any */ |
| 2518 | tANI_S8 maxTxPower; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2519 | /*Context of the station being added in HW |
| 2520 | Add a STA entry for "itself" - |
| 2521 | On AP - Add the AP itself in an "STA context" |
| 2522 | On STA - Add the AP to which this STA is joining in an "STA context" */ |
| 2523 | tConfigStaParams_V1 staContext; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2524 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2525 | tANI_U8 vhtCapable; |
| 2526 | tANI_U8 vhtTxChannelWidthSet; |
| 2527 | } tConfigBssParams_V1, * tpConfigBssParams_V1; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2528 | |
| 2529 | typedef PACKED_PRE struct PACKED_POST |
| 2530 | { |
| 2531 | tHalMsgHeader header; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2532 | PACKED_PRE union PACKED_POST { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2533 | tConfigBssParams configBssParams; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2534 | tConfigBssParams_V1 configBssParams_V1; |
| 2535 | }uBssParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2536 | } tConfigBssReqMsg, *tpConfigBssReqMsg; |
| 2537 | |
| 2538 | /*--------------------------------------------------------------------------- |
| 2539 | WLAN_HAL_CONFIG_BSS_RSP |
| 2540 | ---------------------------------------------------------------------------*/ |
| 2541 | |
| 2542 | typedef PACKED_PRE struct PACKED_POST |
| 2543 | { |
| 2544 | /* Success or Failure */ |
| 2545 | tANI_U32 status; |
| 2546 | |
| 2547 | /* BSS index allocated by HAL */ |
| 2548 | tANI_U8 bssIdx; |
| 2549 | |
| 2550 | /* DPU descriptor index for PTK */ |
| 2551 | tANI_U8 dpuDescIndx; |
| 2552 | |
| 2553 | /* PTK DPU signature */ |
| 2554 | tANI_U8 ucastDpuSignature; |
| 2555 | |
| 2556 | /* DPU descriptor index for GTK*/ |
| 2557 | tANI_U8 bcastDpuDescIndx; |
| 2558 | |
| 2559 | /* GTK DPU signature */ |
| 2560 | tANI_U8 bcastDpuSignature; |
| 2561 | |
| 2562 | /*DPU descriptor for IGTK*/ |
| 2563 | tANI_U8 mgmtDpuDescIndx; |
| 2564 | |
| 2565 | /* IGTK DPU signature */ |
| 2566 | tANI_U8 mgmtDpuSignature; |
| 2567 | |
| 2568 | /* Station Index for BSS entry*/ |
| 2569 | tANI_U8 bssStaIdx; |
| 2570 | |
| 2571 | /* Self station index for this BSS */ |
| 2572 | tANI_U8 bssSelfStaIdx; |
| 2573 | |
| 2574 | /* Bcast station for buffering bcast frames in AP role */ |
| 2575 | tANI_U8 bssBcastStaIdx; |
| 2576 | |
| 2577 | /*MAC Address of STA(PEER/SELF) in staContext of configBSSReq*/ |
| 2578 | tSirMacAddr staMac; |
| 2579 | |
| 2580 | /*HAL fills in the tx power used for mgmt frames in this field. */ |
| 2581 | tANI_S8 txMgmtPower; |
| 2582 | |
| 2583 | } tConfigBssRspParams, * tpConfigBssRspParams; |
| 2584 | |
| 2585 | typedef PACKED_PRE struct PACKED_POST |
| 2586 | { |
| 2587 | tHalMsgHeader header; |
| 2588 | tConfigBssRspParams configBssRspParams; |
| 2589 | } tConfigBssRspMsg, *tpConfigBssRspMsg; |
| 2590 | |
| 2591 | /*--------------------------------------------------------------------------- |
| 2592 | WLAN_HAL_DELETE_BSS_REQ |
| 2593 | ---------------------------------------------------------------------------*/ |
| 2594 | |
| 2595 | typedef PACKED_PRE struct PACKED_POST |
| 2596 | { |
| 2597 | /* BSS index to be deleted */ |
| 2598 | tANI_U8 bssIdx; |
| 2599 | |
| 2600 | } tDeleteBssParams, *tpDeleteBssParams; |
| 2601 | |
| 2602 | typedef PACKED_PRE struct PACKED_POST |
| 2603 | { |
| 2604 | tHalMsgHeader header; |
| 2605 | tDeleteBssParams deleteBssParams; |
| 2606 | } tDeleteBssReqMsg, *tpDeleteBssReqMsg; |
| 2607 | |
| 2608 | /*--------------------------------------------------------------------------- |
| 2609 | WLAN_HAL_DELETE_BSS_RSP |
| 2610 | ---------------------------------------------------------------------------*/ |
| 2611 | |
| 2612 | typedef PACKED_PRE struct PACKED_POST |
| 2613 | { |
| 2614 | /* Success or Failure */ |
| 2615 | tANI_U32 status; |
| 2616 | |
| 2617 | /* BSS index that has been deleted */ |
| 2618 | tANI_U8 bssIdx; |
| 2619 | |
| 2620 | } tDeleteBssRspParams, *tpDeleteBssRspParams; |
| 2621 | |
| 2622 | typedef PACKED_PRE struct PACKED_POST |
| 2623 | { |
| 2624 | tHalMsgHeader header; |
| 2625 | tDeleteBssRspParams deleteBssRspParams; |
| 2626 | } tDeleteBssRspMsg, *tpDeleteBssRspMsg; |
| 2627 | |
| 2628 | /*--------------------------------------------------------------------------- |
| 2629 | WLAN_HAL_JOIN_REQ |
| 2630 | ---------------------------------------------------------------------------*/ |
| 2631 | |
| 2632 | typedef PACKED_PRE struct PACKED_POST |
| 2633 | { |
| 2634 | /*Indicates the BSSID to which STA is going to associate*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2635 | tSirMacAddr bssId; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2636 | |
| 2637 | /*Indicates the channel to switch to.*/ |
| 2638 | tANI_U8 ucChannel; |
| 2639 | |
| 2640 | /* Self STA MAC */ |
| 2641 | tSirMacAddr selfStaMacAddr; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2642 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2643 | /*Local power constraint*/ |
| 2644 | tANI_U8 ucLocalPowerConstraint; |
| 2645 | |
| 2646 | /*Secondary channel offset */ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2647 | ePhyChanBondState secondaryChannelOffset; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2648 | |
| 2649 | /*link State*/ |
| 2650 | tSirLinkState linkState; |
| 2651 | |
| 2652 | /* Max TX power */ |
| 2653 | tANI_S8 maxTxPower; |
| 2654 | |
| 2655 | } tHalJoinReqParams, *tpHalJoinReqParams; |
| 2656 | |
| 2657 | typedef PACKED_PRE struct PACKED_POST |
| 2658 | { |
| 2659 | tHalMsgHeader header; |
| 2660 | tHalJoinReqParams joinReqParams; |
| 2661 | } tHalJoinReqMsg, *tpHalJoinReqMsg; |
| 2662 | |
| 2663 | /*--------------------------------------------------------------------------- |
| 2664 | WLAN_HAL_JOIN_RSP |
| 2665 | ---------------------------------------------------------------------------*/ |
| 2666 | |
| 2667 | typedef PACKED_PRE struct PACKED_POST |
| 2668 | { |
| 2669 | /*success or failure */ |
| 2670 | tANI_U32 status; |
| 2671 | |
| 2672 | /* HAL fills in the tx power used for mgmt frames in this field */ |
| 2673 | tPowerdBm txMgmtPower; |
| 2674 | |
| 2675 | }tHalJoinRspParams, *tpHalJoinRspParams; |
| 2676 | |
| 2677 | typedef PACKED_PRE struct PACKED_POST |
| 2678 | { |
| 2679 | tHalMsgHeader header; |
| 2680 | tHalJoinRspParams joinRspParams; |
| 2681 | }tHalJoinRspMsg, *tpHalJoinRspMsg; |
| 2682 | |
| 2683 | /*--------------------------------------------------------------------------- |
| 2684 | WLAN_HAL_POST_ASSOC_REQ |
| 2685 | ---------------------------------------------------------------------------*/ |
| 2686 | |
| 2687 | typedef PACKED_PRE struct PACKED_POST |
| 2688 | { |
| 2689 | tConfigStaParams configStaParams; |
| 2690 | tConfigBssParams configBssParams; |
| 2691 | } tPostAssocReqParams, *tpPostAssocReqParams; |
| 2692 | |
| 2693 | typedef PACKED_PRE struct PACKED_POST |
| 2694 | { |
| 2695 | tHalMsgHeader header; |
| 2696 | tPostAssocReqParams postAssocReqParams; |
| 2697 | } tPostAssocReqMsg, *tpPostAssocReqMsg; |
| 2698 | |
| 2699 | /*--------------------------------------------------------------------------- |
| 2700 | WLAN_HAL_POST_ASSOC_RSP |
| 2701 | ---------------------------------------------------------------------------*/ |
| 2702 | |
| 2703 | typedef PACKED_PRE struct PACKED_POST |
| 2704 | { |
| 2705 | tConfigStaRspParams configStaRspParams; |
| 2706 | tConfigBssRspParams configBssRspParams; |
| 2707 | } tPostAssocRspParams, *tpPostAssocRspParams; |
| 2708 | |
| 2709 | typedef PACKED_PRE struct PACKED_POST |
| 2710 | { |
| 2711 | tHalMsgHeader header; |
| 2712 | tPostAssocRspParams postAssocRspParams; |
| 2713 | } tPostAssocRspMsg, *tpPostAssocRspMsg; |
| 2714 | |
| 2715 | /*--------------------------------------------------------------------------- |
| 2716 | WLAN_HAL_SET_BSSKEY_REQ |
| 2717 | ---------------------------------------------------------------------------*/ |
| 2718 | |
| 2719 | /* |
| 2720 | * This is used by PE to create a set of WEP keys for a given BSS. |
| 2721 | */ |
| 2722 | typedef PACKED_PRE struct PACKED_POST |
| 2723 | { |
| 2724 | /*BSS Index of the BSS*/ |
| 2725 | tANI_U8 bssIdx; |
| 2726 | |
| 2727 | /*Encryption Type used with peer*/ |
| 2728 | tAniEdType encType; |
| 2729 | |
| 2730 | /*Number of keys*/ |
| 2731 | tANI_U8 numKeys; |
| 2732 | |
| 2733 | /*Array of keys.*/ |
| 2734 | tSirKeys key[SIR_MAC_MAX_NUM_OF_DEFAULT_KEYS]; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2735 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2736 | /*Control for Replay Count, 1= Single TID based replay count on Tx |
| 2737 | 0 = Per TID based replay count on TX */ |
| 2738 | tANI_U8 singleTidRc; |
| 2739 | } tSetBssKeyParams, *tpSetBssKeyParams; |
| 2740 | |
| 2741 | typedef PACKED_PRE struct PACKED_POST |
| 2742 | { |
| 2743 | tHalMsgHeader header; |
| 2744 | tSetBssKeyParams setBssKeyParams; |
| 2745 | } tSetBssKeyReqMsg, *tpSetBssKeyReqMsg; |
| 2746 | |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 2747 | /* tagged version of set bss key */ |
| 2748 | typedef PACKED_PRE struct PACKED_POST |
| 2749 | { |
| 2750 | tSetBssKeyReqMsg Msg; |
| 2751 | uint32 Tag; |
| 2752 | } tSetBssKeyReqMsgTagged; |
| 2753 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2754 | /*--------------------------------------------------------------------------- |
| 2755 | WLAN_HAL_SET_BSSKEY_RSP |
| 2756 | ---------------------------------------------------------------------------*/ |
| 2757 | typedef PACKED_PRE struct PACKED_POST |
| 2758 | { |
| 2759 | /*success or failure */ |
| 2760 | tANI_U32 status; |
| 2761 | |
| 2762 | } tSetBssKeyRspParams, *tpSetBssKeyRspParams; |
| 2763 | |
| 2764 | typedef PACKED_PRE struct PACKED_POST |
| 2765 | { |
| 2766 | tHalMsgHeader header; |
| 2767 | tSetBssKeyRspParams setBssKeyRspParams; |
| 2768 | } tSetBssKeyRspMsg, *tpSetBssKeyRspMsg; |
| 2769 | |
| 2770 | /*--------------------------------------------------------------------------- |
| 2771 | WLAN_HAL_SET_STAKEY_REQ, |
| 2772 | ---------------------------------------------------------------------------*/ |
| 2773 | |
| 2774 | /* |
| 2775 | * This is used by PE to configure the key information on a given station. |
| 2776 | * When the secType is WEP40 or WEP104, the defWEPIdx is used to locate |
| 2777 | * a preconfigured key from a BSS the station assoicated with; otherwise |
| 2778 | * a new key descriptor is created based on the key field. |
| 2779 | */ |
| 2780 | |
| 2781 | typedef PACKED_PRE struct PACKED_POST |
| 2782 | { |
| 2783 | tHalMsgHeader header; |
| 2784 | tSetStaKeyParams setStaKeyParams; |
| 2785 | } tSetStaKeyReqMsg, *tpSetStaKeyReqMsg; |
| 2786 | |
| 2787 | /*--------------------------------------------------------------------------- |
| 2788 | WLAN_HAL_SET_STAKEY_RSP, |
| 2789 | ---------------------------------------------------------------------------*/ |
| 2790 | typedef PACKED_PRE struct PACKED_POST |
| 2791 | { |
| 2792 | /*success or failure */ |
| 2793 | tANI_U32 status; |
| 2794 | |
| 2795 | } tSetStaKeyRspParams, *tpSetStaKeyRspParams; |
| 2796 | |
| 2797 | typedef PACKED_PRE struct PACKED_POST |
| 2798 | { |
| 2799 | tHalMsgHeader header; |
| 2800 | tSetStaKeyRspParams setStaKeyRspParams; |
| 2801 | } tSetStaKeyRspMsg, *tpSetStaKeyRspMsg; |
| 2802 | |
| 2803 | /*--------------------------------------------------------------------------- |
| 2804 | WLAN_HAL_RMV_BSSKEY_REQ, |
| 2805 | ---------------------------------------------------------------------------*/ |
| 2806 | /* |
| 2807 | * This is used by PE to remove keys for a given BSS. |
| 2808 | */ |
| 2809 | typedef PACKED_PRE struct PACKED_POST |
| 2810 | |
| 2811 | { |
| 2812 | /*BSS Index of the BSS*/ |
| 2813 | tANI_U8 bssIdx; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 2814 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2815 | /*Encryption Type used with peer*/ |
| 2816 | tAniEdType encType; |
| 2817 | |
| 2818 | /*Key Id*/ |
| 2819 | tANI_U8 keyId; |
| 2820 | |
| 2821 | /*STATIC/DYNAMIC. Used in Nullifying in Key Descriptors for Static/Dynamic keys*/ |
| 2822 | tAniWepType wepType; |
| 2823 | |
| 2824 | } tRemoveBssKeyParams, *tpRemoveBssKeyParams; |
| 2825 | |
| 2826 | typedef PACKED_PRE struct PACKED_POST |
| 2827 | { |
| 2828 | tHalMsgHeader header; |
| 2829 | tRemoveBssKeyParams removeBssKeyParams; |
| 2830 | } tRemoveBssKeyReqMsg, *tpRemoveBssKeyReqMsg; |
| 2831 | |
| 2832 | /*--------------------------------------------------------------------------- |
| 2833 | WLAN_HAL_RMV_BSSKEY_RSP, |
| 2834 | ---------------------------------------------------------------------------*/ |
| 2835 | typedef PACKED_PRE struct PACKED_POST |
| 2836 | { |
| 2837 | /*success or failure */ |
| 2838 | tANI_U32 status; |
| 2839 | |
| 2840 | } tRemoveBssKeyRspParams, *tpRemoveBssKeyRspParams; |
| 2841 | |
| 2842 | typedef PACKED_PRE struct PACKED_POST |
| 2843 | { |
| 2844 | tHalMsgHeader header; |
| 2845 | tRemoveBssKeyRspParams removeBssKeyRspParams; |
| 2846 | } tRemoveBssKeyRspMsg, *tpRemoveBssKeyRspMsg; |
| 2847 | |
| 2848 | /*--------------------------------------------------------------------------- |
| 2849 | WLAN_HAL_RMV_STAKEY_REQ, |
| 2850 | ---------------------------------------------------------------------------*/ |
| 2851 | /* |
| 2852 | * This is used by PE to Remove the key information on a given station. |
| 2853 | */ |
| 2854 | typedef PACKED_PRE struct PACKED_POST |
| 2855 | { |
| 2856 | /*STA Index*/ |
| 2857 | tANI_U16 staIdx; |
| 2858 | |
| 2859 | /*Encryption Type used with peer*/ |
| 2860 | tAniEdType encType; |
| 2861 | |
| 2862 | /*Key Id*/ |
| 2863 | tANI_U8 keyId; |
| 2864 | |
| 2865 | /*Whether to invalidate the Broadcast key or Unicast key. In case of WEP, |
| 2866 | the same key is used for both broadcast and unicast.*/ |
| 2867 | tANI_BOOLEAN unicast; |
| 2868 | |
| 2869 | } tRemoveStaKeyParams, *tpRemoveStaKeyParams; |
| 2870 | |
| 2871 | typedef PACKED_PRE struct PACKED_POST |
| 2872 | { |
| 2873 | tHalMsgHeader header; |
| 2874 | tRemoveStaKeyParams removeStaKeyParams; |
| 2875 | } tRemoveStaKeyReqMsg, *tpRemoveStaKeyReqMsg; |
| 2876 | |
| 2877 | /*--------------------------------------------------------------------------- |
| 2878 | WLAN_HAL_RMV_STAKEY_RSP, |
| 2879 | ---------------------------------------------------------------------------*/ |
| 2880 | typedef PACKED_PRE struct PACKED_POST |
| 2881 | { |
| 2882 | /*success or failure */ |
| 2883 | tANI_U32 status; |
| 2884 | } tRemoveStaKeyRspParams, *tpRemoveStaKeyRspParams; |
| 2885 | |
| 2886 | typedef PACKED_PRE struct PACKED_POST |
| 2887 | { |
| 2888 | tHalMsgHeader header; |
| 2889 | tRemoveStaKeyRspParams removeStaKeyRspParams; |
| 2890 | } tRemoveStaKeyRspMsg, *tpRemoveStaKeyRspMsg; |
| 2891 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2892 | #ifdef FEATURE_OEM_DATA_SUPPORT |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2893 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2894 | #ifndef OEM_DATA_REQ_SIZE |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 2895 | #define OEM_DATA_REQ_SIZE 134 |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2896 | #endif |
| 2897 | |
| 2898 | #ifndef OEM_DATA_RSP_SIZE |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 2899 | #define OEM_DATA_RSP_SIZE 1968 |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2900 | #endif |
| 2901 | |
| 2902 | /*------------------------------------------------------------------------- |
| 2903 | WLAN_HAL_START_OEM_DATA_REQ |
| 2904 | --------------------------------------------------------------------------*/ |
| 2905 | typedef PACKED_PRE struct PACKED_POST |
| 2906 | { |
| 2907 | tANI_U32 status; |
| 2908 | tSirMacAddr selfMacAddr; |
| 2909 | tANI_U8 oemDataReq[OEM_DATA_REQ_SIZE]; |
| 2910 | } tStartOemDataReqParams, *tpStartOemDataReqParams; |
| 2911 | |
| 2912 | typedef PACKED_PRE struct PACKED_POST |
| 2913 | { |
| 2914 | tHalMsgHeader header; |
| 2915 | tStartOemDataReqParams startOemDataReqParams; |
| 2916 | } tStartOemDataReqMsg, *tpStartOemDataReqMsg; |
| 2917 | |
| 2918 | /*------------------------------------------------------------------------- |
| 2919 | WLAN_HAL_START_OEM_DATA_RSP |
| 2920 | --------------------------------------------------------------------------*/ |
| 2921 | |
| 2922 | typedef PACKED_PRE struct PACKED_POST |
| 2923 | { |
| 2924 | tANI_U8 oemDataRsp[OEM_DATA_RSP_SIZE]; |
| 2925 | } tStartOemDataRspParams, *tpStartOemDataRspParams; |
| 2926 | |
| 2927 | typedef PACKED_PRE struct PACKED_POST |
| 2928 | { |
| 2929 | tHalMsgHeader header; |
| 2930 | tStartOemDataRspParams startOemDataRspParams; |
| 2931 | } tStartOemDataRspMsg, *tpStartOemDataRspMsg; |
| 2932 | |
Padma, Santhosh Kumar | 002b9e2 | 2015-10-20 17:39:57 +0530 | [diff] [blame] | 2933 | #ifndef NEW_OEM_DATA_REQ_SIZE |
| 2934 | #define NEW_OEM_DATA_REQ_SIZE 292 |
| 2935 | #endif |
| 2936 | |
| 2937 | #ifndef NEW_OEM_DATA_RSP_SIZE |
| 2938 | #define NEW_OEM_DATA_RSP_SIZE 2100 |
| 2939 | #endif |
| 2940 | |
| 2941 | /*------------------------------------------------------------------------- |
| 2942 | WLAN_HAL_START_OEM_DATA_REQ_IND_NEW------------------------------------ |
| 2943 | --------------------------------------------------------------------------*/ |
| 2944 | typedef PACKED_PRE struct PACKED_POST |
| 2945 | { |
Padma, Santhosh Kumar | b7f449f | 2016-01-11 18:55:44 +0530 | [diff] [blame] | 2946 | tSirMacAddr selfMacAddr; |
| 2947 | tANI_U8 reserved[2]; |
Padma, Santhosh Kumar | 002b9e2 | 2015-10-20 17:39:57 +0530 | [diff] [blame] | 2948 | tANI_U8 oemDataReq[NEW_OEM_DATA_REQ_SIZE]; |
| 2949 | } tStartOemDataReqParamsNew, *tpStartOemDataReqParamsNew; |
| 2950 | |
| 2951 | typedef PACKED_PRE struct PACKED_POST |
| 2952 | { |
| 2953 | tHalMsgHeader header; |
| 2954 | tStartOemDataReqParamsNew startOemDataReqParams; |
| 2955 | } tStartOemDataReqMsgNew, *tpStartOemDataReqMsgNew; |
| 2956 | |
| 2957 | /*------------------------------------------------------------------------- |
| 2958 | WLAN_HAL_START_OEM_DATA_RSP_IND_NEW------------------------------------ |
| 2959 | --------------------------------------------------------------------------*/ |
| 2960 | typedef PACKED_PRE struct PACKED_POST |
| 2961 | { |
| 2962 | tANI_U8 oemDataRsp[NEW_OEM_DATA_RSP_SIZE]; |
| 2963 | } tStartOemDataRspParamsNew, *tpStartOemDataRspParamsNew; |
| 2964 | |
| 2965 | typedef PACKED_PRE struct PACKED_POST |
| 2966 | { |
| 2967 | tHalMsgHeader header; |
| 2968 | tStartOemDataRspParamsNew startOemDataReqParams; |
| 2969 | } tStartOemDataRspMsgNew, *tpStartOemDataRspMsgNew; |
| 2970 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2971 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2972 | |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 2973 | /*--------------------------------------------------------------------------- |
| 2974 | WLAN_HAL_CH_SWITCH_V1_REQ |
| 2975 | ---------------------------------------------------------------------------*/ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2976 | |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 2977 | typedef PACKED_PRE struct PACKED_POST |
| 2978 | { |
| 2979 | /* Channel number */ |
| 2980 | tANI_U8 channelNumber; |
| 2981 | |
| 2982 | /* Local power constraint */ |
| 2983 | tANI_U8 localPowerConstraint; |
| 2984 | |
| 2985 | /*Secondary channel offset */ |
| 2986 | ePhyChanBondState secondaryChannelOffset; |
| 2987 | |
| 2988 | //HAL fills in the tx power used for mgmt frames in this field. |
| 2989 | tPowerdBm txMgmtPower; |
| 2990 | |
| 2991 | /* Max TX power */ |
| 2992 | tPowerdBm maxTxPower; |
| 2993 | |
| 2994 | /* Self STA MAC */ |
| 2995 | tSirMacAddr selfStaMacAddr; |
| 2996 | |
| 2997 | /*VO WIFI comment: BSSID needed to identify session. As the request has |
| 2998 | * power constraints, this should be applied only to that session |
| 2999 | * Since MTU timing and EDCA are sessionized, this struct needs to be |
| 3000 | * sessionized and bssid needs to be out of the VOWifi feature flag |
| 3001 | * V IMP: Keep bssId field at the end of this msg. It is used to |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 3002 | * mantain backward compatbility |
| 3003 | * by way of ignoring if using new host/old FW or old host/new FW since |
| 3004 | * it is at the end of this struct |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 3005 | */ |
| 3006 | tSirMacAddr bssId; |
| 3007 | |
| 3008 | /* Source of Channel Switch */ |
| 3009 | eHalChanSwitchSource channelSwitchSrc; |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 3010 | |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 3011 | } tSwitchChannelParams_V1, *tpSwitchChannelParams_V1; |
| 3012 | |
| 3013 | typedef PACKED_PRE struct PACKED_POST |
| 3014 | { |
| 3015 | tHalMsgHeader header; |
| 3016 | tSwitchChannelParams_V1 switchChannelParams_V1; |
| 3017 | } tSwitchChannelReqMsg_V1, *tpSwitchChannelReqMsg_V1; |
| 3018 | |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 3019 | /*--------------------------------------------------------------------------- |
| 3020 | WLAN_HAL_CH_SWITCH_V1_RSP |
| 3021 | ---------------------------------------------------------------------------*/ |
| 3022 | |
| 3023 | typedef PACKED_PRE struct PACKED_POST |
| 3024 | { |
| 3025 | /* Status */ |
| 3026 | tANI_U32 status; |
| 3027 | |
| 3028 | /* Channel number - same as in request*/ |
| 3029 | tANI_U8 channelNumber; |
| 3030 | |
| 3031 | /* HAL fills in the tx power used for mgmt frames in this field */ |
| 3032 | tPowerdBm txMgmtPower; |
| 3033 | |
| 3034 | /* BSSID needed to identify session - same as in request*/ |
| 3035 | tSirMacAddr bssId; |
| 3036 | |
| 3037 | /* Source of Channel Switch */ |
| 3038 | eHalChanSwitchSource channelSwitchSrc; |
| 3039 | |
| 3040 | } tSwitchChannelRspParams_V1, *tpSwitchChannelRspParams_V1; |
| 3041 | |
| 3042 | typedef PACKED_PRE struct PACKED_POST |
| 3043 | { |
| 3044 | tHalMsgHeader header; |
| 3045 | tSwitchChannelRspParams_V1 channelSwitchRspParams_V1; |
| 3046 | } tSwitchChannelRspMsg_V1, *tpSwitchChannelRspMsg_V1; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3047 | |
| 3048 | /*--------------------------------------------------------------------------- |
| 3049 | WLAN_HAL_CH_SWITCH_REQ |
| 3050 | ---------------------------------------------------------------------------*/ |
| 3051 | |
| 3052 | typedef PACKED_PRE struct PACKED_POST |
| 3053 | { |
| 3054 | /* Channel number */ |
| 3055 | tANI_U8 channelNumber; |
| 3056 | |
| 3057 | /* Local power constraint */ |
| 3058 | tANI_U8 localPowerConstraint; |
| 3059 | |
| 3060 | /*Secondary channel offset */ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 3061 | ePhyChanBondState secondaryChannelOffset; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3062 | |
| 3063 | //HAL fills in the tx power used for mgmt frames in this field. |
| 3064 | tPowerdBm txMgmtPower; |
| 3065 | |
| 3066 | /* Max TX power */ |
| 3067 | tPowerdBm maxTxPower; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3068 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3069 | /* Self STA MAC */ |
| 3070 | tSirMacAddr selfStaMacAddr; |
| 3071 | |
| 3072 | /*VO WIFI comment: BSSID needed to identify session. As the request has power constraints, |
| 3073 | this should be applied only to that session*/ |
| 3074 | /* Since MTU timing and EDCA are sessionized, this struct needs to be sessionized and |
| 3075 | * bssid needs to be out of the VOWifi feature flag */ |
| 3076 | /* V IMP: Keep bssId field at the end of this msg. It is used to mantain backward compatbility |
| 3077 | * by way of ignoring if using new host/old FW or old host/new FW since it is at the end of this struct |
| 3078 | */ |
| 3079 | tSirMacAddr bssId; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3080 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3081 | }tSwitchChannelParams, *tpSwitchChannelParams; |
| 3082 | |
| 3083 | typedef PACKED_PRE struct PACKED_POST |
| 3084 | { |
| 3085 | tHalMsgHeader header; |
| 3086 | tSwitchChannelParams switchChannelParams; |
| 3087 | } tSwitchChannelReqMsg, *tpSwitchChannelReqMsg; |
| 3088 | |
| 3089 | /*--------------------------------------------------------------------------- |
| 3090 | WLAN_HAL_CH_SWITCH_RSP |
| 3091 | ---------------------------------------------------------------------------*/ |
| 3092 | |
| 3093 | typedef PACKED_PRE struct PACKED_POST |
| 3094 | { |
| 3095 | /* Status */ |
| 3096 | tANI_U32 status; |
| 3097 | |
| 3098 | /* Channel number - same as in request*/ |
| 3099 | tANI_U8 channelNumber; |
| 3100 | |
| 3101 | /* HAL fills in the tx power used for mgmt frames in this field */ |
| 3102 | tPowerdBm txMgmtPower; |
| 3103 | |
| 3104 | /* BSSID needed to identify session - same as in request*/ |
| 3105 | tSirMacAddr bssId; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3106 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3107 | }tSwitchChannelRspParams, *tpSwitchChannelRspParams; |
| 3108 | |
| 3109 | typedef PACKED_PRE struct PACKED_POST |
| 3110 | { |
| 3111 | tHalMsgHeader header; |
| 3112 | tSwitchChannelRspParams switchChannelRspParams; |
| 3113 | } tSwitchChannelRspMsg, *tpSwitchChannelRspMsg; |
| 3114 | |
| 3115 | /*--------------------------------------------------------------------------- |
| 3116 | WLAN_HAL_UPD_EDCA_PARAMS_REQ |
| 3117 | ---------------------------------------------------------------------------*/ |
| 3118 | |
| 3119 | typedef PACKED_PRE struct PACKED_POST |
| 3120 | { |
| 3121 | /*BSS Index*/ |
| 3122 | tANI_U16 bssIdx; |
| 3123 | |
| 3124 | /* Best Effort */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3125 | tSirMacEdcaParamRecord acbe; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3126 | |
| 3127 | /* Background */ |
| 3128 | tSirMacEdcaParamRecord acbk; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3129 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3130 | /* Video */ |
| 3131 | tSirMacEdcaParamRecord acvi; |
| 3132 | |
| 3133 | /* Voice */ |
| 3134 | tSirMacEdcaParamRecord acvo; |
| 3135 | |
| 3136 | } tEdcaParams, *tpEdcaParams; |
| 3137 | |
| 3138 | typedef PACKED_PRE struct PACKED_POST |
| 3139 | { |
| 3140 | tHalMsgHeader header; |
| 3141 | tEdcaParams edcaParams; |
| 3142 | } tUpdateEdcaParamsReqMsg, *tpUpdateEdcaParamsReqMsg; |
| 3143 | |
| 3144 | /*--------------------------------------------------------------------------- |
| 3145 | WLAN_HAL_UPD_EDCA_PARAMS_RSP |
| 3146 | ---------------------------------------------------------------------------*/ |
| 3147 | typedef PACKED_PRE struct PACKED_POST |
| 3148 | { |
| 3149 | /*success or failure */ |
| 3150 | tANI_U32 status; |
| 3151 | } tEdcaRspParams, *tpEdcaRspParams; |
| 3152 | |
| 3153 | typedef PACKED_PRE struct PACKED_POST |
| 3154 | { |
| 3155 | tHalMsgHeader header; |
| 3156 | tEdcaRspParams edcaRspParams; |
| 3157 | } tUpdateEdcaParamsRspMsg, *tpUpdateEdcaParamsRspMsg; |
| 3158 | |
| 3159 | |
| 3160 | |
| 3161 | /*--------------------------------------------------------------------------- |
| 3162 | * WLAN_HAL_GET_STATS_REQ |
| 3163 | *--------------------------------------------------------------------------*/ |
| 3164 | typedef PACKED_PRE struct PACKED_POST |
| 3165 | |
| 3166 | { |
| 3167 | /* Index of STA to which the statistics */ |
| 3168 | tANI_U16 staIdx; |
| 3169 | |
| 3170 | /* Encryption mode */ |
| 3171 | tANI_U8 encMode; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3172 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3173 | /* status */ |
| 3174 | tANI_U32 status; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3175 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3176 | /* Statistics */ |
| 3177 | tANI_U32 sendBlocks; |
| 3178 | tANI_U32 recvBlocks; |
| 3179 | tANI_U32 replays; |
| 3180 | tANI_U8 micErrorCnt; |
| 3181 | tANI_U32 protExclCnt; |
| 3182 | tANI_U16 formatErrCnt; |
| 3183 | tANI_U16 unDecryptableCnt; |
| 3184 | tANI_U32 decryptErrCnt; |
| 3185 | tANI_U32 decryptOkCnt; |
| 3186 | } tDpuStatsParams, * tpDpuStatsParams; |
| 3187 | |
| 3188 | typedef PACKED_PRE struct PACKED_POST |
| 3189 | { |
| 3190 | /* Valid STA Idx for per STA stats request */ |
| 3191 | tANI_U32 staId; |
| 3192 | |
| 3193 | /* Categories of stats requested as specified in eHalStatsMask*/ |
| 3194 | tANI_U32 statsMask; |
| 3195 | }tHalStatsReqParams, *tpHalStatsReqParams; |
| 3196 | |
| 3197 | typedef PACKED_PRE struct PACKED_POST |
| 3198 | { |
| 3199 | tHalMsgHeader header; |
| 3200 | tHalStatsReqParams statsReqParams; |
| 3201 | } tHalStatsReqMsg, *tpHalStatsReqMsg; |
| 3202 | |
| 3203 | /*--------------------------------------------------------------------------- |
| 3204 | * WLAN_HAL_GET_STATS_RSP |
| 3205 | *--------------------------------------------------------------------------*/ |
| 3206 | |
| 3207 | typedef PACKED_PRE struct PACKED_POST |
| 3208 | { |
| 3209 | tANI_U32 retry_cnt[4]; //Total number of packets(per AC) that were successfully transmitted with retries |
| 3210 | tANI_U32 multiple_retry_cnt[4]; //The number of MSDU packets and MMPDU frames per AC that the 802.11 |
| 3211 | // station successfully transmitted after more than one retransmission attempt |
| 3212 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3213 | tANI_U32 tx_frm_cnt[4]; //Total number of packets(per AC) that were successfully transmitted |
| 3214 | //(with and without retries, including multi-cast, broadcast) |
| 3215 | tANI_U32 rx_frm_cnt; //Total number of packets that were successfully received |
| 3216 | //(after appropriate filter rules including multi-cast, broadcast) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3217 | tANI_U32 frm_dup_cnt; //Total number of duplicate frames received successfully |
| 3218 | tANI_U32 fail_cnt[4]; //Total number packets(per AC) failed to transmit |
| 3219 | tANI_U32 rts_fail_cnt; //Total number of RTS/CTS sequence failures for transmission of a packet |
| 3220 | tANI_U32 ack_fail_cnt; //Total number packets failed transmit because of no ACK from the remote entity |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3221 | tANI_U32 rts_succ_cnt; //Total number of RTS/CTS sequence success for transmission of a packet |
| 3222 | tANI_U32 rx_discard_cnt; //The sum of the receive error count and dropped-receive-buffer error count. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3223 | //HAL will provide this as a sum of (FCS error) + (Fail get BD/PDU in HW) |
| 3224 | tANI_U32 rx_error_cnt; //The receive error count. HAL will provide the RxP FCS error global counter. |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3225 | tANI_U32 tx_byte_cnt; //The sum of the transmit-directed byte count, transmit-multicast byte count |
| 3226 | //and transmit-broadcast byte count. HAL will sum TPE UC/MC/BCAST global counters |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3227 | //to provide this. |
| 3228 | }tAniSummaryStatsInfo, *tpAniSummaryStatsInfo; |
| 3229 | |
| 3230 | |
| 3231 | // defines tx_rate_flags |
| 3232 | typedef enum eTxRateInfo |
| 3233 | { |
| 3234 | eHAL_TX_RATE_LEGACY = 0x1, /* Legacy rates */ |
| 3235 | eHAL_TX_RATE_HT20 = 0x2, /* HT20 rates */ |
| 3236 | eHAL_TX_RATE_HT40 = 0x4, /* HT40 rates */ |
| 3237 | eHAL_TX_RATE_SGI = 0x8, /* Rate with Short guard interval */ |
Chittajit Mitra | f5413a4 | 2013-10-18 14:20:08 -0700 | [diff] [blame] | 3238 | eHAL_TX_RATE_LGI = 0x10, /* Rate with Long guard interval */ |
| 3239 | eHAL_TX_RATE_VHT20 = 0x20, /* VHT 20 rates */ |
| 3240 | eHAL_TX_RATE_VHT40 = 0x40, /* VHT 20 rates */ |
| 3241 | eHAL_TX_RATE_VHT80 = 0x80, /* VHT 20 rates */ |
| 3242 | eHAL_TX_RATE_VIRT = 0x100, /* Virtual Rate */ |
| 3243 | eHAL_TX_RATE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 3244 | } tTxrateinfoflags, tTxRateInfoFlags; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3245 | |
| 3246 | |
| 3247 | typedef PACKED_PRE struct PACKED_POST |
| 3248 | { |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3249 | tANI_U32 rx_frag_cnt; //The number of MPDU frames received by the 802.11 station for MSDU packets |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3250 | //or MMPDU frames |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3251 | tANI_U32 promiscuous_rx_frag_cnt; //The number of MPDU frames received by the 802.11 station for MSDU packets |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3252 | //or MMPDU frames when a promiscuous packet filter was enabled |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3253 | tANI_U32 rx_input_sensitivity; //The receiver input sensitivity referenced to a FER of 8% at an MPDU length |
| 3254 | //of 1024 bytes at the antenna connector. Each element of the array shall correspond |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3255 | //to a supported rate and the order shall be the same as the supporteRates parameter. |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3256 | tANI_U32 max_pwr; //The maximum transmit power in dBm upto one decimal. |
| 3257 | //for eg: if it is 10.5dBm, the value would be 105 |
| 3258 | tANI_U32 sync_fail_cnt; //Number of times the receiver failed to synchronize with the incoming signal |
| 3259 | //after detecting the sync in the preamble of the transmitted PLCP protocol data unit. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3260 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3261 | tANI_U32 tx_rate; //Legacy transmit rate, in units of 500 kbit/sec, for the most |
| 3262 | //recently transmitted frame |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3263 | tANI_U32 mcs_index; //mcs index for HT20 and HT40 rates |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3264 | tANI_U32 tx_rate_flags; //to differentiate between HT20 and |
| 3265 | //HT40 rates; short and long guard interval |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3266 | }tAniGlobalClassAStatsInfo, *tpAniGlobalClassAStatsInfo; |
| 3267 | |
| 3268 | typedef PACKED_PRE struct PACKED_POST |
| 3269 | { |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3270 | tANI_U32 rx_wep_unencrypted_frm_cnt; //The number of unencrypted received MPDU frames that the MAC layer discarded when |
| 3271 | //the IEEE 802.11 dot11ExcludeUnencrypted management information base (MIB) object |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3272 | //is enabled |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3273 | tANI_U32 rx_mic_fail_cnt; //The number of received MSDU packets that that the 802.11 station discarded |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3274 | //because of MIC failures |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3275 | tANI_U32 tkip_icv_err; //The number of encrypted MPDU frames that the 802.11 station failed to decrypt |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3276 | //because of a TKIP ICV error |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3277 | tANI_U32 aes_ccmp_format_err; //The number of received MPDU frames that the 802.11 discarded because of an |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3278 | //invalid AES-CCMP format |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3279 | tANI_U32 aes_ccmp_replay_cnt; //The number of received MPDU frames that the 802.11 station discarded because of |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3280 | //the AES-CCMP replay protection procedure |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3281 | tANI_U32 aes_ccmp_decrpt_err; //The number of received MPDU frames that the 802.11 station discarded because of |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3282 | //errors detected by the AES-CCMP decryption algorithm |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3283 | tANI_U32 wep_undecryptable_cnt; //The number of encrypted MPDU frames received for which a WEP decryption key was |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3284 | //not available on the 802.11 station |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3285 | tANI_U32 wep_icv_err; //The number of encrypted MPDU frames that the 802.11 station failed to decrypt |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3286 | //because of a WEP ICV error |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3287 | tANI_U32 rx_decrypt_succ_cnt; //The number of received encrypted packets that the 802.11 station successfully |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3288 | //decrypted |
| 3289 | tANI_U32 rx_decrypt_fail_cnt; //The number of encrypted packets that the 802.11 station failed to decrypt |
| 3290 | |
| 3291 | }tAniGlobalSecurityStats, *tpAniGlobalSecurityStats; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3292 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3293 | typedef PACKED_PRE struct PACKED_POST |
| 3294 | { |
| 3295 | tAniGlobalSecurityStats ucStats; |
| 3296 | tAniGlobalSecurityStats mcbcStats; |
| 3297 | }tAniGlobalClassBStatsInfo, *tpAniGlobalClassBStatsInfo; |
| 3298 | |
| 3299 | typedef PACKED_PRE struct PACKED_POST |
| 3300 | { |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3301 | tANI_U32 rx_amsdu_cnt; //This counter shall be incremented for a received A-MSDU frame with the stations |
| 3302 | //MAC address in the address 1 field or an A-MSDU frame with a group address in the |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3303 | //address 1 field |
| 3304 | tANI_U32 rx_ampdu_cnt; //This counter shall be incremented when the MAC receives an AMPDU from the PHY |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3305 | tANI_U32 tx_20_frm_cnt; //This counter shall be incremented when a Frame is transmitted only on the |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3306 | //primary channel |
| 3307 | tANI_U32 rx_20_frm_cnt; //This counter shall be incremented when a Frame is received only on the primary channel |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3308 | tANI_U32 rx_mpdu_in_ampdu_cnt; //This counter shall be incremented by the number of MPDUs received in the A-MPDU |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3309 | //when an A-MPDU is received |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3310 | tANI_U32 ampdu_delimiter_crc_err; //This counter shall be incremented when an MPDU delimiter has a CRC error when this |
| 3311 | //is the first CRC error in the received AMPDU or when the previous delimiter has been |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3312 | //decoded correctly |
| 3313 | }tAniGlobalClassCStatsInfo, *tpAniGlobalClassCStatsInfo; |
| 3314 | |
| 3315 | typedef PACKED_PRE struct PACKED_POST |
| 3316 | { |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3317 | tANI_U32 tx_frag_cnt[4]; //The number of MPDU frames that the 802.11 station transmitted and acknowledged |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3318 | //through a received 802.11 ACK frame |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3319 | tANI_U32 tx_ampdu_cnt; //This counter shall be incremented when an A-MPDU is transmitted |
| 3320 | tANI_U32 tx_mpdu_in_ampdu_cnt; //This counter shall increment by the number of MPDUs in the AMPDU when an A-MPDU |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3321 | //is transmitted |
| 3322 | }tAniPerStaStatsInfo, *tpAniPerStaStatsInfo; |
| 3323 | |
Sushant Kaushik | 3320057 | 2015-08-05 16:46:20 +0530 | [diff] [blame] | 3324 | // The following stats are averaged over the time between two consecutive GET_STATS_REQ messages. |
| 3325 | typedef PACKED_PRE struct PACKED_POST |
| 3326 | { |
| 3327 | tANI_U32 lastTxRate; // 802.11 data rate at which the last data frame is transmitted. |
Sushant Kaushik | 3d5c1e6 | 2015-10-07 12:05:33 +0530 | [diff] [blame] | 3328 | tANI_U32 txAvgRetry; // Average number of retries per 10 packets. |
Sushant Kaushik | 3320057 | 2015-08-05 16:46:20 +0530 | [diff] [blame] | 3329 | tANI_U32 reserved; |
| 3330 | tANI_U32 reserved1; |
| 3331 | }tAniPerTxPktStatsInfo, *tpAniPerTxPktStatsInfo; |
| 3332 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3333 | typedef PACKED_PRE struct PACKED_POST |
| 3334 | { |
| 3335 | /* Success or Failure */ |
| 3336 | tANI_U32 status; |
| 3337 | |
| 3338 | /* STA Idx */ |
| 3339 | tANI_U32 staId; |
| 3340 | |
| 3341 | /* Categories of STATS being returned as per eHalStatsMask*/ |
| 3342 | tANI_U32 statsMask; |
| 3343 | |
| 3344 | /* message type is same as the request type */ |
| 3345 | tANI_U16 msgType; |
| 3346 | |
| 3347 | /* length of the entire request, includes the pStatsBuf length too */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3348 | tANI_U16 msgLen; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3349 | |
| 3350 | } tHalStatsRspParams, *tpHalStatsRspParams; |
| 3351 | |
| 3352 | |
| 3353 | |
| 3354 | typedef PACKED_PRE struct PACKED_POST |
| 3355 | { |
| 3356 | tHalMsgHeader header; |
| 3357 | tHalStatsRspParams statsRspParams; |
| 3358 | } tHalStatsRspMsg, *tpHalStatsRspMsg; |
| 3359 | |
Abhishek Singh | bc31088 | 2015-05-22 15:17:02 +0530 | [diff] [blame] | 3360 | /*--------------------------------------------------------------------------- |
| 3361 | * WLAN_HAL_SET_RTS_CTS_HTVHT_IND |
| 3362 | *---------------------------------------------------------------------------*/ |
| 3363 | typedef PACKED_PRE struct PACKED_POST |
| 3364 | { |
| 3365 | tANI_U32 rtsCtsValue; |
| 3366 | }tHalRtsCtsHtvhtIndParams, *tpHalRtsCtsHtvhtIndParams; |
| 3367 | |
| 3368 | typedef PACKED_PRE struct PACKED_POST |
| 3369 | { |
| 3370 | tHalMsgHeader header; |
| 3371 | tHalRtsCtsHtvhtIndParams rtsCtsHtvhtIndParams; |
| 3372 | } tHalRtsCtsHtvhtIndMsg, *tpHalRtsCtsHtvhtIndMsg; |
| 3373 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3374 | /*--------------------------------------------------------------------------- |
Abhishek Singh | 725c158 | 2014-11-24 11:47:48 +0530 | [diff] [blame] | 3375 | * WLAN_HAL_FW_STATS_REQ |
| 3376 | *---------------------------------------------------------------------------*/ |
| 3377 | typedef PACKED_PRE struct PACKED_POST |
| 3378 | { |
| 3379 | tANI_U32 type; |
| 3380 | }tHalfwStatsReqParams, *tpHalfwStatsReqParams; |
| 3381 | |
| 3382 | typedef PACKED_PRE struct PACKED_POST |
| 3383 | { |
| 3384 | tHalMsgHeader header; |
| 3385 | tHalfwStatsReqParams fwstatsReqParams; |
| 3386 | } tHalfwStatsReqMsg, *tpHalfwStatsReqMsg; |
| 3387 | |
| 3388 | /*--------------------------------------------------------------------------- |
| 3389 | * WLAN_HAL_FW_STATS_RSP |
| 3390 | *---------------------------------------------------------------------------*/ |
| 3391 | typedef PACKED_PRE struct PACKED_POST |
| 3392 | { |
| 3393 | tANI_U32 type; |
| 3394 | tANI_U32 length; |
| 3395 | tANI_U8 data[1]; |
| 3396 | |
| 3397 | }tHalfwStatsRspParams, *tpHalfwStatsRspParams; |
| 3398 | |
| 3399 | typedef PACKED_PRE struct PACKED_POST |
| 3400 | { |
| 3401 | tHalMsgHeader header; |
| 3402 | tHalfwStatsRspParams fwstatsRspParams; |
| 3403 | } tHalfwStatsRspMsg, *tpHalfwStatsRspMsg; |
| 3404 | |
| 3405 | typedef enum |
| 3406 | { |
| 3407 | FW_UBSP_STATS = 1, |
| 3408 | } fwstatstype; |
| 3409 | |
| 3410 | |
| 3411 | /*--------------------------------------------------------------------------- |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3412 | * WLAN_HAL_SET_LINK_ST_REQ |
| 3413 | *--------------------------------------------------------------------------*/ |
| 3414 | typedef PACKED_PRE struct PACKED_POST |
| 3415 | { |
| 3416 | tSirMacAddr bssid; |
| 3417 | tSirLinkState state; |
| 3418 | tSirMacAddr selfMacAddr; |
| 3419 | } tLinkStateParams, *tpLinkStateParams; |
| 3420 | |
| 3421 | typedef PACKED_PRE struct PACKED_POST |
| 3422 | { |
| 3423 | tHalMsgHeader header; |
| 3424 | tLinkStateParams linkStateParams; |
| 3425 | } tSetLinkStateReqMsg, *tpSetLinkStateReqMsg; |
| 3426 | |
| 3427 | /*--------------------------------------------------------------------------- |
| 3428 | * WLAN_HAL_SET_LINK_ST_RSP |
| 3429 | *--------------------------------------------------------------------------*/ |
| 3430 | |
| 3431 | typedef PACKED_PRE struct PACKED_POST |
| 3432 | { |
| 3433 | /*success or failure */ |
| 3434 | tANI_U32 status; |
| 3435 | } tLinkStateRspParams, *tpLinkStateRspParams; |
| 3436 | |
| 3437 | typedef PACKED_PRE struct PACKED_POST |
| 3438 | { |
| 3439 | tHalMsgHeader header; |
| 3440 | tLinkStateRspParams linkStateRspParams; |
| 3441 | } tSetLinkStateRspMsg, *tpSetLinkStateRspMsg; |
| 3442 | |
| 3443 | /*--------------------------------------------------------------------------- |
| 3444 | * WLAN_HAL_ADD_TS_REQ |
| 3445 | *--------------------------------------------------------------------------*/ |
| 3446 | |
| 3447 | /* TSPEC Params */ |
| 3448 | typedef __ani_attr_pre_packed struct sSirMacTSInfoTfc |
| 3449 | { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3450 | tANI_U16 trafficType : 1; |
| 3451 | tANI_U16 tsid : 4; |
| 3452 | tANI_U16 direction : 2; |
| 3453 | tANI_U16 accessPolicy : 2; |
| 3454 | tANI_U16 aggregation : 1; |
| 3455 | tANI_U16 psb : 1; |
| 3456 | tANI_U16 userPrio : 3; |
| 3457 | tANI_U16 ackPolicy : 2; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3458 | } __ani_attr_packed tSirMacTSInfoTfc; |
| 3459 | |
| 3460 | /* Flag to schedule the traffic type */ |
| 3461 | typedef __ani_attr_pre_packed struct sSirMacTSInfoSch |
| 3462 | { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3463 | tANI_U8 schedule : 1; |
| 3464 | tANI_U8 rsvd : 7; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3465 | } __ani_attr_packed tSirMacTSInfoSch; |
| 3466 | |
| 3467 | /* Traffic and scheduling info */ |
| 3468 | typedef __ani_attr_pre_packed struct sSirMacTSInfo |
| 3469 | { |
| 3470 | tSirMacTSInfoTfc traffic; |
| 3471 | tSirMacTSInfoSch schedule; |
| 3472 | } __ani_attr_packed tSirMacTSInfo; |
| 3473 | |
| 3474 | /* Information elements */ |
| 3475 | typedef __ani_attr_pre_packed struct sSirMacTspecIE |
| 3476 | { |
| 3477 | tANI_U8 type; |
| 3478 | tANI_U8 length; |
| 3479 | tSirMacTSInfo tsinfo; |
| 3480 | tANI_U16 nomMsduSz; |
| 3481 | tANI_U16 maxMsduSz; |
| 3482 | tANI_U32 minSvcInterval; |
| 3483 | tANI_U32 maxSvcInterval; |
| 3484 | tANI_U32 inactInterval; |
| 3485 | tANI_U32 suspendInterval; |
| 3486 | tANI_U32 svcStartTime; |
| 3487 | tANI_U32 minDataRate; |
| 3488 | tANI_U32 meanDataRate; |
| 3489 | tANI_U32 peakDataRate; |
| 3490 | tANI_U32 maxBurstSz; |
| 3491 | tANI_U32 delayBound; |
| 3492 | tANI_U32 minPhyRate; |
| 3493 | tANI_U16 surplusBw; |
| 3494 | tANI_U16 mediumTime; |
| 3495 | }__ani_attr_packed tSirMacTspecIE; |
| 3496 | |
| 3497 | typedef PACKED_PRE struct PACKED_POST |
| 3498 | { |
| 3499 | /* Station Index */ |
| 3500 | tANI_U16 staIdx; |
| 3501 | |
| 3502 | /* TSPEC handler uniquely identifying a TSPEC for a STA in a BSS */ |
| 3503 | tANI_U16 tspecIdx; |
| 3504 | |
| 3505 | /* To program TPE with required parameters */ |
| 3506 | tSirMacTspecIE tspec; |
| 3507 | |
| 3508 | /* U-APSD Flags: 1b per AC. Encoded as follows: |
| 3509 | b7 b6 b5 b4 b3 b2 b1 b0 = |
| 3510 | X X X X BE BK VI VO */ |
| 3511 | tANI_U8 uAPSD; |
| 3512 | |
| 3513 | /* These parameters are for all the access categories */ |
| 3514 | tANI_U32 srvInterval[WLAN_HAL_MAX_AC]; // Service Interval |
| 3515 | tANI_U32 susInterval[WLAN_HAL_MAX_AC]; // Suspend Interval |
| 3516 | tANI_U32 delayInterval[WLAN_HAL_MAX_AC]; // Delay Interval |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3517 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3518 | } tAddTsParams, *tpAddTsParams; |
| 3519 | |
| 3520 | typedef PACKED_PRE struct PACKED_POST |
| 3521 | { |
| 3522 | tHalMsgHeader header; |
| 3523 | tAddTsParams addTsParams; |
| 3524 | } tAddTsReqMsg, *tpAddTsReqMsg; |
| 3525 | |
| 3526 | /*--------------------------------------------------------------------------- |
| 3527 | * WLAN_HAL_ADD_TS_RSP |
| 3528 | *--------------------------------------------------------------------------*/ |
| 3529 | |
| 3530 | typedef PACKED_PRE struct PACKED_POST |
| 3531 | { |
| 3532 | /*success or failure */ |
| 3533 | tANI_U32 status; |
| 3534 | } tAddTsRspParams, *tpAddTsRspParams; |
| 3535 | |
| 3536 | typedef PACKED_PRE struct PACKED_POST |
| 3537 | { |
| 3538 | tHalMsgHeader header; |
| 3539 | tAddTsRspParams addTsRspParams; |
| 3540 | } tAddTsRspMsg, *tpAddTsRspMsg; |
| 3541 | |
| 3542 | |
| 3543 | /*--------------------------------------------------------------------------- |
| 3544 | * WLAN_HAL_DEL_TS_REQ |
| 3545 | *--------------------------------------------------------------------------*/ |
| 3546 | |
| 3547 | typedef PACKED_PRE struct PACKED_POST |
| 3548 | { |
| 3549 | /* Station Index */ |
| 3550 | tANI_U16 staIdx; |
| 3551 | |
| 3552 | /* TSPEC identifier uniquely identifying a TSPEC for a STA in a BSS */ |
| 3553 | tANI_U16 tspecIdx; |
| 3554 | |
| 3555 | /* To lookup station id using the mac address */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3556 | tSirMacAddr bssId; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3557 | |
| 3558 | } tDelTsParams, *tpDelTsParams; |
| 3559 | |
| 3560 | typedef PACKED_PRE struct PACKED_POST |
| 3561 | { |
| 3562 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3563 | tDelTsParams delTsParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3564 | } tDelTsReqMsg, *tpDelTsReqMsg; |
| 3565 | |
| 3566 | /*--------------------------------------------------------------------------- |
| 3567 | * WLAN_HAL_DEL_TS_RSP |
| 3568 | *--------------------------------------------------------------------------*/ |
| 3569 | |
| 3570 | typedef PACKED_PRE struct PACKED_POST |
| 3571 | { |
| 3572 | /*success or failure */ |
| 3573 | tANI_U32 status; |
| 3574 | } tDelTsRspParams, *tpDelTsRspParams; |
| 3575 | |
| 3576 | typedef PACKED_PRE struct PACKED_POST |
| 3577 | { |
| 3578 | tHalMsgHeader header; |
| 3579 | tDelTsRspParams delTsRspParams; |
| 3580 | } tDelTsRspMsg, *tpDelTsRspMsg; |
| 3581 | |
| 3582 | /* End of TSpec Parameters */ |
| 3583 | |
| 3584 | /* Start of BLOCK ACK related Parameters */ |
| 3585 | |
| 3586 | /*--------------------------------------------------------------------------- |
| 3587 | * WLAN_HAL_ADD_BA_SESSION_REQ |
| 3588 | *--------------------------------------------------------------------------*/ |
| 3589 | |
| 3590 | typedef PACKED_PRE struct PACKED_POST |
| 3591 | { |
| 3592 | /* Station Index */ |
| 3593 | tANI_U16 staIdx; |
| 3594 | |
| 3595 | /* Peer MAC Address */ |
| 3596 | tSirMacAddr peerMacAddr; |
| 3597 | |
| 3598 | /* ADDBA Action Frame dialog token |
| 3599 | HAL will not interpret this object */ |
| 3600 | tANI_U8 baDialogToken; |
| 3601 | |
| 3602 | /* TID for which the BA is being setup |
| 3603 | This identifies the TC or TS of interest */ |
| 3604 | tANI_U8 baTID; |
| 3605 | |
| 3606 | /* 0 - Delayed BA (Not supported) |
| 3607 | 1 - Immediate BA */ |
| 3608 | tANI_U8 baPolicy; |
| 3609 | |
| 3610 | /* Indicates the number of buffers for this TID (baTID) |
| 3611 | NOTE - This is the requested buffer size. When this |
| 3612 | is processed by HAL and subsequently by HDD, it is |
| 3613 | possible that HDD may change this buffer size. Any |
| 3614 | change in the buffer size should be noted by PE and |
| 3615 | advertized appropriately in the ADDBA response */ |
| 3616 | tANI_U16 baBufferSize; |
| 3617 | |
| 3618 | /* BA timeout in TU's 0 means no timeout will occur */ |
| 3619 | tANI_U16 baTimeout; |
| 3620 | |
| 3621 | /* b0..b3 - Fragment Number - Always set to 0 |
| 3622 | b4..b15 - Starting Sequence Number of first MSDU |
| 3623 | for which this BA is setup */ |
| 3624 | tANI_U16 baSSN; |
| 3625 | |
| 3626 | /* ADDBA direction |
| 3627 | 1 - Originator |
| 3628 | 0 - Recipient */ |
| 3629 | tANI_U8 baDirection; |
| 3630 | } tAddBASessionParams, *tpAddBASessionParams; |
| 3631 | |
| 3632 | typedef PACKED_PRE struct PACKED_POST |
| 3633 | { |
| 3634 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3635 | tAddBASessionParams addBASessionParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3636 | }tAddBASessionReqMsg, *tpAddBASessionReqMsg; |
| 3637 | |
| 3638 | /*--------------------------------------------------------------------------- |
| 3639 | * WLAN_HAL_ADD_BA_SESSION_RSP |
| 3640 | *--------------------------------------------------------------------------*/ |
| 3641 | |
| 3642 | typedef PACKED_PRE struct PACKED_POST |
| 3643 | { |
| 3644 | /*success or failure */ |
| 3645 | tANI_U32 status; |
| 3646 | |
| 3647 | /* Dialog token */ |
| 3648 | tANI_U8 baDialogToken; |
| 3649 | |
| 3650 | /* TID for which the BA session has been setup */ |
| 3651 | tANI_U8 baTID; |
| 3652 | |
| 3653 | /* BA Buffer Size allocated for the current BA session */ |
| 3654 | tANI_U8 baBufferSize; |
| 3655 | |
| 3656 | tANI_U8 baSessionID; |
| 3657 | |
| 3658 | /* Reordering Window buffer */ |
| 3659 | tANI_U8 winSize; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3660 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3661 | /*Station Index to id the sta */ |
| 3662 | tANI_U8 STAID; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3663 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3664 | /* Starting Sequence Number */ |
| 3665 | tANI_U16 SSN; |
| 3666 | } tAddBASessionRspParams, *tpAddBASessionRspParams; |
| 3667 | |
| 3668 | typedef PACKED_PRE struct PACKED_POST |
| 3669 | { |
| 3670 | tHalMsgHeader header; |
| 3671 | tAddBASessionRspParams addBASessionRspParams; |
| 3672 | } tAddBASessionRspMsg, *tpAddBASessionRspMsg; |
| 3673 | |
| 3674 | /*--------------------------------------------------------------------------- |
| 3675 | * WLAN_HAL_ADD_BA_REQ |
| 3676 | *--------------------------------------------------------------------------*/ |
| 3677 | |
| 3678 | typedef PACKED_PRE struct PACKED_POST |
| 3679 | { |
| 3680 | /* Session Id */ |
| 3681 | tANI_U8 baSessionID; |
| 3682 | |
| 3683 | /* Reorder Window Size */ |
| 3684 | tANI_U8 winSize; |
| 3685 | |
| 3686 | #ifdef FEATURE_ON_CHIP_REORDERING |
| 3687 | tANI_BOOLEAN isReorderingDoneOnChip; |
| 3688 | #endif |
| 3689 | } tAddBAParams, *tpAddBAParams; |
| 3690 | |
| 3691 | typedef PACKED_PRE struct PACKED_POST |
| 3692 | { |
| 3693 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3694 | tAddBAParams addBAParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3695 | } tAddBAReqMsg, *tpAddBAReqMsg; |
| 3696 | |
| 3697 | |
| 3698 | /*--------------------------------------------------------------------------- |
| 3699 | * WLAN_HAL_ADD_BA_RSP |
| 3700 | *--------------------------------------------------------------------------*/ |
| 3701 | |
| 3702 | typedef PACKED_PRE struct PACKED_POST |
| 3703 | { |
| 3704 | /*success or failure */ |
| 3705 | tANI_U32 status; |
| 3706 | |
| 3707 | /* Dialog token */ |
| 3708 | tANI_U8 baDialogToken; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3709 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3710 | } tAddBARspParams, *tpAddBARspParams; |
| 3711 | |
| 3712 | typedef PACKED_PRE struct PACKED_POST |
| 3713 | { |
| 3714 | tHalMsgHeader header; |
| 3715 | tAddBARspParams addBARspParams; |
| 3716 | } tAddBARspMsg, *tpAddBARspMsg; |
| 3717 | |
| 3718 | |
| 3719 | /*--------------------------------------------------------------------------- |
| 3720 | * WLAN_HAL_TRIGGER_BA_REQ |
| 3721 | *--------------------------------------------------------------------------*/ |
| 3722 | |
| 3723 | |
| 3724 | typedef struct sAddBaInfo |
| 3725 | { |
| 3726 | tANI_U16 fBaEnable : 1; |
| 3727 | tANI_U16 startingSeqNum: 12; |
| 3728 | tANI_U16 reserved : 3; |
| 3729 | }tAddBaInfo, *tpAddBaInfo; |
| 3730 | |
| 3731 | typedef struct sTriggerBaRspCandidate |
| 3732 | { |
| 3733 | tSirMacAddr staAddr; |
| 3734 | tAddBaInfo baInfo[STACFG_MAX_TC]; |
| 3735 | }tTriggerBaRspCandidate, *tpTriggerBaRspCandidate; |
| 3736 | |
| 3737 | typedef struct sTriggerBaCandidate |
| 3738 | { |
| 3739 | tANI_U8 staIdx; |
| 3740 | tANI_U8 tidBitmap; |
| 3741 | }tTriggerBaReqCandidate, *tptTriggerBaReqCandidate; |
| 3742 | |
| 3743 | typedef PACKED_PRE struct PACKED_POST |
| 3744 | { |
| 3745 | /* Session Id */ |
| 3746 | tANI_U8 baSessionID; |
| 3747 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3748 | /* baCandidateCnt is followed by trigger BA |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3749 | * Candidate List(tTriggerBaCandidate) |
| 3750 | */ |
| 3751 | tANI_U16 baCandidateCnt; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3752 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3753 | } tTriggerBAParams, *tpTriggerBAParams; |
| 3754 | |
| 3755 | typedef PACKED_PRE struct PACKED_POST |
| 3756 | { |
| 3757 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3758 | tTriggerBAParams triggerBAParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3759 | } tTriggerBAReqMsg, *tpTriggerBAReqMsg; |
| 3760 | |
| 3761 | |
| 3762 | /*--------------------------------------------------------------------------- |
| 3763 | * WLAN_HAL_TRIGGER_BA_RSP |
| 3764 | *--------------------------------------------------------------------------*/ |
| 3765 | |
| 3766 | typedef PACKED_PRE struct PACKED_POST |
| 3767 | { |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3768 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3769 | /* TO SUPPORT BT-AMP */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3770 | tSirMacAddr bssId; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3771 | |
| 3772 | /* success or failure */ |
| 3773 | tANI_U32 status; |
| 3774 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3775 | /* baCandidateCnt is followed by trigger BA |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3776 | * Rsp Candidate List(tTriggerRspBaCandidate) |
| 3777 | */ |
| 3778 | tANI_U16 baCandidateCnt; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3779 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3780 | |
| 3781 | } tTriggerBARspParams, *tpTriggerBARspParams; |
| 3782 | |
| 3783 | typedef PACKED_PRE struct PACKED_POST |
| 3784 | { |
| 3785 | tHalMsgHeader header; |
| 3786 | tTriggerBARspParams triggerBARspParams; |
| 3787 | } tTriggerBARspMsg, *tpTriggerBARspMsg; |
| 3788 | |
| 3789 | /*--------------------------------------------------------------------------- |
| 3790 | * WLAN_HAL_DEL_BA_REQ |
| 3791 | *--------------------------------------------------------------------------*/ |
| 3792 | |
| 3793 | typedef PACKED_PRE struct PACKED_POST |
| 3794 | { |
| 3795 | /* Station Index */ |
| 3796 | tANI_U16 staIdx; |
| 3797 | |
| 3798 | /* TID for which the BA session is being deleted */ |
| 3799 | tANI_U8 baTID; |
| 3800 | |
| 3801 | /* DELBA direction |
| 3802 | 1 - Originator |
| 3803 | 0 - Recipient */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3804 | tANI_U8 baDirection; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3805 | } tDelBAParams, *tpDelBAParams; |
| 3806 | |
| 3807 | typedef PACKED_PRE struct PACKED_POST |
| 3808 | { |
| 3809 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3810 | tDelBAParams delBAParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3811 | } tDelBAReqMsg, *tpDelBAReqMsg; |
| 3812 | |
| 3813 | /*--------------------------------------------------------------------------- |
| 3814 | * WLAN_HAL_DEL_BA_RSP |
| 3815 | *--------------------------------------------------------------------------*/ |
| 3816 | |
| 3817 | typedef PACKED_PRE struct PACKED_POST |
| 3818 | { |
| 3819 | /* success or failure */ |
| 3820 | tANI_U32 status; |
| 3821 | } tDelBARspParams, *tpDelBARspParams; |
| 3822 | |
| 3823 | typedef PACKED_PRE struct PACKED_POST |
| 3824 | { |
| 3825 | tHalMsgHeader header; |
| 3826 | tDelBARspParams delBARspParams; |
| 3827 | } tDelBARspMsg, *tpDelBARspMsg; |
| 3828 | |
| 3829 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3830 | /*--------------------------------------------------------------------------- |
| 3831 | * WLAN_HAL_TSM_STATS_REQ |
| 3832 | *--------------------------------------------------------------------------*/ |
| 3833 | typedef PACKED_PRE struct PACKED_POST |
| 3834 | { |
| 3835 | /* Traffic Id */ |
| 3836 | tANI_U8 tsmTID; |
| 3837 | |
| 3838 | tSirMacAddr bssId; |
| 3839 | } tTsmStatsParams, *tpTsmStatsParams; |
| 3840 | |
| 3841 | typedef PACKED_PRE struct PACKED_POST |
| 3842 | { |
| 3843 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3844 | tTsmStatsParams tsmStatsParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3845 | } tTsmStatsReqMsg, *tpTsmStatsReqMsg; |
| 3846 | |
| 3847 | |
| 3848 | /*--------------------------------------------------------------------------- |
| 3849 | * WLAN_HAL_TSM_STATS_RSP |
| 3850 | *--------------------------------------------------------------------------*/ |
| 3851 | typedef PACKED_PRE struct PACKED_POST |
| 3852 | { |
| 3853 | /*success or failure */ |
| 3854 | tANI_U32 status; |
| 3855 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3856 | /* Uplink Packet Queue delay */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3857 | tANI_U16 UplinkPktQueueDly; |
| 3858 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3859 | /* Uplink Packet Queue delay histogram */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3860 | tANI_U16 UplinkPktQueueDlyHist[4]; |
| 3861 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3862 | /* Uplink Packet Transmit delay */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3863 | tANI_U32 UplinkPktTxDly; |
| 3864 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3865 | /* Uplink Packet loss */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3866 | tANI_U16 UplinkPktLoss; |
| 3867 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3868 | /* Uplink Packet count */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3869 | tANI_U16 UplinkPktCount; |
| 3870 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3871 | /* Roaming count */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3872 | tANI_U8 RoamingCount; |
| 3873 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3874 | /* Roaming Delay */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3875 | tANI_U16 RoamingDly; |
| 3876 | } tTsmStatsRspParams, *tpTsmStatsRspParams; |
| 3877 | |
| 3878 | typedef PACKED_PRE struct PACKED_POST |
| 3879 | { |
| 3880 | tHalMsgHeader header; |
| 3881 | tTsmStatsRspParams tsmStatsRspParams; |
| 3882 | } tTsmStatsRspMsg, *tpTsmStatsRspMsg; |
| 3883 | |
| 3884 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3885 | /*--------------------------------------------------------------------------- |
| 3886 | * WLAN_HAL_SET_KEYDONE_MSG |
| 3887 | *--------------------------------------------------------------------------*/ |
| 3888 | |
| 3889 | typedef PACKED_PRE struct PACKED_POST |
| 3890 | { |
| 3891 | /*bssid of the keys */ |
| 3892 | tANI_U8 bssidx; |
| 3893 | tANI_U8 encType; |
| 3894 | } tSetKeyDoneParams, *tpSetKeyDoneParams; |
| 3895 | |
| 3896 | typedef PACKED_PRE struct PACKED_POST |
| 3897 | { |
| 3898 | tHalMsgHeader header; |
| 3899 | tSetKeyDoneParams setKeyDoneParams; |
| 3900 | } tSetKeyDoneMsg, *tpSetKeyDoneMsg; |
| 3901 | |
| 3902 | /*--------------------------------------------------------------------------- |
| 3903 | * WLAN_HAL_DOWNLOAD_NV_REQ |
| 3904 | *--------------------------------------------------------------------------*/ |
| 3905 | typedef PACKED_PRE struct PACKED_POST |
| 3906 | { |
| 3907 | /* Fragment sequence number of the NV Image. Note that NV Image might not |
| 3908 | * fit into one message due to size limitation of the SMD channel FIFO. UMAC |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3909 | * can hence choose to chop the NV blob into multiple fragments starting with |
| 3910 | * seqeunce number 0, 1, 2 etc. The last fragment MUST be indicated by |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3911 | * marking the isLastFragment field to 1. Note that all the NV blobs would be |
| 3912 | * concatenated together by HAL without any padding bytes in between.*/ |
| 3913 | tANI_U16 fragNumber; |
| 3914 | |
| 3915 | /* Is this the last fragment? When set to 1 it indicates that no more fragments |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3916 | * will be sent by UMAC and HAL can concatenate all the NV blobs rcvd & proceed |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3917 | * with the parsing. HAL would generate a WLAN_HAL_DOWNLOAD_NV_RSP to the |
| 3918 | * WLAN_HAL_DOWNLOAD_NV_REQ after it receives each fragment */ |
| 3919 | tANI_U16 isLastFragment; |
| 3920 | |
| 3921 | /* NV Image size (number of bytes) */ |
| 3922 | tANI_U32 nvImgBufferSize; |
| 3923 | |
| 3924 | /* Following the 'nvImageBufferSize', there should be nvImageBufferSize |
| 3925 | * bytes of NV Image i.e. uint8[nvImageBufferSize] */ |
| 3926 | } tHalNvImgDownloadReqParams, *tpHalNvImgDownloadReqParams; |
| 3927 | |
| 3928 | typedef PACKED_PRE struct PACKED_POST |
| 3929 | { |
| 3930 | /* Note: The length specified in tHalNvImgDownloadReqMsg messages should be |
| 3931 | * header.msgLen = sizeof(tHalNvImgDownloadReqMsg) + nvImgBufferSize */ |
| 3932 | tHalMsgHeader header; |
| 3933 | tHalNvImgDownloadReqParams nvImageReqParams; |
| 3934 | } tHalNvImgDownloadReqMsg, *tpHalNvImgDownloadReqMsg; |
| 3935 | |
| 3936 | /*--------------------------------------------------------------------------- |
| 3937 | * WLAN_HAL_DOWNLOAD_NV_RSP |
| 3938 | *--------------------------------------------------------------------------*/ |
| 3939 | typedef PACKED_PRE struct PACKED_POST |
| 3940 | { |
| 3941 | /* Success or Failure. HAL would generate a WLAN_HAL_DOWNLOAD_NV_RSP |
| 3942 | * after each fragment */ |
| 3943 | tANI_U32 status; |
| 3944 | } tHalNvImgDownloadRspParams, *tpHalNvImgDownloadRspParams; |
| 3945 | |
| 3946 | typedef PACKED_PRE struct PACKED_POST |
| 3947 | { |
| 3948 | tHalMsgHeader header; |
| 3949 | tHalNvImgDownloadRspParams nvImageRspParams; |
| 3950 | } tHalNvImgDownloadRspMsg, *tpHalNvImgDownloadRspMsg; |
| 3951 | |
| 3952 | /*--------------------------------------------------------------------------- |
| 3953 | * WLAN_HAL_STORE_NV_IND |
| 3954 | *--------------------------------------------------------------------------*/ |
| 3955 | typedef PACKED_PRE struct PACKED_POST |
| 3956 | { |
| 3957 | /* NV Item */ |
| 3958 | eNvTable tableID; |
| 3959 | |
| 3960 | /* Size of NV Blob */ |
| 3961 | tANI_U32 nvBlobSize; |
| 3962 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3963 | /* Following the 'nvBlobSize', there should be nvBlobSize bytes of |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3964 | * NV blob i.e. uint8[nvBlobSize] */ |
| 3965 | } tHalNvStoreParams, *tpHalNvStoreParams; |
| 3966 | |
| 3967 | typedef PACKED_PRE struct PACKED_POST |
| 3968 | { |
| 3969 | /* Note: The length specified in tHalNvStoreInd messages should be |
| 3970 | * header.msgLen = sizeof(tHalNvStoreInd) + nvBlobSize */ |
| 3971 | tHalMsgHeader header; |
| 3972 | tHalNvStoreParams nvStoreParams; |
| 3973 | } tHalNvStoreInd, *tpHalNvStoreInd; |
| 3974 | |
| 3975 | /* End of Block Ack Related Parameters */ |
| 3976 | |
| 3977 | /*--------------------------------------------------------------------------- |
| 3978 | * WLAN_HAL_MIC_FAILURE_IND |
| 3979 | *--------------------------------------------------------------------------*/ |
| 3980 | |
| 3981 | #define SIR_CIPHER_SEQ_CTR_SIZE 6 |
| 3982 | |
| 3983 | typedef PACKED_PRE struct PACKED_POST |
| 3984 | { |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3985 | tSirMacAddr srcMacAddr; //address used to compute MIC |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3986 | tSirMacAddr taMacAddr; //transmitter address |
| 3987 | tSirMacAddr dstMacAddr; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 3988 | tANI_U8 multicast; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3989 | tANI_U8 IV1; // first byte of IV |
| 3990 | tANI_U8 keyId; // second byte of IV |
| 3991 | tANI_U8 TSC[SIR_CIPHER_SEQ_CTR_SIZE]; // sequence number |
| 3992 | tSirMacAddr rxMacAddr; // receive address |
| 3993 | } tSirMicFailureInfo, *tpSirMicFailureInfo; |
| 3994 | |
| 3995 | /* Definition for MIC failure indication |
| 3996 | MAC reports this each time a MIC failure occures on Rx TKIP packet |
| 3997 | */ |
| 3998 | typedef PACKED_PRE struct PACKED_POST |
| 3999 | { |
| 4000 | tSirMacAddr bssId; // BSSID |
| 4001 | tSirMicFailureInfo info; |
| 4002 | } tSirMicFailureInd, *tpSirMicFailureInd; |
| 4003 | |
| 4004 | typedef PACKED_PRE struct PACKED_POST |
| 4005 | { |
| 4006 | tHalMsgHeader header; |
| 4007 | tSirMicFailureInd micFailureInd; |
| 4008 | } tMicFailureIndMsg, *tpMicFailureIndMsg; |
| 4009 | |
Mohit Khanna | 4a70d26 | 2012-09-11 16:30:12 -0700 | [diff] [blame] | 4010 | typedef PACKED_PRE struct PACKED_POST |
| 4011 | { |
| 4012 | tANI_U16 opMode; |
| 4013 | tANI_U16 staId; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4014 | }tUpdateVHTOpMode, *tpUpdateVHTOpMode; |
Mohit Khanna | 4a70d26 | 2012-09-11 16:30:12 -0700 | [diff] [blame] | 4015 | |
| 4016 | typedef PACKED_PRE struct PACKED_POST |
| 4017 | { |
| 4018 | tHalMsgHeader header; |
| 4019 | tUpdateVHTOpMode updateVhtOpMode; |
| 4020 | } tUpdateVhtOpModeReqMsg, *tpUpdateVhtOpModeReqMsg; |
| 4021 | |
| 4022 | typedef PACKED_PRE struct PACKED_POST |
| 4023 | { |
| 4024 | tANI_U32 status; |
| 4025 | } tUpdateVhtOpModeParamsRsp, *tpUpdateVhtOpModeParamsRsp; |
| 4026 | |
| 4027 | typedef PACKED_PRE struct PACKED_POST |
| 4028 | { |
| 4029 | tHalMsgHeader header; |
| 4030 | tUpdateVhtOpModeParamsRsp updateVhtOpModeRspParam; |
| 4031 | } tUpdateVhtOpModeParamsRspMsg, *tpUpdateVhtOpModeParamsRspMsg; |
| 4032 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4033 | /*--------------------------------------------------------------------------- |
| 4034 | * WLAN_HAL_UPDATE_BEACON_REQ |
| 4035 | *--------------------------------------------------------------------------*/ |
| 4036 | typedef PACKED_PRE struct PACKED_POST |
| 4037 | { |
| 4038 | |
| 4039 | tANI_U8 bssIdx; |
| 4040 | |
| 4041 | //shortPreamble mode. HAL should update all the STA rates when it |
| 4042 | //receives this message |
| 4043 | tANI_U8 fShortPreamble; |
| 4044 | //short Slot time. |
| 4045 | tANI_U8 fShortSlotTime; |
| 4046 | //Beacon Interval |
| 4047 | tANI_U16 beaconInterval; |
| 4048 | //Protection related |
| 4049 | tANI_U8 llaCoexist; |
| 4050 | tANI_U8 llbCoexist; |
| 4051 | tANI_U8 llgCoexist; |
| 4052 | tANI_U8 ht20MhzCoexist; |
| 4053 | tANI_U8 llnNonGFCoexist; |
| 4054 | tANI_U8 fLsigTXOPProtectionFullSupport; |
| 4055 | tANI_U8 fRIFSMode; |
| 4056 | |
| 4057 | tANI_U16 paramChangeBitmap; |
| 4058 | }tUpdateBeaconParams, *tpUpdateBeaconParams; |
| 4059 | |
| 4060 | |
| 4061 | typedef PACKED_PRE struct PACKED_POST |
| 4062 | { |
| 4063 | tHalMsgHeader header; |
| 4064 | tUpdateBeaconParams updateBeaconParam; |
| 4065 | } tUpdateBeaconReqMsg, *tpUpdateBeaconReqMsg; |
| 4066 | |
| 4067 | /*--------------------------------------------------------------------------- |
| 4068 | * WLAN_HAL_UPDATE_BEACON_RSP |
| 4069 | *--------------------------------------------------------------------------*/ |
| 4070 | typedef PACKED_PRE struct PACKED_POST |
| 4071 | { |
| 4072 | tANI_U32 status; |
| 4073 | } tUpdateBeaconRspParams, *tpUpdateBeaconRspParams; |
| 4074 | |
| 4075 | typedef PACKED_PRE struct PACKED_POST |
| 4076 | { |
| 4077 | tHalMsgHeader header; |
| 4078 | tUpdateBeaconRspParams updateBeaconRspParam; |
| 4079 | } tUpdateBeaconRspMsg, *tpUpdateBeaconRspMsg; |
| 4080 | |
| 4081 | /*--------------------------------------------------------------------------- |
| 4082 | * WLAN_HAL_SEND_BEACON_REQ |
| 4083 | *--------------------------------------------------------------------------*/ |
| 4084 | typedef PACKED_PRE struct PACKED_POST |
| 4085 | { |
| 4086 | tANI_U32 beaconLength; //length of the template. |
| 4087 | tANI_U8 beacon[BEACON_TEMPLATE_SIZE]; // Beacon data. |
| 4088 | tSirMacAddr bssId; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4089 | tANI_U32 timIeOffset; //TIM IE offset from the beginning of the template. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4090 | tANI_U16 p2pIeOffset; //P2P IE offset from the begining of the template |
| 4091 | }tSendBeaconParams, *tpSendBeaconParams; |
| 4092 | |
| 4093 | |
| 4094 | typedef PACKED_PRE struct PACKED_POST |
| 4095 | { |
| 4096 | tHalMsgHeader header; |
| 4097 | tSendBeaconParams sendBeaconParam; |
| 4098 | }tSendBeaconReqMsg, *tpSendBeaconReqMsg; |
| 4099 | |
| 4100 | /*--------------------------------------------------------------------------- |
| 4101 | * WLAN_HAL_SEND_BEACON_RSP |
| 4102 | *--------------------------------------------------------------------------*/ |
| 4103 | typedef PACKED_PRE struct PACKED_POST |
| 4104 | { |
| 4105 | tANI_U32 status; |
| 4106 | } tSendBeaconRspParams, *tpSendBeaconRspParams; |
| 4107 | |
| 4108 | typedef PACKED_PRE struct PACKED_POST |
| 4109 | { |
| 4110 | tHalMsgHeader header; |
| 4111 | tSendBeaconRspParams sendBeaconRspParam; |
| 4112 | } tSendBeaconRspMsg, *tpSendBeaconRspMsg; |
| 4113 | |
| 4114 | #ifdef FEATURE_5GHZ_BAND |
| 4115 | |
| 4116 | /*--------------------------------------------------------------------------- |
| 4117 | * WLAN_HAL_ENABLE_RADAR_DETECT_REQ |
| 4118 | *--------------------------------------------------------------------------*/ |
| 4119 | typedef PACKED_PRE struct PACKED_POST |
| 4120 | { |
| 4121 | tSirMacAddr BSSID; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4122 | tANI_U8 channel; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4123 | }tSirEnableRadarInfoType, *tptSirEnableRadarInfoType; |
| 4124 | |
| 4125 | |
| 4126 | typedef PACKED_PRE struct PACKED_POST |
| 4127 | { |
| 4128 | /* Link Parameters */ |
| 4129 | tSirEnableRadarInfoType EnableRadarInfo; |
| 4130 | }tEnableRadarReqParams, *tpEnableRadarReqParams; |
| 4131 | |
| 4132 | typedef PACKED_PRE struct PACKED_POST |
| 4133 | { |
| 4134 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4135 | tEnableRadarReqParams enableRadarReqParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4136 | }tEnableRadarReqMsg, *tpEnableRadarReqMsg; |
| 4137 | |
| 4138 | /*--------------------------------------------------------------------------- |
| 4139 | * WLAN_HAL_ENABLE_RADAR_DETECT_RSP |
| 4140 | *--------------------------------------------------------------------------*/ |
| 4141 | |
| 4142 | typedef PACKED_PRE struct PACKED_POST |
| 4143 | { |
| 4144 | /* Link Parameters */ |
| 4145 | tSirMacAddr BSSID; |
| 4146 | /* success or failure */ |
| 4147 | tANI_U32 status; |
| 4148 | }tEnableRadarRspParams, *tpEnableRadarRspParams; |
| 4149 | |
| 4150 | typedef PACKED_PRE struct PACKED_POST |
| 4151 | { |
| 4152 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4153 | tEnableRadarRspParams enableRadarRspParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4154 | }tEnableRadarRspMsg, *tpEnableRadarRspMsg; |
| 4155 | |
| 4156 | /*--------------------------------------------------------------------------- |
| 4157 | *WLAN_HAL_RADAR_DETECT_INTR_IND |
| 4158 | *--------------------------------------------------------------------------*/ |
| 4159 | |
| 4160 | typedef PACKED_PRE struct PACKED_POST |
| 4161 | { |
| 4162 | tANI_U8 radarDetChannel; |
| 4163 | }tRadarDetectIntrIndParams, *tpRadarDetectIntrIndParams; |
| 4164 | |
| 4165 | typedef PACKED_PRE struct PACKED_POST |
| 4166 | { |
| 4167 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4168 | tRadarDetectIntrIndParams radarDetectIntrIndParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4169 | }tRadarDetectIntrIndMsg, *tptRadarDetectIntrIndMsg; |
| 4170 | |
| 4171 | /*--------------------------------------------------------------------------- |
| 4172 | *WLAN_HAL_RADAR_DETECT_IND |
| 4173 | *-------------------------------------------------------------------------*/ |
| 4174 | typedef PACKED_PRE struct PACKED_POST |
| 4175 | { |
| 4176 | /*channel number in which the RADAR detected*/ |
| 4177 | tANI_U8 channelNumber; |
| 4178 | |
| 4179 | /*RADAR pulse width*/ |
| 4180 | tANI_U16 radarPulseWidth; // in usecond |
| 4181 | |
| 4182 | /*Number of RADAR pulses */ |
| 4183 | tANI_U16 numRadarPulse; |
| 4184 | }tRadarDetectIndParams,*tpRadarDetectIndParams; |
| 4185 | |
| 4186 | typedef PACKED_PRE struct PACKED_POST |
| 4187 | { |
| 4188 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4189 | tRadarDetectIndParams radarDetectIndParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4190 | }tRadarDetectIndMsg, *tptRadarDetectIndMsg; |
| 4191 | |
| 4192 | |
| 4193 | /*--------------------------------------------------------------------------- |
| 4194 | *WLAN_HAL_GET_TPC_REPORT_REQ |
| 4195 | *-------------------------------------------------------------------------*/ |
| 4196 | typedef PACKED_PRE struct PACKED_POST |
| 4197 | { |
| 4198 | tSirMacAddr sta; |
| 4199 | tANI_U8 dialogToken; |
| 4200 | tANI_U8 txpower; |
| 4201 | }tSirGetTpcReportReqParams, *tpSirGetTpcReportReqParams; |
| 4202 | |
| 4203 | |
| 4204 | typedef PACKED_PRE struct PACKED_POST |
| 4205 | { |
| 4206 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4207 | tSirGetTpcReportReqParams getTpcReportReqParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4208 | }tSirGetTpcReportReqMsg, *tpSirGetTpcReportReqMsg; |
| 4209 | |
| 4210 | /*--------------------------------------------------------------------------- |
| 4211 | * WLAN_HAL_GET_TPC_REPORT_RSP |
| 4212 | *--------------------------------------------------------------------------*/ |
| 4213 | |
| 4214 | typedef PACKED_PRE struct PACKED_POST |
| 4215 | { |
| 4216 | /* success or failure */ |
| 4217 | tANI_U32 status; |
| 4218 | }tSirGetTpcReportRspParams, *tpSirGetTpcReportRspParams; |
| 4219 | |
| 4220 | typedef PACKED_PRE struct PACKED_POST |
| 4221 | { |
| 4222 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4223 | tSirGetTpcReportRspParams getTpcReportRspParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4224 | }tSirGetTpcReportRspMsg, *tpSirGetTpcReportRspMsg; |
| 4225 | |
| 4226 | #endif |
| 4227 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4228 | /*--------------------------------------------------------------------------- |
| 4229 | *WLAN_HAL_UPDATE_PROBE_RSP_TEMPLATE_REQ |
| 4230 | *-------------------------------------------------------------------------*/ |
| 4231 | typedef PACKED_PRE struct PACKED_POST |
| 4232 | { |
| 4233 | tANI_U8 pProbeRespTemplate[BEACON_TEMPLATE_SIZE]; |
| 4234 | tANI_U32 probeRespTemplateLen; |
| 4235 | tANI_U32 ucProxyProbeReqValidIEBmap[8]; |
| 4236 | tSirMacAddr bssId; |
| 4237 | |
| 4238 | }tSendProbeRespReqParams, *tpSendProbeRespReqParams; |
| 4239 | |
| 4240 | typedef PACKED_PRE struct PACKED_POST |
| 4241 | { |
| 4242 | tHalMsgHeader header; |
| 4243 | tSendProbeRespReqParams sendProbeRespReqParams ; |
| 4244 | }tSendProbeRespReqMsg, *tpSendProbeRespReqMsg; |
| 4245 | |
Sreelakshmi Konamki | 622ea61 | 2017-05-15 18:58:56 +0530 | [diff] [blame] | 4246 | typedef PACKED_PRE struct PACKED_POST |
| 4247 | { |
| 4248 | tSirMacAddr bssId; |
| 4249 | tANI_U32 probeRespTemplateLen; |
| 4250 | tANI_U32 ucProxyProbeReqValidIEBmap[8]; |
| 4251 | tANI_U8 pProbeRespTemplate[1]; //Variable length array |
| 4252 | }tSendProbeRespReqParams_V1, *tpSendProbeRespReqParams_V1; |
| 4253 | |
| 4254 | typedef PACKED_PRE struct PACKED_POST |
| 4255 | { |
| 4256 | tHalMsgHeader header; |
| 4257 | tSendProbeRespReqParams_V1 sendProbeRespReqParams_v1; |
| 4258 | }tSendProbeRespReqMsg_V1, *tpSendProbeRespReqMsg_V1; |
| 4259 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4260 | /*--------------------------------------------------------------------------- |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4261 | *WLAN_HAL_UPDATE_PROBE_RSP_TEMPLATE_RSP |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4262 | *--------------------------------------------------------------------------*/ |
| 4263 | |
| 4264 | typedef PACKED_PRE struct PACKED_POST |
| 4265 | { |
| 4266 | /* success or failure */ |
| 4267 | tANI_U32 status; |
| 4268 | }tSendProbeRespRspParams, *tpSendProbeRespRspParams; |
| 4269 | |
| 4270 | typedef PACKED_PRE struct PACKED_POST |
| 4271 | { |
| 4272 | tHalMsgHeader header; |
| 4273 | tSendProbeRespRspParams sendProbeRespRspParams; |
| 4274 | }tSendProbeRespRspMsg, *tpSendProbeRespRspMsg; |
| 4275 | |
| 4276 | |
| 4277 | /*--------------------------------------------------------------------------- |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4278 | *WLAN_HAL_UNKNOWN_ADDR2_FRAME_RX_IND |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4279 | *--------------------------------------------------------------------------*/ |
| 4280 | |
| 4281 | typedef PACKED_PRE struct PACKED_POST |
| 4282 | { |
| 4283 | /* success or failure */ |
| 4284 | tANI_U32 status; |
| 4285 | }tSendUnkownFrameRxIndParams, *tpSendUnkownFrameRxIndParams; |
| 4286 | |
| 4287 | typedef PACKED_PRE struct PACKED_POST |
| 4288 | { |
| 4289 | tHalMsgHeader header; |
| 4290 | tSendUnkownFrameRxIndParams sendUnkownFrameRxIndParams; |
| 4291 | }tSendUnkownFrameRxIndMsg, *tpSendUnkownFrameRxIndMsg; |
| 4292 | |
| 4293 | /*--------------------------------------------------------------------------- |
| 4294 | *WLAN_HAL_DELETE_STA_CONTEXT_IND |
| 4295 | *--------------------------------------------------------------------------*/ |
| 4296 | |
| 4297 | typedef PACKED_PRE struct PACKED_POST |
| 4298 | { |
| 4299 | tANI_U16 assocId; |
| 4300 | tANI_U16 staId; |
| 4301 | tSirMacAddr bssId; // TO SUPPORT BT-AMP |
| 4302 | // HAL copies bssid from the sta table. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4303 | tSirMacAddr addr2; // |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4304 | tANI_U16 reasonCode; // To unify the keepalive / unknown A2 / tim-based disa |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4305 | |
| 4306 | }tDeleteStaContextParams, *tpDeleteStaContextParams; |
| 4307 | |
| 4308 | |
| 4309 | typedef PACKED_PRE struct PACKED_POST |
| 4310 | { |
| 4311 | tHalMsgHeader header; |
| 4312 | tDeleteStaContextParams deleteStaContextParams; |
| 4313 | }tDeleteStaContextIndMsg, *tpDeleteStaContextIndMsg; |
| 4314 | |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 4315 | typedef PACKED_PRE struct PACKED_POST |
| 4316 | { |
| 4317 | tHalMsgHeader header; |
| 4318 | tANI_U8 assocId; |
| 4319 | tANI_U8 staIdx; |
| 4320 | tANI_U8 bssIdx; |
| 4321 | tANI_U8 uReasonCode; |
| 4322 | tANI_U32 uStatus; |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 4323 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
| 4324 | tANI_U8 staAddr[6]; |
| 4325 | tANI_U8 bssId[6]; |
| 4326 | #endif |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 4327 | } tIndicateDelSta, *tpIndicateDelSta; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4328 | |
| 4329 | /*--------------------------------------------------------------------------- |
| 4330 | *WLAN_HAL_SIGNAL_BTAMP_EVENT_REQ |
| 4331 | *--------------------------------------------------------------------------*/ |
| 4332 | |
| 4333 | typedef PACKED_PRE struct PACKED_POST |
| 4334 | { |
| 4335 | tBtAmpEventType btAmpEventType; |
| 4336 | |
| 4337 | }tBtAmpEventParams, *tpBtAmpEventParams; |
| 4338 | |
| 4339 | |
| 4340 | |
| 4341 | typedef PACKED_PRE struct PACKED_POST |
| 4342 | { |
| 4343 | tHalMsgHeader header; |
| 4344 | tBtAmpEventParams btAmpEventParams; |
| 4345 | }tBtAmpEventMsg, *tpBtAmpEventMsg; |
| 4346 | |
| 4347 | /*--------------------------------------------------------------------------- |
| 4348 | *WLAN_HAL_SIGNAL_BTAMP_EVENT_RSP |
| 4349 | *--------------------------------------------------------------------------*/ |
| 4350 | |
| 4351 | typedef PACKED_PRE struct PACKED_POST |
| 4352 | { |
| 4353 | /* success or failure */ |
| 4354 | tANI_U32 status; |
| 4355 | }tBtAmpEventRspParams, *tpBtAmpEventRspParams; |
| 4356 | |
| 4357 | typedef PACKED_PRE struct PACKED_POST |
| 4358 | { |
| 4359 | tHalMsgHeader header; |
| 4360 | tBtAmpEventRspParams btAmpEventRspParams; |
| 4361 | }tBtAmpEventRsp, *tpBtAmpEventRsp; |
| 4362 | |
| 4363 | |
| 4364 | /*--------------------------------------------------------------------------- |
| 4365 | *WLAN_HAL_TL_HAL_FLUSH_AC_REQ |
| 4366 | *--------------------------------------------------------------------------*/ |
| 4367 | |
| 4368 | typedef PACKED_PRE struct PACKED_POST |
| 4369 | { |
| 4370 | // Station Index. originates from HAL |
| 4371 | tANI_U8 ucSTAId; |
| 4372 | |
| 4373 | // TID for which the transmit queue is being flushed |
| 4374 | tANI_U8 ucTid; |
| 4375 | |
| 4376 | }tTlHalFlushAcParams, *tpTlHalFlushAcParams; |
| 4377 | |
| 4378 | |
| 4379 | typedef PACKED_PRE struct PACKED_POST |
| 4380 | { |
| 4381 | tHalMsgHeader header; |
| 4382 | tTlHalFlushAcParams tlHalFlushAcParam; |
| 4383 | }tTlHalFlushAcReq, *tpTlHalFlushAcReq; |
| 4384 | |
| 4385 | /*--------------------------------------------------------------------------- |
| 4386 | *WLAN_HAL_TL_HAL_FLUSH_AC_RSP |
| 4387 | *--------------------------------------------------------------------------*/ |
| 4388 | |
| 4389 | typedef PACKED_PRE struct PACKED_POST |
| 4390 | { |
| 4391 | // Station Index. originates from HAL |
| 4392 | tANI_U8 ucSTAId; |
| 4393 | |
| 4394 | // TID for which the transmit queue is being flushed |
| 4395 | tANI_U8 ucTid; |
| 4396 | |
| 4397 | /* success or failure */ |
| 4398 | tANI_U32 status; |
| 4399 | }tTlHalFlushAcRspParams, *tpTlHalFlushAcRspParams; |
| 4400 | |
| 4401 | typedef PACKED_PRE struct PACKED_POST |
| 4402 | { |
| 4403 | tHalMsgHeader header; |
| 4404 | tTlHalFlushAcRspParams tlHalFlushAcRspParam; |
| 4405 | }tTlHalFlushAcRspMsg, *tpTlHalFlushAcRspMsg; |
| 4406 | |
| 4407 | /*--------------------------------------------------------------------------- |
| 4408 | * WLAN_HAL_ENTER_IMPS_REQ |
| 4409 | *--------------------------------------------------------------------------*/ |
| 4410 | typedef PACKED_PRE struct PACKED_POST |
| 4411 | { |
| 4412 | tHalMsgHeader header; |
| 4413 | } tHalEnterImpsReqMsg, *tpHalEnterImpsReqMsg; |
| 4414 | |
| 4415 | /*--------------------------------------------------------------------------- |
| 4416 | * WLAN_HAL_EXIT_IMPS_REQ |
| 4417 | *--------------------------------------------------------------------------*/ |
| 4418 | typedef PACKED_PRE struct PACKED_POST |
| 4419 | { |
| 4420 | tHalMsgHeader header; |
| 4421 | } tHalExitImpsReqMsg, *tpHalExitImpsReqMsg; |
| 4422 | |
| 4423 | /*--------------------------------------------------------------------------- |
| 4424 | * WLAN_HAL_ENTER_BMPS_REQ |
| 4425 | *--------------------------------------------------------------------------*/ |
| 4426 | |
| 4427 | typedef PACKED_PRE struct PACKED_POST |
| 4428 | { |
| 4429 | tANI_U8 bssIdx; |
| 4430 | //TBTT value derived from the last beacon |
| 4431 | #ifndef BUILD_QWPTTSTATIC |
| 4432 | tANI_U64 tbtt; |
| 4433 | #endif |
| 4434 | tANI_U8 dtimCount; |
| 4435 | //DTIM period given to HAL during association may not be valid, |
| 4436 | //if association is based on ProbeRsp instead of beacon. |
| 4437 | tANI_U8 dtimPeriod; |
| 4438 | |
Varun Reddy Yeturu | a4cec9f | 2014-02-27 15:19:47 -0800 | [diff] [blame] | 4439 | // For ESE and 11R Roaming |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4440 | tANI_U32 rssiFilterPeriod; |
| 4441 | tANI_U32 numBeaconPerRssiAverage; |
| 4442 | tANI_U8 bRssiFilterEnable; |
| 4443 | |
| 4444 | } tHalEnterBmpsReqParams, *tpHalEnterBmpsReqParams; |
| 4445 | |
| 4446 | |
| 4447 | typedef PACKED_PRE struct PACKED_POST |
| 4448 | { |
| 4449 | tHalMsgHeader header; |
| 4450 | tHalEnterBmpsReqParams enterBmpsReq; |
| 4451 | } tHalEnterBmpsReqMsg, *tpHalEnterBmpsReqMsg; |
| 4452 | |
| 4453 | /*--------------------------------------------------------------------------- |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4454 | * WLAN_HAL_PRINT_REG_INFO_IND |
| 4455 | *--------------------------------------------------------------------------*/ |
| 4456 | typedef PACKED_PRE struct PACKED_POST |
| 4457 | { |
| 4458 | uint32 regAddr; |
| 4459 | uint32 regValue; |
| 4460 | } tHalRegDebugInfo, *tpRegDebugInfo; |
| 4461 | |
| 4462 | typedef PACKED_PRE struct PACKED_POST |
| 4463 | { |
| 4464 | uint32 regCount; |
| 4465 | uint32 scenario; |
| 4466 | uint32 reasonCode; |
| 4467 | } tHalRegDebugInfoParams, *tpRegDebugInfoParams; |
| 4468 | |
| 4469 | typedef PACKED_PRE struct PACKED_POST |
| 4470 | { |
| 4471 | tHalMsgHeader header; |
| 4472 | tHalRegDebugInfoParams regParams; |
| 4473 | } tHalRegDebugInfoMsg, *tpRegDebugInfoMsg; |
| 4474 | |
| 4475 | /*--------------------------------------------------------------------------- |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4476 | * WLAN_HAL_EXIT_BMPS_REQ |
| 4477 | *--------------------------------------------------------------------------*/ |
| 4478 | typedef PACKED_PRE struct PACKED_POST |
| 4479 | { |
| 4480 | tANI_U8 sendDataNull; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 4481 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4482 | } tHalExitBmpsReqParams, *tpHalExitBmpsReqParams; |
| 4483 | |
| 4484 | typedef PACKED_PRE struct PACKED_POST |
| 4485 | { |
| 4486 | tHalMsgHeader header; |
| 4487 | tHalExitBmpsReqParams exitBmpsReqParams; |
| 4488 | } tHalExitBmpsReqMsg, *tpHalExitBmpsReqMsg; |
| 4489 | |
| 4490 | /*--------------------------------------------------------------------------- |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 4491 | * WLAN_HAL_MISSED_BEACON_IND |
| 4492 | *--------------------------------------------------------------------------*/ |
| 4493 | typedef PACKED_PRE struct PACKED_POST |
| 4494 | { |
| 4495 | tANI_U8 bssIdx; |
| 4496 | } tHalMissedBeaconIndParams, *tpHalMissedBeaconIndParams; |
| 4497 | |
| 4498 | typedef PACKED_PRE struct PACKED_POST |
| 4499 | { |
| 4500 | tHalMsgHeader header; |
| 4501 | tHalMissedBeaconIndParams missedBeaconIndParams; |
| 4502 | } tHalMissedBeaconIndMsg, *tpHalMissedBeaconIndMsg; |
| 4503 | |
| 4504 | /*--------------------------------------------------------------------------- |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4505 | * WLAN_HAL_ADD_BCN_FILTER_REQ |
| 4506 | *--------------------------------------------------------------------------*/ |
| 4507 | /* Beacon Filtering data structures */ |
| 4508 | typedef PACKED_PRE struct PACKED_POST |
| 4509 | { |
| 4510 | tANI_U8 offset; |
| 4511 | tANI_U8 value; |
| 4512 | tANI_U8 bitMask; |
| 4513 | tANI_U8 ref; |
| 4514 | } tEidByteInfo, *tpEidByteInfo; |
| 4515 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4516 | typedef PACKED_PRE struct PACKED_POST |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4517 | { |
| 4518 | tANI_U16 capabilityInfo; |
| 4519 | tANI_U16 capabilityMask; |
| 4520 | tANI_U16 beaconInterval; |
| 4521 | tANI_U16 ieNum; |
Madan Mohan Koyyalamudi | da62ada | 2012-10-11 17:04:03 -0700 | [diff] [blame] | 4522 | tANI_U8 bssIdx; |
| 4523 | tANI_U8 reserved; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4524 | } tBeaconFilterMsg, *tpBeaconFilterMsg; |
| 4525 | |
| 4526 | /* The above structure would be followed by multiple of below mentioned structure */ |
| 4527 | typedef PACKED_PRE struct PACKED_POST |
| 4528 | { |
| 4529 | tANI_U8 elementId; |
| 4530 | tANI_U8 checkIePresence; |
| 4531 | tEidByteInfo byte; |
| 4532 | } tBeaconFilterIe, *tpBeaconFilterIe; |
| 4533 | |
| 4534 | typedef PACKED_PRE struct PACKED_POST |
| 4535 | { |
| 4536 | tHalMsgHeader header; |
| 4537 | tBeaconFilterMsg addBcnFilterParams; |
| 4538 | } tHalAddBcnFilterReqMsg, *tpHalAddBcnFilterReqMsg; |
| 4539 | |
| 4540 | /*--------------------------------------------------------------------------- |
| 4541 | * WLAN_HAL_REM_BCN_FILTER_REQ |
| 4542 | *--------------------------------------------------------------------------*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4543 | typedef PACKED_PRE struct PACKED_POST |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4544 | { |
| 4545 | tANI_U8 ucIeCount; |
| 4546 | tANI_U8 ucRemIeId[1]; |
| 4547 | } tRemBeaconFilterMsg, *tpRemBeaconFilterMsg; |
| 4548 | |
| 4549 | typedef PACKED_PRE struct PACKED_POST |
| 4550 | { |
| 4551 | tHalMsgHeader header; |
| 4552 | tRemBeaconFilterMsg remBcnFilterParams; |
| 4553 | } tHalRemBcnFilterReqMsg, *tpHalRemBcnFilterReqMsg; |
| 4554 | |
| 4555 | /*--------------------------------------------------------------------------- |
| 4556 | * WLAN_HAL_HOST_OFFLOAD_REQ |
| 4557 | *--------------------------------------------------------------------------*/ |
| 4558 | #define HAL_IPV4_ARP_REPLY_OFFLOAD 0 |
| 4559 | #define HAL_IPV6_NEIGHBOR_DISCOVERY_OFFLOAD 1 |
| 4560 | #define HAL_IPV6_NS_OFFLOAD 2 |
| 4561 | #define HAL_IPV6_ADDR_LEN 16 |
| 4562 | #define HAL_MAC_ADDR_LEN 6 |
| 4563 | #define HAL_OFFLOAD_DISABLE 0 |
| 4564 | #define HAL_OFFLOAD_ENABLE 1 |
| 4565 | #define HAL_OFFLOAD_BCAST_FILTER_ENABLE 0x2 |
Madan Mohan Koyyalamudi | 5a244b2 | 2013-03-21 16:12:18 -0700 | [diff] [blame] | 4566 | #define HAL_OFFLOAD_MCAST_FILTER_ENABLE 0x4 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4567 | #define HAL_OFFLOAD_ARP_AND_BCAST_FILTER_ENABLE (HAL_OFFLOAD_ENABLE|HAL_OFFLOAD_BCAST_FILTER_ENABLE) |
Madan Mohan Koyyalamudi | 5a244b2 | 2013-03-21 16:12:18 -0700 | [diff] [blame] | 4568 | #define HAL_OFFLOAD_IPV6NS_AND_MCAST_FILTER_ENABLE (HAL_OFFLOAD_ENABLE|HAL_OFFLOAD_MCAST_FILTER_ENABLE) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4569 | |
| 4570 | typedef PACKED_PRE struct PACKED_POST _tHalNSOffloadParams |
| 4571 | { |
| 4572 | tANI_U8 srcIPv6Addr[HAL_IPV6_ADDR_LEN]; |
| 4573 | tANI_U8 selfIPv6Addr[HAL_IPV6_ADDR_LEN]; |
| 4574 | //Only support 2 possible Network Advertisement IPv6 address |
| 4575 | tANI_U8 targetIPv6Addr1[HAL_IPV6_ADDR_LEN]; |
| 4576 | tANI_U8 targetIPv6Addr2[HAL_IPV6_ADDR_LEN]; |
| 4577 | tANI_U8 selfMacAddr[HAL_MAC_ADDR_LEN]; |
| 4578 | tANI_U8 srcIPv6AddrValid : 1; |
| 4579 | tANI_U8 targetIPv6Addr1Valid : 1; |
| 4580 | tANI_U8 targetIPv6Addr2Valid : 1; |
| 4581 | tANI_U8 reserved1 : 5; |
| 4582 | tANI_U8 reserved2; //make it DWORD aligned |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 4583 | tANI_U8 bssIdx; |
Madan Mohan Koyyalamudi | 5a244b2 | 2013-03-21 16:12:18 -0700 | [diff] [blame] | 4584 | tANI_U32 slotIndex; // slot index for this offload |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4585 | } tHalNSOffloadParams; |
| 4586 | |
| 4587 | typedef PACKED_PRE struct PACKED_POST |
| 4588 | { |
| 4589 | tANI_U8 offloadType; |
| 4590 | tANI_U8 enableOrDisable; |
| 4591 | PACKED_PRE union PACKED_POST |
| 4592 | { |
| 4593 | tANI_U8 hostIpv4Addr [4]; |
| 4594 | tANI_U8 hostIpv6Addr [HAL_IPV6_ADDR_LEN]; |
| 4595 | } params; |
| 4596 | } tHalHostOffloadReq, *tpHalHostOffloadReq; |
| 4597 | |
| 4598 | typedef PACKED_PRE struct PACKED_POST |
| 4599 | { |
| 4600 | tHalMsgHeader header; |
| 4601 | tHalHostOffloadReq hostOffloadParams; |
| 4602 | tHalNSOffloadParams nsOffloadParams; |
| 4603 | } tHalHostOffloadReqMsg, *tpHalHostOffloadReqMsg; |
| 4604 | |
Leo Chang | 397deb7 | 2013-08-22 11:33:16 -0700 | [diff] [blame] | 4605 | |
| 4606 | #ifdef FEATURE_WLAN_LPHB |
| 4607 | typedef enum |
| 4608 | { |
| 4609 | WIFI_HB_SET_ENABLE = 0x0001, |
| 4610 | WIFI_HB_SET_TCP_PARAMS = 0x0002, |
| 4611 | WIFI_HB_SET_TCP_PKT_FILTER = 0x0003, |
| 4612 | WIFI_HB_SET_UDP_PARAMS = 0x0004, |
| 4613 | WIFI_HB_SET_UDP_PKT_FILTER = 0x0005, |
| 4614 | WIFI_HB_SET_NETWORK_INFO = 0x0006, |
| 4615 | }tLowPowerHeartBeatCmdType ; |
| 4616 | |
| 4617 | #define MAX_FLITER_SIZE 64 |
| 4618 | /*--------------------------------------------------------------------------- |
| 4619 | *FEATURE_WLAN_LPHB REQ |
| 4620 | *--------------------------------------------------------------------------*/ |
| 4621 | typedef PACKED_PRE struct PACKED_POST |
| 4622 | { |
| 4623 | uint32 hostIpv4Addr; |
| 4624 | uint32 destIpv4Addr; |
| 4625 | uint16 hostPort; |
| 4626 | uint16 destPort; |
| 4627 | uint16 timeOutSec; // in seconds |
| 4628 | tSirMacAddr gatewayMacAddr; |
Leo Chang | d9df8aa | 2013-09-26 13:32:26 -0700 | [diff] [blame] | 4629 | uint16 timePeriodSec; // in seconds |
| 4630 | uint32 tcpSn; |
Leo Chang | 397deb7 | 2013-08-22 11:33:16 -0700 | [diff] [blame] | 4631 | } tlowPowerHeartBeatParamsTcpStruct; |
| 4632 | |
| 4633 | typedef PACKED_PRE struct PACKED_POST |
| 4634 | { |
| 4635 | uint32 hostIpv4Addr; |
| 4636 | uint32 destIpv4Addr; |
| 4637 | uint16 hostPort; |
| 4638 | uint16 destPort; |
| 4639 | uint16 timePeriodSec;// in seconds |
| 4640 | uint16 timeOutSec; // in seconds |
| 4641 | tSirMacAddr gatewayMacAddr; |
| 4642 | } tlowPowerHeartBeatParamsUdpStruct; |
| 4643 | |
| 4644 | typedef PACKED_PRE struct PACKED_POST |
| 4645 | { |
| 4646 | uint32 offset; |
| 4647 | uint32 filterLength; |
| 4648 | uint8 filter[MAX_FLITER_SIZE]; |
| 4649 | } tlowPowerHeartBeatFilterStruct; |
| 4650 | |
| 4651 | typedef PACKED_PRE struct PACKED_POST |
| 4652 | { |
| 4653 | uint8 heartBeatEnable; |
| 4654 | uint8 heartBeatType; //TCP or UDP |
| 4655 | } tlowPowerHeartBeatEnableStruct; |
| 4656 | |
| 4657 | typedef PACKED_PRE struct PACKED_POST |
| 4658 | { |
| 4659 | uint8 dummy; |
| 4660 | } tlowPowerHeartBeatNetworkInfoStruct; |
| 4661 | |
| 4662 | |
| 4663 | typedef PACKED_PRE struct PACKED_POST |
| 4664 | { |
| 4665 | uint8 sessionIdx; |
| 4666 | uint16 lowPowerHeartBeatCmdType; |
| 4667 | PACKED_PRE union PACKED_PRO |
| 4668 | { |
| 4669 | tlowPowerHeartBeatEnableStruct control; |
| 4670 | tlowPowerHeartBeatFilterStruct tcpUdpFilter; |
| 4671 | tlowPowerHeartBeatParamsTcpStruct tcpParams; |
| 4672 | tlowPowerHeartBeatParamsUdpStruct udpParams; |
| 4673 | tlowPowerHeartBeatNetworkInfoStruct info; |
| 4674 | }options; |
| 4675 | } tHalLowPowerHeartBeatReq, *tpHalLowPowerHeartBeatReq; |
| 4676 | |
| 4677 | |
| 4678 | typedef PACKED_PRE struct PACKED_POST |
| 4679 | { |
| 4680 | tHalMsgHeader header; |
| 4681 | tHalLowPowerHeartBeatReq lowPowerHeartBeatParams; |
| 4682 | } tHalLowPowerHeartBeatReqMsg, *tpHalLowPowerHeartBeatReqMsg; |
| 4683 | |
| 4684 | /*--------------------------------------------------------------------------- |
| 4685 | * FEATURE_WLAN_LPHB RSP |
| 4686 | *--------------------------------------------------------------------------*/ |
| 4687 | |
| 4688 | typedef PACKED_PRE struct PACKED_POST |
| 4689 | { |
| 4690 | /* success or failure */ |
| 4691 | uint8 sessionIdx; |
| 4692 | uint32 status; |
| 4693 | uint16 lowPowerHeartBeatCmdType; |
| 4694 | }tHalLowPowerHeartBeatRspParams, *tpHalLowPowerHeartBeatRspParams; |
| 4695 | |
| 4696 | typedef PACKED_PRE struct PACKED_POST |
| 4697 | { |
| 4698 | tHalMsgHeader header; |
| 4699 | tHalLowPowerHeartBeatRspParams lowPowerHeartBeatRspParams; |
| 4700 | }tHalLowPowerHeartBeatRspMsg, *tpHalLowPowerHeartBeatRspMsg; |
| 4701 | |
| 4702 | |
| 4703 | /*--------------------------------------------------------------------------- |
| 4704 | * FEATURE_WLAN_LPHB IND |
| 4705 | *--------------------------------------------------------------------------*/ |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 4706 | #define WIFI_HB_EVENT_TCP_RX_TIMEOUT 0x0001 |
| 4707 | #define WIFI_HB_EVENT_UDP_RX_TIMEOUT 0x0002 |
| 4708 | |
| 4709 | #define WIFI_LPHB_EVENT_REASON_TIMEOUT 0x01 |
| 4710 | #define WIFI_LPHB_EVENT_REASON_FW_ON_MONITOR 0x02 |
Leo Chang | d9df8aa | 2013-09-26 13:32:26 -0700 | [diff] [blame] | 4711 | #define WIFI_LPHB_EVENT_REASON_FW_OFF_MONITOR 0x03 |
Leo Chang | 397deb7 | 2013-08-22 11:33:16 -0700 | [diff] [blame] | 4712 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 4713 | |
| 4714 | #define WIFI_LPHB_PROTO_UDP 0x01 |
| 4715 | #define WIFI_LPHB_PROTO_TCP 0x02 |
| 4716 | |
Leo Chang | 397deb7 | 2013-08-22 11:33:16 -0700 | [diff] [blame] | 4717 | typedef PACKED_PRE struct PACKED_POST |
| 4718 | { |
| 4719 | uint8 bssIdx; |
| 4720 | uint8 sessionIdx; |
| 4721 | uint8 protocolType; /*TCP or UDP*/ |
| 4722 | uint8 eventReason; |
| 4723 | |
| 4724 | }tHalLowPowerHeartBeatIndParam,*tpHalLowPowerHeartBeatIndParam; |
| 4725 | |
| 4726 | typedef PACKED_PRE struct PACKED_POST |
| 4727 | { |
| 4728 | tHalMsgHeader header; |
| 4729 | tHalLowPowerHeartBeatIndParam lowPowerHeartBeatIndParams; |
| 4730 | }tHalLowPowerHeartBeatIndMsg, *tpHalLowPowerHeartBeatIndMsg; |
| 4731 | |
| 4732 | #endif |
krunal soni | 2a4728d | 2013-09-20 21:56:50 -0700 | [diff] [blame] | 4733 | |
| 4734 | #ifdef FEATURE_WLAN_BATCH_SCAN |
| 4735 | |
| 4736 | /*--------------------------------------------------------------------------- |
| 4737 | * WLAN_HAL_BATCHSCAN_SET_REQ |
| 4738 | *--------------------------------------------------------------------------*/ |
| 4739 | typedef PACKED_PRE struct PACKED_POST |
| 4740 | { |
| 4741 | /* Scan Frerquency - default to 30Sec*/ |
| 4742 | tANI_U32 scanInterval; |
| 4743 | tANI_U32 numScan2Batch; |
| 4744 | tANI_U32 bestNetworks; |
| 4745 | tANI_U8 rfBand; |
| 4746 | tANI_U8 rtt; |
| 4747 | } tHalBatchScanSetParams, *tpHalBatchScanSetParams; |
| 4748 | |
| 4749 | typedef PACKED_PRE struct PACKED_POST |
| 4750 | { |
| 4751 | tHalMsgHeader header; |
| 4752 | tHalBatchScanSetParams batchScanParams; |
| 4753 | } tHalBatchScanSetReqMsg, *tpHalBatchScanSetReqMsg; |
| 4754 | |
| 4755 | /*--------------------------------------------------------------------------- |
| 4756 | * WLAN_HAL_BATCHSCAN_SET_RSP |
| 4757 | *--------------------------------------------------------------------------*/ |
| 4758 | typedef PACKED_PRE struct PACKED_POST |
| 4759 | { |
| 4760 | tANI_U32 supportedMscan; |
| 4761 | } tHalBatchScanSetRspParam, *tpHalBatchScanSetRspParam; |
| 4762 | |
| 4763 | typedef PACKED_PRE struct PACKED_POST |
| 4764 | { |
| 4765 | tHalMsgHeader header; |
| 4766 | tHalBatchScanSetRspParam setBatchScanRspParam; |
| 4767 | } tHalBatchScanSetRspMsg, *tpHalBatchScanSetRspMsg; |
| 4768 | |
| 4769 | /*--------------------------------------------------------------------------- |
| 4770 | * WLAN_HAL_BATCHSCAN_STOP_IND |
| 4771 | *--------------------------------------------------------------------------*/ |
| 4772 | typedef PACKED_PRE struct PACKED_POST |
| 4773 | { |
| 4774 | tANI_U32 param; |
| 4775 | } tHalBatchScanStopIndParam, *tpHalBatchScanStopIndParam; |
| 4776 | |
| 4777 | typedef PACKED_PRE struct PACKED_POST |
| 4778 | { |
| 4779 | tHalMsgHeader header; |
| 4780 | tHalBatchScanStopIndParam param; |
| 4781 | } tHalBatchScanStopIndMsg, *tpHalBatchScanStopIndMsg; |
| 4782 | |
| 4783 | /*--------------------------------------------------------------------------- |
| 4784 | * WLAN_HAL_BATCHSCAN_TRIGGER_RESULT_IND |
| 4785 | *--------------------------------------------------------------------------*/ |
| 4786 | typedef PACKED_PRE struct PACKED_POST |
| 4787 | { |
| 4788 | tANI_U32 param; |
| 4789 | } tHalBatchScanTriggerResultParam, *tpHalBatchScanTriggerResultParam; |
| 4790 | |
| 4791 | typedef PACKED_PRE struct PACKED_POST |
| 4792 | { |
| 4793 | tHalMsgHeader header; |
| 4794 | tHalBatchScanTriggerResultParam param; |
| 4795 | } tHalBatchScanTriggerResultIndMsg, *tpHalBatchScanTriggerResultIndMsg; |
| 4796 | |
| 4797 | /*--------------------------------------------------------------------------- |
| 4798 | * WLAN_HAL_BATCHSCAN_GET_RSP |
| 4799 | *--------------------------------------------------------------------------*/ |
| 4800 | typedef PACKED_PRE struct PACKED_POST |
| 4801 | { |
| 4802 | tANI_U8 bssid[6]; /* BSSID */ |
Rajeev Kumar | 1f7759a | 2014-01-23 15:21:47 -0800 | [diff] [blame] | 4803 | tANI_U8 ssid[33]; /* SSID */ |
krunal soni | 2a4728d | 2013-09-20 21:56:50 -0700 | [diff] [blame] | 4804 | tANI_U8 ch; /* Channel */ |
c_hpothu | 97cd526 | 2014-05-22 18:00:28 +0530 | [diff] [blame] | 4805 | tANI_S8 rssi; /* RSSI or Level */ |
krunal soni | 2a4728d | 2013-09-20 21:56:50 -0700 | [diff] [blame] | 4806 | /* Timestamp when Network was found. Used to calculate age based on timestamp in GET_RSP msg header */ |
| 4807 | tANI_U32 timestamp; |
| 4808 | } tHalBatchScanNetworkInfo, *tpHalBatchScanNetworkInfo; |
| 4809 | |
| 4810 | typedef PACKED_PRE struct PACKED_POST |
| 4811 | { |
| 4812 | tANI_U32 scanId; /* Scan List ID. */ |
| 4813 | /* No of AP in a Scan Result. Should be same as bestNetwork in SET_REQ msg */ |
| 4814 | tANI_U32 numNetworksInScanList; |
| 4815 | /* Variable data ptr: Number of AP in Scan List */ |
| 4816 | /* following numNetworkInScanList is data of type tHalBatchScanNetworkInfo |
| 4817 | * of sizeof(tHalBatchScanNetworkInfo) * numNetworkInScanList */ |
| 4818 | tANI_U8 scanList[1]; |
| 4819 | } tHalBatchScanList, *tpHalBatchScanList; |
| 4820 | |
| 4821 | typedef PACKED_PRE struct PACKED_POST |
| 4822 | { |
| 4823 | tANI_U32 timestamp; |
| 4824 | tANI_U32 numScanLists; |
| 4825 | boolean isLastResult; |
| 4826 | /* Variable Data ptr: Number of Scan Lists*/ |
| 4827 | /* following isLastResult is data of type tHalBatchScanList |
| 4828 | * of sizeof(tHalBatchScanList) * numScanLists*/ |
| 4829 | tANI_U8 scanResults[1]; |
| 4830 | } tHalBatchScanResultIndParam, *tpHalBatchScanResultIndParam; |
| 4831 | |
| 4832 | typedef PACKED_PRE struct PACKED_POST |
| 4833 | { |
| 4834 | tHalMsgHeader header; |
| 4835 | tHalBatchScanResultIndParam resultIndMsgParam; |
| 4836 | } tHalBatchScanResultIndMsg, *tpHalBatchScanResultIndMsg; |
| 4837 | |
| 4838 | #endif |
| 4839 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4840 | /*--------------------------------------------------------------------------- |
| 4841 | * WLAN_HAL_KEEP_ALIVE_REQ |
| 4842 | *--------------------------------------------------------------------------*/ |
| 4843 | /* Packet Types. */ |
| 4844 | #define HAL_KEEP_ALIVE_NULL_PKT 1 |
| 4845 | #define HAL_KEEP_ALIVE_UNSOLICIT_ARP_RSP 2 |
| 4846 | |
| 4847 | /* Enable or disable keep alive */ |
| 4848 | #define HAL_KEEP_ALIVE_DISABLE 0 |
| 4849 | #define HAL_KEEP_ALIVE_ENABLE 1 |
| 4850 | |
| 4851 | /* Keep Alive request. */ |
| 4852 | typedef PACKED_PRE struct PACKED_POST |
| 4853 | { |
| 4854 | tANI_U8 packetType; |
| 4855 | tANI_U32 timePeriod; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4856 | tHalIpv4Addr hostIpv4Addr; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4857 | tHalIpv4Addr destIpv4Addr; |
| 4858 | tSirMacAddr destMacAddr; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 4859 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4860 | } tHalKeepAliveReq, *tpHalKeepAliveReq; |
| 4861 | |
| 4862 | typedef PACKED_PRE struct PACKED_POST |
| 4863 | { |
| 4864 | tHalMsgHeader header; |
| 4865 | tHalKeepAliveReq KeepAliveParams; |
| 4866 | } tHalKeepAliveReqMsg, *tpHalKeepAliveReqMsg; |
| 4867 | |
| 4868 | /*--------------------------------------------------------------------------- |
| 4869 | * WLAN_HAL_SET_RSSI_THRESH_REQ |
| 4870 | *--------------------------------------------------------------------------*/ |
| 4871 | typedef PACKED_PRE struct PACKED_POST |
| 4872 | { |
| 4873 | tANI_S8 ucRssiThreshold1 : 8; |
| 4874 | tANI_S8 ucRssiThreshold2 : 8; |
| 4875 | tANI_S8 ucRssiThreshold3 : 8; |
| 4876 | tANI_U8 bRssiThres1PosNotify : 1; |
| 4877 | tANI_U8 bRssiThres1NegNotify : 1; |
| 4878 | tANI_U8 bRssiThres2PosNotify : 1; |
| 4879 | tANI_U8 bRssiThres2NegNotify : 1; |
| 4880 | tANI_U8 bRssiThres3PosNotify : 1; |
| 4881 | tANI_U8 bRssiThres3NegNotify : 1; |
| 4882 | tANI_U8 bReserved10 : 2; |
| 4883 | } tHalRSSIThresholds, *tpHalRSSIThresholds; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4884 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4885 | typedef PACKED_PRE struct PACKED_POST |
| 4886 | { |
| 4887 | tHalMsgHeader header; |
| 4888 | tHalRSSIThresholds rssiThreshParams; |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 4889 | } tHalRSSIThresholdReqMsg, *tpHalRSSIThresholdReqMsg; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4890 | |
| 4891 | /*--------------------------------------------------------------------------- |
| 4892 | * WLAN_HAL_ENTER_UAPSD_REQ |
| 4893 | *--------------------------------------------------------------------------*/ |
| 4894 | typedef PACKED_PRE struct PACKED_POST |
| 4895 | { |
| 4896 | tANI_U8 bkDeliveryEnabled:1; |
| 4897 | tANI_U8 beDeliveryEnabled:1; |
| 4898 | tANI_U8 viDeliveryEnabled:1; |
| 4899 | tANI_U8 voDeliveryEnabled:1; |
| 4900 | tANI_U8 bkTriggerEnabled:1; |
| 4901 | tANI_U8 beTriggerEnabled:1; |
| 4902 | tANI_U8 viTriggerEnabled:1; |
| 4903 | tANI_U8 voTriggerEnabled:1; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 4904 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4905 | } tUapsdReqParams, *tpUapsdReqParams; |
| 4906 | |
| 4907 | typedef PACKED_PRE struct PACKED_POST |
| 4908 | { |
| 4909 | tHalMsgHeader header; |
| 4910 | tUapsdReqParams enterUapsdParams; |
| 4911 | } tHalEnterUapsdReqMsg, *tpHalEnterUapsdReqMsg; |
| 4912 | |
| 4913 | /*--------------------------------------------------------------------------- |
| 4914 | * WLAN_HAL_EXIT_UAPSD_REQ |
| 4915 | *--------------------------------------------------------------------------*/ |
| 4916 | typedef PACKED_PRE struct PACKED_POST |
| 4917 | { |
| 4918 | tHalMsgHeader header; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 4919 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4920 | } tHalExitUapsdReqMsg, *tpHalExitUapsdReqMsg; |
| 4921 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 4922 | #define HAL_PERIODIC_TX_PTRN_MAX_SIZE 1536 |
| 4923 | #define HAL_MAXNUM_PERIODIC_TX_PTRNS 6 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4924 | /*--------------------------------------------------------------------------- |
Yue Ma | ab3ccfc | 2013-08-14 17:19:08 -0700 | [diff] [blame] | 4925 | * WLAN_HAL_ADD_PERIODIC_TX_PTRN_IND |
| 4926 | *--------------------------------------------------------------------------*/ |
| 4927 | typedef PACKED_PRE struct PACKED_POST |
| 4928 | { |
| 4929 | tANI_U32 selfStaIdx:8; |
| 4930 | tANI_U32 ucPtrnId:8; // Pattern ID |
| 4931 | tANI_U32 usPtrnSize:16; // Non-Zero Pattern size |
| 4932 | tANI_U32 uPtrnIntervalMs; // In msec |
| 4933 | tANI_U8 ucPattern[HAL_PERIODIC_TX_PTRN_MAX_SIZE]; // Pattern buffer |
| 4934 | } tHalAddPeriodicTxPtrn, *tpHalAddPeriodicTxPtrn; |
| 4935 | |
| 4936 | typedef PACKED_PRE struct PACKED_POST |
| 4937 | { |
| 4938 | tHalMsgHeader header; |
| 4939 | tHalAddPeriodicTxPtrn ptrnParams; |
| 4940 | } tHalAddPeriodicTxPtrnIndMsg, *tpHalAddPeriodicTxPtrnIndMsg; |
| 4941 | |
| 4942 | /*--------------------------------------------------------------------------- |
| 4943 | * WLAN_HAL_DEL_PERIODIC_TX_PTRN_IND |
| 4944 | *--------------------------------------------------------------------------*/ |
| 4945 | typedef PACKED_PRE struct PACKED_POST |
| 4946 | { |
| 4947 | tANI_U32 selfStaIdx:8; |
| 4948 | tANI_U32 rsvd:24; |
| 4949 | /* Bitmap of pattern IDs that needs to be deleted */ |
| 4950 | tANI_U32 uPatternIdBitmap; |
| 4951 | } tHalDelPeriodicTxPtrn, *tpHalDelPeriodicTxPtrn; |
| 4952 | |
| 4953 | typedef PACKED_PRE struct PACKED_POST |
| 4954 | { |
| 4955 | tHalMsgHeader header; |
| 4956 | tHalDelPeriodicTxPtrn ptrnParams; |
| 4957 | } tHalDelPeriodicTxPtrnIndMsg, *tpHalDelPeriodicTxPtrnIndMsg; |
| 4958 | |
| 4959 | /*--------------------------------------------------------------------------- |
| 4960 | * WLAN_HAL_PERIODIC_TX_PTRN_FW_IND |
| 4961 | *--------------------------------------------------------------------------*/ |
| 4962 | typedef PACKED_PRE struct PACKED_POST |
| 4963 | { |
| 4964 | /* Type of Failure indication */ |
| 4965 | tANI_U32 bssIdx:8; |
| 4966 | tANI_U32 selfStaIdx:8; |
| 4967 | tANI_U32 rsvd:16; |
| 4968 | tANI_U32 status; |
| 4969 | tANI_U32 patternIdBitmap; |
| 4970 | } tHalPeriodicTxPtrnFwInd, *tpHalPeriodicTxPtrnFwInd; |
| 4971 | |
| 4972 | typedef PACKED_PRE struct PACKED_POST |
| 4973 | { |
| 4974 | tHalMsgHeader header; |
| 4975 | tHalPeriodicTxPtrnFwInd fwIndParams; |
| 4976 | } tHalPeriodicTxPtrnFwIndMsg, *tpHalPeriodicTxPtrnFwIndMsg; |
| 4977 | |
| 4978 | /*--------------------------------------------------------------------------- |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4979 | * WLAN_HAL_ADD_WOWL_BCAST_PTRN |
| 4980 | *--------------------------------------------------------------------------*/ |
| 4981 | #define HAL_WOWL_BCAST_PATTERN_MAX_SIZE 128 |
| 4982 | #define HAL_WOWL_BCAST_MAX_NUM_PATTERNS 16 |
| 4983 | |
| 4984 | typedef PACKED_PRE struct PACKED_POST |
| 4985 | { |
| 4986 | tANI_U8 ucPatternId; // Pattern ID |
| 4987 | // Pattern byte offset from beginning of the 802.11 packet to start of the |
| 4988 | // wake-up pattern |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 4989 | tANI_U8 ucPatternByteOffset; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4990 | tANI_U8 ucPatternSize; // Non-Zero Pattern size |
| 4991 | tANI_U8 ucPattern[HAL_WOWL_BCAST_PATTERN_MAX_SIZE]; // Pattern |
| 4992 | tANI_U8 ucPatternMaskSize; // Non-zero pattern mask size |
| 4993 | tANI_U8 ucPatternMask[HAL_WOWL_BCAST_PATTERN_MAX_SIZE]; // Pattern mask |
| 4994 | tANI_U8 ucPatternExt[HAL_WOWL_BCAST_PATTERN_MAX_SIZE]; // Extra pattern |
| 4995 | tANI_U8 ucPatternMaskExt[HAL_WOWL_BCAST_PATTERN_MAX_SIZE]; // Extra pattern mask |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 4996 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 4997 | } tHalWowlAddBcastPtrn, *tpHalWowlAddBcastPtrn; |
| 4998 | |
| 4999 | typedef PACKED_PRE struct PACKED_POST |
| 5000 | { |
| 5001 | tHalMsgHeader header; |
| 5002 | tHalWowlAddBcastPtrn ptrnParams; |
| 5003 | } tHalWowlAddBcastPtrnReqMsg, *tpHalWowlAddBcastPtrnReqMsg; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5004 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5005 | |
| 5006 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5007 | /*--------------------------------------------------------------------------- |
| 5008 | * WLAN_HAL_DEL_WOWL_BCAST_PTRN |
| 5009 | *--------------------------------------------------------------------------*/ |
| 5010 | typedef PACKED_PRE struct PACKED_POST |
| 5011 | { |
| 5012 | /* Pattern ID of the wakeup pattern to be deleted */ |
| 5013 | tANI_U8 ucPatternId; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5014 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5015 | } tHalWowlDelBcastPtrn, *tpHalWowlDelBcastPtrn; |
| 5016 | |
| 5017 | typedef PACKED_PRE struct PACKED_POST |
| 5018 | { |
| 5019 | tHalMsgHeader header; |
| 5020 | tHalWowlDelBcastPtrn ptrnParams; |
| 5021 | } tHalWowlDelBcastPtrnReqMsg, *tpHalWowlDelBcastPtrnReqMsg; |
| 5022 | |
| 5023 | /*--------------------------------------------------------------------------- |
| 5024 | * WLAN_HAL_ENTER_WOWL_REQ |
| 5025 | *--------------------------------------------------------------------------*/ |
| 5026 | typedef PACKED_PRE struct PACKED_POST |
| 5027 | { |
| 5028 | /* Enables/disables magic packet filtering */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5029 | tANI_U8 ucMagicPktEnable; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5030 | |
| 5031 | /* Magic pattern */ |
| 5032 | tSirMacAddr magicPtrn; |
| 5033 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5034 | /* Enables/disables packet pattern filtering in firmware. |
| 5035 | Enabling this flag enables broadcast pattern matching |
| 5036 | in Firmware. If unicast pattern matching is also desired, |
| 5037 | ucUcastPatternFilteringEnable flag must be set tot true |
| 5038 | as well |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5039 | */ |
| 5040 | tANI_U8 ucPatternFilteringEnable; |
| 5041 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5042 | /* Enables/disables unicast packet pattern filtering. |
| 5043 | This flag specifies whether we want to do pattern match |
| 5044 | on unicast packets as well and not just broadcast packets. |
| 5045 | This flag has no effect if the ucPatternFilteringEnable |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5046 | (main controlling flag) is set to false |
| 5047 | */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5048 | tANI_U8 ucUcastPatternFilteringEnable; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5049 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5050 | /* This configuration is valid only when magicPktEnable=1. |
| 5051 | * It requests hardware to wake up when it receives the |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5052 | * Channel Switch Action Frame. |
| 5053 | */ |
| 5054 | tANI_U8 ucWowChnlSwitchRcv; |
| 5055 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5056 | /* This configuration is valid only when magicPktEnable=1. |
| 5057 | * It requests hardware to wake up when it receives the |
| 5058 | * Deauthentication Frame. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5059 | */ |
| 5060 | tANI_U8 ucWowDeauthRcv; |
| 5061 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5062 | /* This configuration is valid only when magicPktEnable=1. |
| 5063 | * It requests hardware to wake up when it receives the |
| 5064 | * Disassociation Frame. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5065 | */ |
| 5066 | tANI_U8 ucWowDisassocRcv; |
| 5067 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5068 | /* This configuration is valid only when magicPktEnable=1. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5069 | * It requests hardware to wake up when it has missed |
| 5070 | * consecutive beacons. This is a hardware register |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5071 | * configuration (NOT a firmware configuration). |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5072 | */ |
| 5073 | tANI_U8 ucWowMaxMissedBeacons; |
| 5074 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5075 | /* This configuration is valid only when magicPktEnable=1. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5076 | * This is a timeout value in units of microsec. It requests |
| 5077 | * hardware to unconditionally wake up after it has stayed |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5078 | * in WoWLAN mode for some time. Set 0 to disable this feature. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5079 | */ |
| 5080 | tANI_U8 ucWowMaxSleepUsec; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5081 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5082 | /* This configuration directs the WoW packet filtering to look for EAP-ID |
| 5083 | * requests embedded in EAPOL frames and use this as a wake source. |
| 5084 | */ |
| 5085 | tANI_U8 ucWoWEAPIDRequestEnable; |
| 5086 | |
| 5087 | /* This configuration directs the WoW packet filtering to look for EAPOL-4WAY |
| 5088 | * requests and use this as a wake source. |
| 5089 | */ |
| 5090 | tANI_U8 ucWoWEAPOL4WayEnable; |
| 5091 | |
| 5092 | /* This configuration allows a host wakeup on an network scan offload match. |
| 5093 | */ |
| 5094 | tANI_U8 ucWowNetScanOffloadMatch; |
| 5095 | |
| 5096 | /* This configuration allows a host wakeup on any GTK rekeying error. |
| 5097 | */ |
| 5098 | tANI_U8 ucWowGTKRekeyError; |
| 5099 | |
| 5100 | /* This configuration allows a host wakeup on BSS connection loss. |
| 5101 | */ |
| 5102 | tANI_U8 ucWoWBSSConnLoss; |
| 5103 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5104 | tANI_U8 bssIdx; |
| 5105 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5106 | } tHalWowlEnterParams, *tpHalWowlEnterParams; |
| 5107 | |
| 5108 | typedef PACKED_PRE struct PACKED_POST |
| 5109 | { |
| 5110 | tHalMsgHeader header; |
| 5111 | tHalWowlEnterParams enterWowlParams; |
| 5112 | } tHalWowlEnterReqMsg, *tpHalWowlEnterReqMsg; |
| 5113 | |
| 5114 | /*--------------------------------------------------------------------------- |
| 5115 | * WLAN_HAL_EXIT_WOWL_REQ |
| 5116 | *--------------------------------------------------------------------------*/ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5117 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5118 | typedef PACKED_PRE struct PACKED_POST |
| 5119 | { |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5120 | tANI_U8 bssIdx; |
| 5121 | |
| 5122 | } tHalWowlExitParams, *tpHalWowlExitParams; |
| 5123 | |
| 5124 | typedef PACKED_PRE struct PACKED_POST |
| 5125 | { |
| 5126 | tHalMsgHeader header; |
| 5127 | tHalWowlExitParams exitWowlParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5128 | } tHalWowlExitReqMsg, *tpHalWowlExitReqMsg; |
| 5129 | |
| 5130 | /*--------------------------------------------------------------------------- |
| 5131 | * WLAN_HAL_GET_RSSI_REQ |
| 5132 | *--------------------------------------------------------------------------*/ |
| 5133 | typedef PACKED_PRE struct PACKED_POST |
| 5134 | { |
| 5135 | tHalMsgHeader header; |
| 5136 | } tHalGetRssiReqMsg, *tpHalGetRssiReqMsg; |
| 5137 | |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 5138 | typedef PACKED_PRE struct PACKED_POST |
| 5139 | { |
| 5140 | /* Valid STA Idx for per STA stats request */ |
| 5141 | tANI_U32 staId; |
| 5142 | |
| 5143 | }tHalRoamRssiReqParams, *tpHalRoamRssiReqParams; |
| 5144 | |
| 5145 | |
| 5146 | /*--------------------------------------------------------------------------- |
| 5147 | * WLAN_HAL_GET_ROAM_RSSI_REQ |
| 5148 | *--------------------------------------------------------------------------*/ |
| 5149 | typedef PACKED_PRE struct PACKED_POST |
| 5150 | { |
| 5151 | tHalMsgHeader header; |
| 5152 | tHalRoamRssiReqParams roamRssiReqParams; |
| 5153 | } tHalGetRoamRssiReqMsg, *tpHalGetRoamRssiReqMsg; |
| 5154 | |
| 5155 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5156 | /*--------------------------------------------------------------------------- |
| 5157 | * WLAN_HAL_SET_UAPSD_AC_PARAMS_REQ |
| 5158 | *--------------------------------------------------------------------------*/ |
| 5159 | typedef PACKED_PRE struct PACKED_POST { |
| 5160 | tANI_U8 staidx; // STA index |
| 5161 | tANI_U8 ac; // Access Category |
| 5162 | tANI_U8 up; // User Priority |
| 5163 | tANI_U32 srvInterval; // Service Interval |
| 5164 | tANI_U32 susInterval; // Suspend Interval |
| 5165 | tANI_U32 delayInterval; // Delay Interval |
| 5166 | } tUapsdInfo, tpUapsdInfo; |
| 5167 | |
| 5168 | typedef PACKED_PRE struct PACKED_POST |
| 5169 | { |
| 5170 | tHalMsgHeader header; |
| 5171 | tUapsdInfo enableUapsdAcParams; |
| 5172 | } tHalSetUapsdAcParamsReqMsg, *tpHalSetUapsdAcParamsReqMsg; |
| 5173 | |
| 5174 | /*--------------------------------------------------------------------------- |
| 5175 | * WLAN_HAL_CONFIGURE_RXP_FILTER_REQ |
| 5176 | *--------------------------------------------------------------------------*/ |
| 5177 | typedef PACKED_PRE struct PACKED_POST { |
| 5178 | tANI_U8 setMcstBcstFilterSetting; |
| 5179 | tANI_U8 setMcstBcstFilter; |
| 5180 | } tHalConfigureRxpFilterReqParams, tpHalConfigureRxpFilterReqParams; |
| 5181 | |
| 5182 | typedef PACKED_PRE struct PACKED_POST |
| 5183 | { |
| 5184 | tHalMsgHeader header; |
| 5185 | tHalConfigureRxpFilterReqParams configureRxpFilterReqParams; |
| 5186 | } tHalConfigureRxpFilterReqMsg, *tpHalConfigureRxpFilterReqMsg; |
| 5187 | |
| 5188 | /*--------------------------------------------------------------------------- |
| 5189 | * WLAN_HAL_ENTER_IMPS_RSP |
| 5190 | *--------------------------------------------------------------------------*/ |
| 5191 | typedef PACKED_PRE struct PACKED_POST |
| 5192 | { |
| 5193 | /* success or failure */ |
| 5194 | tANI_U32 status; |
| 5195 | } tHalEnterImpsRspParams, *tpHalEnterImpsRspParams; |
| 5196 | |
| 5197 | typedef PACKED_PRE struct PACKED_POST |
| 5198 | { |
| 5199 | tHalMsgHeader header; |
| 5200 | tHalEnterImpsRspParams enterImpsRspParams; |
| 5201 | } tHalEnterImpsRspMsg, *tpHalEnterImpsRspMsg; |
| 5202 | |
| 5203 | /*--------------------------------------------------------------------------- |
| 5204 | * WLAN_HAL_EXIT_IMPS_RSP |
| 5205 | *--------------------------------------------------------------------------*/ |
| 5206 | typedef PACKED_PRE struct PACKED_POST |
| 5207 | { |
| 5208 | /* success or failure */ |
| 5209 | tANI_U32 status; |
| 5210 | } tHalExitImpsRspParams, *tpHalExitImpsRspParams; |
| 5211 | |
| 5212 | typedef PACKED_PRE struct PACKED_POST |
| 5213 | { |
| 5214 | tHalMsgHeader header; |
| 5215 | tHalExitImpsRspParams exitImpsRspParams; |
| 5216 | } tHalExitImpsRspMsg, *tpHalExitImpsRspMsg; |
| 5217 | |
| 5218 | /*--------------------------------------------------------------------------- |
| 5219 | * WLAN_HAL_ENTER_BMPS_RSP |
| 5220 | *--------------------------------------------------------------------------*/ |
| 5221 | typedef PACKED_PRE struct PACKED_POST |
| 5222 | { |
| 5223 | /* success or failure */ |
| 5224 | tANI_U32 status; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5225 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5226 | } tHalEnterBmpsRspParams, *tpHalEnterBmpsRspParams; |
| 5227 | |
| 5228 | typedef PACKED_PRE struct PACKED_POST |
| 5229 | { |
| 5230 | tHalMsgHeader header; |
| 5231 | tHalEnterBmpsRspParams enterBmpsRspParams; |
| 5232 | } tHalEnterBmpsRspMsg, *tpHalEnterBmpsRspMsg; |
| 5233 | |
| 5234 | /*--------------------------------------------------------------------------- |
| 5235 | * WLAN_HAL_EXIT_BMPS_RSP |
| 5236 | *--------------------------------------------------------------------------*/ |
| 5237 | typedef PACKED_PRE struct PACKED_POST |
| 5238 | { |
| 5239 | /* success or failure */ |
| 5240 | tANI_U32 status; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5241 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5242 | } tHalExitBmpsRspParams, *tpHalExitBmpsRspParams; |
| 5243 | |
| 5244 | typedef PACKED_PRE struct PACKED_POST |
| 5245 | { |
| 5246 | tHalMsgHeader header; |
| 5247 | tHalExitBmpsRspParams exitBmpsRspParams; |
| 5248 | } tHalExitBmpsRspMsg, *tpHalExitBmpsRspMsg; |
| 5249 | |
| 5250 | /*--------------------------------------------------------------------------- |
| 5251 | * WLAN_HAL_ENTER_UAPSD_RSP |
| 5252 | *--------------------------------------------------------------------------*/ |
| 5253 | typedef PACKED_PRE struct PACKED_POST |
| 5254 | { |
| 5255 | /* success or failure */ |
| 5256 | tANI_U32 status; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5257 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5258 | }tUapsdRspParams, *tpUapsdRspParams; |
| 5259 | |
| 5260 | typedef PACKED_PRE struct PACKED_POST |
| 5261 | { |
| 5262 | tHalMsgHeader header; |
| 5263 | tUapsdRspParams enterUapsdRspParams; |
| 5264 | } tHalEnterUapsdRspMsg, *tpHalEnterUapsdRspMsg; |
| 5265 | |
| 5266 | /*--------------------------------------------------------------------------- |
| 5267 | * WLAN_HAL_EXIT_UAPSD_RSP |
| 5268 | *--------------------------------------------------------------------------*/ |
| 5269 | typedef PACKED_PRE struct PACKED_POST |
| 5270 | { |
| 5271 | /* success or failure */ |
| 5272 | tANI_U32 status; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5273 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5274 | } tHalExitUapsdRspParams, *tpHalExitUapsdRspParams; |
| 5275 | |
| 5276 | typedef PACKED_PRE struct PACKED_POST |
| 5277 | { |
| 5278 | tHalMsgHeader header; |
| 5279 | tHalExitUapsdRspParams exitUapsdRspParams; |
| 5280 | } tHalExitUapsdRspMsg, *tpHalExitUapsdRspMsg; |
| 5281 | |
| 5282 | /*--------------------------------------------------------------------------- |
| 5283 | * WLAN_HAL_RSSI_NOTIFICATION_IND |
| 5284 | *--------------------------------------------------------------------------*/ |
| 5285 | typedef PACKED_PRE struct PACKED_POST |
| 5286 | { |
| 5287 | tANI_U32 bRssiThres1PosCross : 1; |
| 5288 | tANI_U32 bRssiThres1NegCross : 1; |
| 5289 | tANI_U32 bRssiThres2PosCross : 1; |
| 5290 | tANI_U32 bRssiThres2NegCross : 1; |
| 5291 | tANI_U32 bRssiThres3PosCross : 1; |
| 5292 | tANI_U32 bRssiThres3NegCross : 1; |
Srinivas | d359cf9 | 2012-12-12 15:12:42 -0800 | [diff] [blame] | 5293 | tANI_U32 avgRssi : 8; |
Srinivas Girigowda | 91f24ae | 2013-07-17 12:54:05 -0700 | [diff] [blame] | 5294 | tANI_U32 uBssIdx : 8; |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 5295 | tANI_U32 isBTCoexCompromise : 1; |
| 5296 | tANI_U32 bReserved : 9; |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 5297 | tANI_S8 refRssiThreshold1; |
| 5298 | tANI_S8 refRssiThreshold2; |
| 5299 | tANI_S8 refRssiThreshold3; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5300 | } tHalRSSINotification, *tpHalRSSINotification; |
| 5301 | |
| 5302 | typedef PACKED_PRE struct PACKED_POST |
| 5303 | { |
| 5304 | tHalMsgHeader header; |
| 5305 | tHalRSSINotification rssiNotificationParams; |
| 5306 | } tHalRSSINotificationIndMsg, *tpHalRSSINotificationIndMsg; |
| 5307 | |
| 5308 | /*--------------------------------------------------------------------------- |
| 5309 | * WLAN_HAL_GET_RSSI_RSP |
| 5310 | *--------------------------------------------------------------------------*/ |
| 5311 | typedef PACKED_PRE struct PACKED_POST |
| 5312 | { |
| 5313 | /* success or failure */ |
| 5314 | tANI_U32 status; |
| 5315 | tANI_S8 rssi; |
| 5316 | } tHalGetRssiParams, *tpHalGetRspParams; |
| 5317 | |
| 5318 | typedef PACKED_PRE struct PACKED_POST |
| 5319 | { |
| 5320 | tHalMsgHeader header; |
| 5321 | tHalGetRssiParams rssiRspParams; |
| 5322 | } tHalGetRssiRspMsg, *tpHalGetRssiRspMsg; |
| 5323 | |
| 5324 | /*--------------------------------------------------------------------------- |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 5325 | * WLAN_HAL_GET_ROAM_RSSI_RSP |
| 5326 | *--------------------------------------------------------------------------*/ |
| 5327 | typedef PACKED_PRE struct PACKED_POST |
| 5328 | { |
| 5329 | /* success or failure */ |
| 5330 | tANI_U32 status; |
| 5331 | |
| 5332 | tANI_U8 staId; |
| 5333 | tANI_S8 rssi; |
| 5334 | } tHalGetRoamRssiParams, *tpHalGetRoamRspParams; |
| 5335 | |
| 5336 | typedef PACKED_PRE struct PACKED_POST |
| 5337 | { |
| 5338 | tHalMsgHeader header; |
| 5339 | tHalGetRoamRssiParams roamRssiRspParams; |
| 5340 | } tHalGetRoamRssiRspMsg, *tpHalGetRoamRssiRspMsg; |
| 5341 | |
| 5342 | /*--------------------------------------------------------------------------- |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5343 | * WLAN_HAL_ENTER_WOWL_RSP |
| 5344 | *--------------------------------------------------------------------------*/ |
| 5345 | typedef PACKED_PRE struct PACKED_POST |
| 5346 | { |
| 5347 | /* success or failure */ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5348 | tANI_U32 status; |
| 5349 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5350 | } tHalEnterWowlRspParams, *tpHalEnterWowlRspParams; |
| 5351 | |
| 5352 | typedef PACKED_PRE struct PACKED_POST |
| 5353 | { |
| 5354 | tHalMsgHeader header; |
| 5355 | tHalEnterWowlRspParams enterWowlRspParams; |
| 5356 | } tHalWowlEnterRspMsg, *tpHalWowlEnterRspMsg; |
| 5357 | |
| 5358 | /*--------------------------------------------------------------------------- |
| 5359 | * WLAN_HAL_EXIT_WOWL_RSP |
| 5360 | *--------------------------------------------------------------------------*/ |
| 5361 | typedef PACKED_PRE struct PACKED_POST |
| 5362 | { |
| 5363 | /* success or failure */ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5364 | tANI_U32 status; |
| 5365 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5366 | } tHalExitWowlRspParams, *tpHalExitWowlRspParams; |
| 5367 | |
| 5368 | typedef PACKED_PRE struct PACKED_POST |
| 5369 | { |
| 5370 | tHalMsgHeader header; |
| 5371 | tHalExitWowlRspParams exitWowlRspParams; |
| 5372 | } tHalWowlExitRspMsg, *tpHalWowlExitRspMsg; |
| 5373 | |
| 5374 | /*--------------------------------------------------------------------------- |
| 5375 | * WLAN_HAL_ADD_BCN_FILTER_RSP |
| 5376 | *--------------------------------------------------------------------------*/ |
| 5377 | typedef PACKED_PRE struct PACKED_POST |
| 5378 | { |
| 5379 | /* success or failure */ |
| 5380 | tANI_U32 status; |
| 5381 | } tHalAddBcnFilterRspParams, *tpHalAddBcnFilterRspParams; |
| 5382 | |
| 5383 | typedef PACKED_PRE struct PACKED_POST |
| 5384 | { |
| 5385 | tHalMsgHeader header; |
| 5386 | tHalAddBcnFilterRspParams addBcnFilterRspParams; |
| 5387 | } tHalAddBcnFilterRspMsg, *tpHalAddBcnFilterRspMsg; |
| 5388 | |
| 5389 | /*--------------------------------------------------------------------------- |
| 5390 | * WLAN_HAL_REM_BCN_FILTER_RSP |
| 5391 | *--------------------------------------------------------------------------*/ |
| 5392 | typedef PACKED_PRE struct PACKED_POST |
| 5393 | { |
| 5394 | /* success or failure */ |
| 5395 | tANI_U32 status; |
| 5396 | } tHalRemBcnFilterRspParams, *tpHalRemBcnFilterRspParams; |
| 5397 | |
| 5398 | typedef PACKED_PRE struct PACKED_POST |
| 5399 | { |
| 5400 | tHalMsgHeader header; |
| 5401 | tHalRemBcnFilterRspParams remBcnFilterRspParams; |
| 5402 | } tHalRemBcnFilterRspMsg, *tpHalRemBcnFilterRspMsg; |
| 5403 | |
| 5404 | /*--------------------------------------------------------------------------- |
| 5405 | * WLAN_HAL_ADD_WOWL_BCAST_PTRN_RSP |
| 5406 | *--------------------------------------------------------------------------*/ |
| 5407 | typedef PACKED_PRE struct PACKED_POST |
| 5408 | { |
| 5409 | /* success or failure */ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5410 | tANI_U32 status; |
| 5411 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5412 | } tHalAddWowlBcastPtrnRspParams, *tpHalAddWowlBcastPtrnRspParams; |
| 5413 | |
| 5414 | typedef PACKED_PRE struct PACKED_POST |
| 5415 | { |
| 5416 | tHalMsgHeader header; |
| 5417 | tHalAddWowlBcastPtrnRspParams addWowlBcastPtrnRspParams; |
| 5418 | } tHalAddWowlBcastPtrnRspMsg, *tpHalAddWowlBcastPtrnRspMsg; |
| 5419 | |
| 5420 | /*--------------------------------------------------------------------------- |
| 5421 | * WLAN_HAL_DEL_WOWL_BCAST_PTRN_RSP |
| 5422 | *--------------------------------------------------------------------------*/ |
| 5423 | typedef PACKED_PRE struct PACKED_POST |
| 5424 | { |
| 5425 | /* success or failure */ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5426 | tANI_U32 status; |
| 5427 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5428 | } tHalDelWowlBcastPtrnRspParams, *tpHalDelWowlBcastPtrnRspParams; |
| 5429 | |
| 5430 | typedef PACKED_PRE struct PACKED_POST |
| 5431 | { |
| 5432 | tHalMsgHeader header; |
| 5433 | tHalDelWowlBcastPtrnRspParams delWowlBcastRspParams; |
| 5434 | } tHalDelWowlBcastPtrnRspMsg, *tpHalDelWowlBcastPtrnRspMsg; |
| 5435 | |
| 5436 | /*--------------------------------------------------------------------------- |
| 5437 | * WLAN_HAL_HOST_OFFLOAD_RSP |
| 5438 | *--------------------------------------------------------------------------*/ |
| 5439 | typedef PACKED_PRE struct PACKED_POST |
| 5440 | { |
| 5441 | /* success or failure */ |
| 5442 | tANI_U32 status; |
| 5443 | } tHalHostOffloadRspParams, *tpHalHostOffloadRspParams; |
| 5444 | |
| 5445 | typedef PACKED_PRE struct PACKED_POST |
| 5446 | { |
| 5447 | tHalMsgHeader header; |
| 5448 | tHalHostOffloadRspParams hostOffloadRspParams; |
| 5449 | } tHalHostOffloadRspMsg, *tpHalHostOffloadRspMsg; |
| 5450 | |
| 5451 | /*--------------------------------------------------------------------------- |
| 5452 | * WLAN_HAL_KEEP_ALIVE_RSP |
| 5453 | *--------------------------------------------------------------------------*/ |
| 5454 | typedef PACKED_PRE struct PACKED_POST |
| 5455 | { |
| 5456 | /* success or failure */ |
| 5457 | tANI_U32 status; |
| 5458 | } tHalKeepAliveRspParams, *tpHalKeepAliveRspParams; |
| 5459 | |
| 5460 | typedef PACKED_PRE struct PACKED_POST |
| 5461 | { |
| 5462 | tHalMsgHeader header; |
| 5463 | tHalKeepAliveRspParams keepAliveRspParams; |
| 5464 | } tHalKeepAliveRspMsg, *tpHalKeepAliveRspMsg; |
| 5465 | |
| 5466 | /*--------------------------------------------------------------------------- |
| 5467 | * WLAN_HAL_SET_RSSI_THRESH_RSP |
| 5468 | *--------------------------------------------------------------------------*/ |
| 5469 | typedef PACKED_PRE struct PACKED_POST |
| 5470 | { |
| 5471 | /* success or failure */ |
| 5472 | tANI_U32 status; |
| 5473 | } tHalSetRssiThreshRspParams, *tpHalSetRssiThreshRspParams; |
| 5474 | |
| 5475 | typedef PACKED_PRE struct PACKED_POST |
| 5476 | { |
| 5477 | tHalMsgHeader header; |
| 5478 | tHalSetRssiThreshRspParams setRssiThreshRspParams; |
| 5479 | } tHalSetRssiThreshRspMsg, *tpHalSetRssiThreshRspMsg; |
| 5480 | |
| 5481 | /*--------------------------------------------------------------------------- |
| 5482 | * WLAN_HAL_SET_UAPSD_AC_PARAMS_RSP |
| 5483 | *--------------------------------------------------------------------------*/ |
| 5484 | typedef PACKED_PRE struct PACKED_POST |
| 5485 | { |
| 5486 | /* success or failure */ |
| 5487 | tANI_U32 status; |
| 5488 | } tHalSetUapsdAcParamsRspParams, *tpHalSetUapsdAcParamsRspParams; |
| 5489 | |
| 5490 | typedef PACKED_PRE struct PACKED_POST |
| 5491 | { |
| 5492 | tHalMsgHeader header; |
| 5493 | tHalSetUapsdAcParamsRspParams setUapsdAcParamsRspParams; |
| 5494 | } tHalSetUapsdAcParamsRspMsg, *tpHalSetUapsdAcParamsRspMsg; |
| 5495 | |
| 5496 | /*--------------------------------------------------------------------------- |
| 5497 | * WLAN_HAL_CONFIGURE_RXP_FILTER_RSP |
| 5498 | *--------------------------------------------------------------------------*/ |
| 5499 | typedef PACKED_PRE struct PACKED_POST |
| 5500 | { |
| 5501 | /* success or failure */ |
| 5502 | tANI_U32 status; |
| 5503 | } tHalConfigureRxpFilterRspParams, *tpHalConfigureRxpFilterRspParams; |
| 5504 | |
| 5505 | typedef PACKED_PRE struct PACKED_POST |
| 5506 | { |
| 5507 | tHalMsgHeader header; |
| 5508 | tHalConfigureRxpFilterRspParams configureRxpFilterRspParams; |
| 5509 | } tHalConfigureRxpFilterRspMsg, *tpHalConfigureRxpFilterRspMsg; |
| 5510 | |
| 5511 | /*--------------------------------------------------------------------------- |
| 5512 | *WLAN_HAL_SET_MAX_TX_POWER_REQ |
| 5513 | *--------------------------------------------------------------------------*/ |
| 5514 | |
| 5515 | typedef PACKED_PRE struct PACKED_POST |
| 5516 | { |
| 5517 | tSirMacAddr bssId; // BSSID is needed to identify which session issued this request. As |
| 5518 | //the request has power constraints, this should be applied only to that session |
| 5519 | tSirMacAddr selfStaMacAddr; |
| 5520 | //In request, |
| 5521 | //power == MaxTx power to be used. |
| 5522 | tPowerdBm power; |
| 5523 | |
| 5524 | }tSetMaxTxPwrParams, *tpSetMaxTxPwrParams; |
| 5525 | |
| 5526 | |
| 5527 | typedef PACKED_PRE struct PACKED_POST |
| 5528 | { |
| 5529 | tHalMsgHeader header; |
| 5530 | tSetMaxTxPwrParams setMaxTxPwrParams; |
| 5531 | }tSetMaxTxPwrReq, *tpSetMaxTxPwrReq; |
| 5532 | |
| 5533 | /*--------------------------------------------------------------------------- |
| 5534 | *WLAN_HAL_SET_MAX_TX_POWER_RSP |
| 5535 | *--------------------------------------------------------------------------*/ |
| 5536 | |
| 5537 | typedef PACKED_PRE struct PACKED_POST |
| 5538 | { |
| 5539 | //power == tx power used for management frames. |
| 5540 | tPowerdBm power; |
| 5541 | |
| 5542 | /* success or failure */ |
| 5543 | tANI_U32 status; |
| 5544 | }tSetMaxTxPwrRspParams, *tpSetMaxTxPwrRspParams; |
| 5545 | |
| 5546 | typedef PACKED_PRE struct PACKED_POST |
| 5547 | { |
| 5548 | tHalMsgHeader header; |
| 5549 | tSetMaxTxPwrRspParams setMaxTxPwrRspParams; |
| 5550 | }tSetMaxTxPwrRspMsg, *tpSetMaxTxPwrRspMsg; |
| 5551 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 5552 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5553 | /*--------------------------------------------------------------------------- |
Arif Hussain | 36fda16 | 2013-08-30 14:46:57 -0700 | [diff] [blame] | 5554 | *WLAN_HAL_SET_MAX_TX_POWER_PER_BAND_REQ |
| 5555 | *--------------------------------------------------------------------------*/ |
| 5556 | |
| 5557 | /* Band types for WLAN_HAL_SET_MAX_TX_POWER_PER_BAND_REQ between WDI and HAL */ |
| 5558 | typedef enum |
| 5559 | { |
| 5560 | WLAN_HAL_SET_MAX_TX_POWER_BAND_ALL = 0, |
| 5561 | // For 2.4GHz or 5GHz bands |
| 5562 | WLAN_HAL_SET_MAX_TX_POWER_BAND_2_4_GHZ, |
| 5563 | WLAN_HAL_SET_MAX_TX_POWER_BAND_5_0_GHZ, |
| 5564 | // End of valid enums |
| 5565 | WLAN_HAL_SET_MAX_TX_POWER_BAND_MAX = WLAN_HAL_MAX_ENUM_SIZE, |
| 5566 | }tHalSetMaxTxPwrBandInfo; |
| 5567 | |
| 5568 | typedef PACKED_PRE struct PACKED_POST |
| 5569 | { |
| 5570 | tHalSetMaxTxPwrBandInfo bandInfo; // 2_4_GHZ or 5_0_GHZ |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 5571 | tPowerdBm power; // In request, power == MaxTx power to be used. |
Arif Hussain | 36fda16 | 2013-08-30 14:46:57 -0700 | [diff] [blame] | 5572 | }tSetMaxTxPwrPerBandParams, *tpSetMaxTxPwrPerBandParams; |
| 5573 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 5574 | |
Arif Hussain | 36fda16 | 2013-08-30 14:46:57 -0700 | [diff] [blame] | 5575 | typedef PACKED_PRE struct PACKED_POST |
| 5576 | { |
| 5577 | tHalMsgHeader header; |
| 5578 | tSetMaxTxPwrPerBandParams setMaxTxPwrPerBandParams; |
| 5579 | }tSetMaxTxPwrPerBandReq, *tpSetMaxTxPwrPerBandReq; |
| 5580 | |
| 5581 | /*--------------------------------------------------------------------------- |
| 5582 | *WLAN_HAL_SET_MAX_TX_POWER_PER_BAND_RSP |
| 5583 | *--------------------------------------------------------------------------*/ |
| 5584 | |
| 5585 | typedef PACKED_PRE struct PACKED_POST |
| 5586 | { |
| 5587 | //power == tx power used for management frames. |
| 5588 | tPowerdBm power; |
| 5589 | |
| 5590 | /* success or failure */ |
| 5591 | tANI_U32 status; |
| 5592 | }tSetMaxTxPwrPerBandRspParams, *tpSetMaxTxPwrPerBandRspParams; |
| 5593 | |
| 5594 | typedef PACKED_PRE struct PACKED_POST |
| 5595 | { |
| 5596 | tHalMsgHeader header; |
| 5597 | tSetMaxTxPwrPerBandRspParams setMaxTxPwrPerBandRspParams; |
| 5598 | }tSetMaxTxPwrPerBandRspMsg, *tpSetMaxTxPwrPerBandRspMsg; |
| 5599 | |
| 5600 | /*--------------------------------------------------------------------------- |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5601 | *WLAN_HAL_SET_TX_POWER_REQ |
| 5602 | *--------------------------------------------------------------------------*/ |
| 5603 | |
| 5604 | typedef PACKED_PRE struct PACKED_POST |
| 5605 | { |
| 5606 | /* TX Power in milli watts */ |
| 5607 | tANI_U32 txPower; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 5608 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5609 | }tSetTxPwrReqParams, *tpSetTxPwrReqParams; |
| 5610 | |
| 5611 | |
| 5612 | typedef PACKED_PRE struct PACKED_POST |
| 5613 | { |
| 5614 | tHalMsgHeader header; |
| 5615 | tSetTxPwrReqParams setTxPwrReqParams; |
| 5616 | }tSetTxPwrReqMsg, *tpSetTxPwrReqMsg; |
| 5617 | |
| 5618 | /*--------------------------------------------------------------------------- |
| 5619 | *WLAN_HAL_SET_TX_POWER_RSP |
| 5620 | *--------------------------------------------------------------------------*/ |
| 5621 | |
| 5622 | typedef PACKED_PRE struct PACKED_POST |
| 5623 | { |
| 5624 | /* success or failure */ |
| 5625 | tANI_U32 status; |
| 5626 | }tSetTxPwrRspParams, *tpSetTxPwrRspParams; |
| 5627 | |
| 5628 | typedef PACKED_PRE struct PACKED_POST |
| 5629 | { |
| 5630 | tHalMsgHeader header; |
| 5631 | tSetTxPwrRspParams setTxPwrRspParams; |
| 5632 | }tSetTxPwrRspMsg, *tpSetTxPwrRspMsg; |
| 5633 | |
| 5634 | /*--------------------------------------------------------------------------- |
| 5635 | *WLAN_HAL_GET_TX_POWER_REQ |
| 5636 | *--------------------------------------------------------------------------*/ |
| 5637 | |
| 5638 | typedef PACKED_PRE struct PACKED_POST |
| 5639 | { |
| 5640 | tANI_U8 staId; |
| 5641 | }tGetTxPwrReqParams, *tpGetTxPwrReqParams; |
| 5642 | |
| 5643 | typedef PACKED_PRE struct PACKED_POST |
| 5644 | { |
| 5645 | tHalMsgHeader header; |
| 5646 | tGetTxPwrReqParams getTxPwrReqParams; |
| 5647 | }tGetTxPwrReqMsg, *tpGetTxPwrReqMsg; |
| 5648 | |
| 5649 | /*--------------------------------------------------------------------------- |
| 5650 | *WLAN_HAL_GET_TX_POWER_RSP |
| 5651 | *--------------------------------------------------------------------------*/ |
| 5652 | |
| 5653 | typedef PACKED_PRE struct PACKED_POST |
| 5654 | { |
| 5655 | /* success or failure */ |
| 5656 | tANI_U32 status; |
| 5657 | |
| 5658 | /* TX Power in milli watts */ |
| 5659 | tANI_U32 txPower; |
| 5660 | }tGetTxPwrRspParams, *tpGetTxPwrRspParams; |
| 5661 | |
| 5662 | typedef PACKED_PRE struct PACKED_POST |
| 5663 | { |
| 5664 | tHalMsgHeader header; |
| 5665 | tGetTxPwrRspParams getTxPwrRspParams; |
| 5666 | }tGetTxPwrRspMsg, *tpGetTxPwrRspMsg; |
| 5667 | |
| 5668 | #ifdef WLAN_FEATURE_P2P |
| 5669 | /*--------------------------------------------------------------------------- |
| 5670 | *WLAN_HAL_SET_P2P_GONOA_REQ |
| 5671 | *--------------------------------------------------------------------------*/ |
| 5672 | |
| 5673 | typedef PACKED_PRE struct PACKED_POST |
| 5674 | { |
| 5675 | tANI_U8 opp_ps; |
| 5676 | tANI_U32 ctWindow; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5677 | tANI_U8 count; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5678 | tANI_U32 duration; |
| 5679 | tANI_U32 interval; |
| 5680 | tANI_U32 single_noa_duration; |
| 5681 | tANI_U8 psSelection; |
| 5682 | }tSetP2PGONOAParams, *tpSetP2PGONOAParams; |
| 5683 | |
| 5684 | |
| 5685 | typedef PACKED_PRE struct PACKED_POST |
| 5686 | { |
| 5687 | tHalMsgHeader header; |
| 5688 | tSetP2PGONOAParams setP2PGONOAParams; |
| 5689 | }tSetP2PGONOAReq, *tpSetP2PGONOAReq; |
| 5690 | |
| 5691 | /*--------------------------------------------------------------------------- |
| 5692 | *WLAN_HAL_SET_P2P_GONOA_RSP |
| 5693 | *--------------------------------------------------------------------------*/ |
| 5694 | |
| 5695 | typedef PACKED_PRE struct PACKED_POST |
| 5696 | { |
| 5697 | /* success or failure */ |
| 5698 | tANI_U32 status; |
| 5699 | }tSetP2PGONOARspParams, *tpSetP2PGONOARspParams; |
| 5700 | |
| 5701 | typedef PACKED_PRE struct PACKED_POST |
| 5702 | { |
| 5703 | tHalMsgHeader header; |
| 5704 | tSetP2PGONOARspParams setP2PGONOARspParams; |
| 5705 | }tSetP2PGONOARspMsg, *tpSetP2PGONOARspMsg; |
| 5706 | #endif |
| 5707 | |
| 5708 | /*--------------------------------------------------------------------------- |
| 5709 | *WLAN_HAL_ADD_SELF_STA_REQ |
| 5710 | *--------------------------------------------------------------------------*/ |
| 5711 | |
| 5712 | typedef PACKED_PRE struct PACKED_POST |
| 5713 | { |
| 5714 | tSirMacAddr selfMacAddr; |
| 5715 | tANI_U32 status; |
| 5716 | }tAddStaSelfParams, *tpAddStaSelfParams; |
| 5717 | |
Kiran Kumar Lokere | 0ad5cd3 | 2013-06-25 11:26:22 -0700 | [diff] [blame] | 5718 | typedef PACKED_PRE struct PACKED_POST |
| 5719 | { |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 5720 | tHalMsgHeader header; |
| 5721 | tAddStaSelfParams addStaSelfParams; |
| 5722 | }tAddStaSelfReq, *tpAddStaSelfReq; |
| 5723 | |
| 5724 | /* This V1 structure carries additionally the IFACE PERSONA |
| 5725 | of the interface as compared to the legacy control |
| 5726 | message */ |
| 5727 | typedef PACKED_PRE struct PACKED_POST |
| 5728 | { |
Kiran Kumar Lokere | 0ad5cd3 | 2013-06-25 11:26:22 -0700 | [diff] [blame] | 5729 | tSirMacAddr selfMacAddr; |
| 5730 | tANI_U32 status; |
| 5731 | tHalIfacePersona iface_persona; |
| 5732 | }tAddStaSelfParams_V1, *tpAddStaSelfParams_V1; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5733 | |
| 5734 | typedef PACKED_PRE struct PACKED_POST |
| 5735 | { |
| 5736 | tHalMsgHeader header; |
Kiran Kumar Lokere | 0ad5cd3 | 2013-06-25 11:26:22 -0700 | [diff] [blame] | 5737 | tAddStaSelfParams_V1 addStaSelfParams_V1; |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 5738 | }tAddStaSelfReq_V1, *tpAddStaSelfReq_V1; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5739 | |
| 5740 | /*--------------------------------------------------------------------------- |
| 5741 | *WLAN_HAL_ADD_SELF_STA_RSP |
| 5742 | *--------------------------------------------------------------------------*/ |
| 5743 | |
| 5744 | typedef PACKED_PRE struct PACKED_POST |
| 5745 | { |
| 5746 | /* success or failure */ |
| 5747 | tANI_U32 status; |
| 5748 | |
| 5749 | /*Self STA Index */ |
| 5750 | tANI_U8 selfStaIdx; |
| 5751 | |
| 5752 | /* DPU Index (IGTK, PTK, GTK all same) */ |
| 5753 | tANI_U8 dpuIdx; |
| 5754 | |
| 5755 | /* DPU Signature */ |
| 5756 | tANI_U8 dpuSignature; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5757 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5758 | }tAddStaSelfRspParams, *tpAddStaSelfRspParams; |
| 5759 | |
| 5760 | typedef PACKED_PRE struct PACKED_POST |
| 5761 | { |
| 5762 | tHalMsgHeader header; |
| 5763 | tAddStaSelfRspParams addStaSelfRspParams; |
| 5764 | }tAddStaSelfRspMsg, *tpAddStaSelfRspMsg; |
| 5765 | |
| 5766 | |
| 5767 | /*--------------------------------------------------------------------------- |
| 5768 | WLAN_HAL_DEL_STA_SELF_REQ |
| 5769 | ---------------------------------------------------------------------------*/ |
| 5770 | |
| 5771 | typedef PACKED_PRE struct PACKED_POST |
| 5772 | { |
| 5773 | tSirMacAddr selfMacAddr; |
| 5774 | |
| 5775 | }tDelStaSelfParams, *tpDelStaSelfParams; |
| 5776 | |
| 5777 | typedef PACKED_PRE struct PACKED_POST |
| 5778 | { |
| 5779 | tHalMsgHeader header; |
| 5780 | tDelStaSelfParams delStaSelfParams; |
| 5781 | } tDelStaSelfReqMsg, *tpDelStaSelfReqMsg; |
| 5782 | |
| 5783 | |
| 5784 | /*--------------------------------------------------------------------------- |
| 5785 | WLAN_HAL_DEL_STA_SELF_RSP |
| 5786 | ---------------------------------------------------------------------------*/ |
| 5787 | |
| 5788 | typedef PACKED_PRE struct PACKED_POST |
| 5789 | { |
| 5790 | /*success or failure */ |
| 5791 | tANI_U32 status; |
| 5792 | |
| 5793 | tSirMacAddr selfMacAddr; |
| 5794 | }tDelStaSelfRspParams, *tpDelStaSelfRspParams; |
| 5795 | |
| 5796 | typedef PACKED_PRE struct PACKED_POST |
| 5797 | { |
| 5798 | tHalMsgHeader header; |
| 5799 | tDelStaSelfRspParams delStaSelfRspParams; |
| 5800 | } tDelStaSelfRspMsg, *tpDelStaSelfRspMsg; |
| 5801 | |
| 5802 | |
| 5803 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 5804 | |
| 5805 | /*--------------------------------------------------------------------------- |
| 5806 | *WLAN_HAL_AGGR_ADD_TS_REQ |
| 5807 | *--------------------------------------------------------------------------*/ |
| 5808 | |
| 5809 | typedef PACKED_PRE struct PACKED_POST |
| 5810 | { |
| 5811 | /* Station Index */ |
| 5812 | tANI_U16 staIdx; |
| 5813 | |
| 5814 | /* TSPEC handler uniquely identifying a TSPEC for a STA in a BSS */ |
| 5815 | /* This will carry the bitmap with the bit positions representing different AC.s*/ |
| 5816 | tANI_U16 tspecIdx; |
| 5817 | |
| 5818 | /* Tspec info per AC To program TPE with required parameters */ |
| 5819 | tSirMacTspecIE tspec[WLAN_HAL_MAX_AC]; |
| 5820 | |
| 5821 | /* U-APSD Flags: 1b per AC. Encoded as follows: |
| 5822 | b7 b6 b5 b4 b3 b2 b1 b0 = |
| 5823 | X X X X BE BK VI VO */ |
| 5824 | tANI_U8 uAPSD; |
| 5825 | |
| 5826 | /* These parameters are for all the access categories */ |
| 5827 | tANI_U32 srvInterval[WLAN_HAL_MAX_AC]; // Service Interval |
| 5828 | tANI_U32 susInterval[WLAN_HAL_MAX_AC]; // Suspend Interval |
| 5829 | tANI_U32 delayInterval[WLAN_HAL_MAX_AC]; // Delay Interval |
| 5830 | |
| 5831 | }tAggrAddTsParams, *tpAggrAddTsParams; |
| 5832 | |
| 5833 | |
| 5834 | typedef PACKED_PRE struct PACKED_POST |
| 5835 | { |
| 5836 | tHalMsgHeader header; |
| 5837 | tAggrAddTsParams aggrAddTsParam; |
| 5838 | }tAggrAddTsReq, *tpAggrAddTsReq; |
| 5839 | |
| 5840 | /*--------------------------------------------------------------------------- |
| 5841 | *WLAN_HAL_AGGR_ADD_TS_RSP |
| 5842 | *--------------------------------------------------------------------------*/ |
| 5843 | |
| 5844 | typedef PACKED_PRE struct PACKED_POST |
| 5845 | { |
| 5846 | /* success or failure */ |
| 5847 | tANI_U32 status0; |
| 5848 | /* FIXME PRIMA for future use for 11R */ |
| 5849 | tANI_U32 status1; |
| 5850 | }tAggrAddTsRspParams, *tpAggrAddTsRspParams; |
| 5851 | |
| 5852 | typedef PACKED_PRE struct PACKED_POST |
| 5853 | { |
| 5854 | tHalMsgHeader header; |
| 5855 | tAggrAddTsRspParams aggrAddTsRspParam; |
| 5856 | }tAggrAddTsRspMsg, *tpAggrAddTsRspMsg; |
| 5857 | |
| 5858 | #endif |
| 5859 | |
| 5860 | /*--------------------------------------------------------------------------- |
| 5861 | * WLAN_HAL_CONFIGURE_APPS_CPU_WAKEUP_STATE_REQ |
| 5862 | *--------------------------------------------------------------------------*/ |
| 5863 | typedef PACKED_PRE struct PACKED_POST |
| 5864 | { |
| 5865 | tANI_U8 isAppsCpuAwake; |
| 5866 | } tHalConfigureAppsCpuWakeupStateReqParams, *tpHalConfigureAppsCpuWakeupStatReqParams; |
| 5867 | |
| 5868 | typedef PACKED_PRE struct PACKED_POST |
| 5869 | { |
| 5870 | tHalMsgHeader header; |
| 5871 | tHalConfigureAppsCpuWakeupStateReqParams appsStateReqParams; |
| 5872 | } tHalConfigureAppsCpuWakeupStateReqMsg, *tpHalConfigureAppsCpuWakeupStateReqMsg; |
| 5873 | |
| 5874 | /*--------------------------------------------------------------------------- |
| 5875 | * WLAN_HAL_CONFIGURE_APPS_CPU_WAKEUP_STATE_RSP |
| 5876 | *--------------------------------------------------------------------------*/ |
| 5877 | typedef PACKED_PRE struct PACKED_POST |
| 5878 | { |
| 5879 | /* success or failure */ |
| 5880 | tANI_U32 status; |
| 5881 | } tHalConfigureAppsCpuWakeupStateRspParams, *tpHalConfigureAppsCpuWakeupStateRspParams; |
| 5882 | |
| 5883 | typedef PACKED_PRE struct PACKED_POST |
| 5884 | { |
| 5885 | tHalMsgHeader header; |
| 5886 | tHalConfigureAppsCpuWakeupStateRspParams appsStateRspParams; |
| 5887 | } tHalConfigureAppsCpuWakeupStateRspMsg, *tpHalConfigureAppsCpuWakeupStateRspMsg; |
| 5888 | /*--------------------------------------------------------------------------- |
| 5889 | * WLAN_HAL_DUMP_COMMAND_REQ |
| 5890 | *--------------------------------------------------------------------------*/ |
| 5891 | |
| 5892 | typedef PACKED_PRE struct PACKED_POST |
| 5893 | { |
| 5894 | tANI_U32 argument1; |
| 5895 | tANI_U32 argument2; |
| 5896 | tANI_U32 argument3; |
| 5897 | tANI_U32 argument4; |
| 5898 | tANI_U32 argument5; |
| 5899 | |
| 5900 | }tHalDumpCmdReqParams,*tpHalDumpCmdReqParams; |
| 5901 | |
| 5902 | typedef PACKED_PRE struct PACKED_POST |
| 5903 | { |
| 5904 | tHalMsgHeader header; |
| 5905 | tHalDumpCmdReqParams dumpCmdReqParams; |
| 5906 | } tHalDumpCmdReqMsg, *tpHalDumpCmdReqMsg; |
| 5907 | |
| 5908 | /*--------------------------------------------------------------------------- |
| 5909 | * WLAN_HAL_DUMP_COMMAND_RSP |
| 5910 | *--------------------------------------------------------------------------*/ |
| 5911 | |
| 5912 | typedef PACKED_PRE struct PACKED_POST |
| 5913 | { |
| 5914 | /* success or failure */ |
| 5915 | tANI_U32 status; |
| 5916 | /*Length of the responce message*/ |
| 5917 | tANI_U32 rspLength; |
| 5918 | /*FiXME: Currently considering the the responce will be less than 100bytes */ |
| 5919 | tANI_U8 rspBuffer[DUMPCMD_RSP_BUFFER]; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5920 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5921 | } tHalDumpCmdRspParams, *tpHalDumpCmdRspParams; |
| 5922 | |
| 5923 | typedef PACKED_PRE struct PACKED_POST |
| 5924 | { |
| 5925 | tHalMsgHeader header; |
| 5926 | tHalDumpCmdRspParams dumpCmdRspParams; |
| 5927 | } tHalDumpCmdRspMsg, *tpHalDumpCmdRspMsg; |
| 5928 | |
| 5929 | /*--------------------------------------------------------------------------- |
| 5930 | *WLAN_HAL_COEX_IND |
| 5931 | *-------------------------------------------------------------------------*/ |
| 5932 | #define WLAN_COEX_IND_DATA_SIZE (4) |
| 5933 | #define WLAN_COEX_IND_TYPE_DISABLE_HB_MONITOR (0) |
| 5934 | #define WLAN_COEX_IND_TYPE_ENABLE_HB_MONITOR (1) |
Madan Mohan Koyyalamudi | 5a244b2 | 2013-03-21 16:12:18 -0700 | [diff] [blame] | 5935 | #define WLAN_COEX_IND_TYPE_SCANS_ARE_COMPROMISED_BY_COEX (2) |
| 5936 | #define WLAN_COEX_IND_TYPE_SCANS_ARE_NOT_COMPROMISED_BY_COEX (3) |
Shailender Karmuchi | 07f514b | 2013-06-25 01:14:09 -0700 | [diff] [blame] | 5937 | #define WLAN_COEX_IND_TYPE_DISABLE_AGGREGATION_IN_2p4 (4) |
| 5938 | #define WLAN_COEX_IND_TYPE_ENABLE_AGGREGATION_IN_2p4 (5) |
Kanchanapally, Vidyullatha | 4eca8d2 | 2014-11-04 14:33:30 +0530 | [diff] [blame] | 5939 | #define WLAN_COEX_IND_TYPE_ENABLE_UAPSD (6) |
| 5940 | #define WLAN_COEX_IND_TYPE_DISABLE_UAPSD (7) |
c_hpothu | 0e9ebbe | 2014-11-14 12:02:53 +0530 | [diff] [blame] | 5941 | #define WLAN_COEX_IND_TYPE_CXM_FEATURES_NOTIFICATION (8) |
Abhishek Singh | 1bb2bc2 | 2017-01-02 10:38:38 +0530 | [diff] [blame] | 5942 | #define WLAN_COEX_IND_TYPE_HID_CONNECTED_WLAN_CONNECTED_IN_2p4 (9) |
| 5943 | #define WLAN_COEX_IND_TYPE_HID_DISCONNECTED_WLAN_CONNECTED_IN_2p4 (10) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5944 | |
| 5945 | typedef PACKED_PRE struct PACKED_POST |
| 5946 | { |
| 5947 | /*Coex Indication Type*/ |
| 5948 | tANI_U32 coexIndType; |
| 5949 | |
| 5950 | /*Coex Indication Data*/ |
| 5951 | tANI_U32 coexIndData[WLAN_COEX_IND_DATA_SIZE]; |
| 5952 | }tCoexIndParams,*tpCoexIndParams; |
| 5953 | |
| 5954 | typedef PACKED_PRE struct PACKED_POST |
| 5955 | { |
| 5956 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5957 | tCoexIndParams coexIndParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5958 | }tCoexIndMsg, *tpCoexIndMsg; |
| 5959 | |
| 5960 | /*--------------------------------------------------------------------------- |
| 5961 | *WLAN_HAL_OTA_TX_COMPL_IND |
| 5962 | *-------------------------------------------------------------------------*/ |
| 5963 | |
| 5964 | typedef PACKED_PRE struct PACKED_POST |
| 5965 | { |
| 5966 | /*Tx Complete Indication Success or Failure*/ |
| 5967 | tANI_U32 status; |
Ganesh Kondabattini | b18b329 | 2015-03-16 16:59:26 +0530 | [diff] [blame] | 5968 | /* Dialog token */ |
| 5969 | tANI_U32 dialogToken; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5970 | }tTxComplParams,*tpTxComplParams; |
| 5971 | |
| 5972 | typedef PACKED_PRE struct PACKED_POST |
| 5973 | { |
| 5974 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5975 | tTxComplParams txComplParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5976 | }tTxComplIndMsg, *tpTxComplIndMsg; |
| 5977 | |
| 5978 | /*--------------------------------------------------------------------------- |
| 5979 | * WLAN_HAL_HOST_SUSPEND_IND |
| 5980 | *-------------------------------------------------------------------------*/ |
| 5981 | |
| 5982 | typedef PACKED_PRE struct PACKED_POST |
| 5983 | { |
| 5984 | tANI_U32 configuredMcstBcstFilterSetting; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 5985 | tANI_U32 activeSessionCount; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5986 | }tHalWlanHostSuspendIndParam,*tpHalWlanHostSuspendIndParam; |
| 5987 | |
| 5988 | typedef PACKED_PRE struct PACKED_POST |
| 5989 | { |
| 5990 | tHalMsgHeader header; |
| 5991 | tHalWlanHostSuspendIndParam suspendIndParams; |
| 5992 | }tHalWlanHostSuspendIndMsg, *tpHalWlanHostSuspendIndMsg; |
| 5993 | |
| 5994 | /*--------------------------------------------------------------------------- |
| 5995 | * WLAN_HAL_EXCLUDE_UNENCRYTED_IND |
| 5996 | *-------------------------------------------------------------------------*/ |
| 5997 | |
| 5998 | typedef PACKED_PRE struct PACKED_POST |
| 5999 | { |
| 6000 | tANI_BOOLEAN bDot11ExcludeUnencrypted; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6001 | tSirMacAddr bssId; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6002 | }tHalWlanExcludeUnEncryptedIndParam,*tpHalWlanExcludeUnEncryptedIndParam; |
| 6003 | |
| 6004 | typedef PACKED_PRE struct PACKED_POST |
| 6005 | { |
| 6006 | tHalMsgHeader header; |
| 6007 | tHalWlanExcludeUnEncryptedIndParam excludeUnEncryptedIndParams; |
| 6008 | }tHalWlanExcludeUnEncrptedIndMsg, *tpHalWlanExcludeUnEncrptedIndMsg; |
| 6009 | |
| 6010 | #ifdef WLAN_FEATURE_P2P |
| 6011 | /*--------------------------------------------------------------------------- |
| 6012 | *WLAN_HAL_NOA_ATTR_IND |
| 6013 | *-------------------------------------------------------------------------*/ |
| 6014 | |
| 6015 | typedef PACKED_PRE struct PACKED_POST |
| 6016 | { |
| 6017 | tANI_U8 index ; |
| 6018 | tANI_U8 oppPsFlag ; |
| 6019 | tANI_U16 ctWin ; |
| 6020 | |
| 6021 | tANI_U16 uNoa1IntervalCnt; |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 6022 | tANI_U16 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6023 | tANI_U32 uNoa1Duration; |
| 6024 | tANI_U32 uNoa1Interval; |
| 6025 | tANI_U32 uNoa1StartTime; |
| 6026 | |
| 6027 | tANI_U16 uNoa2IntervalCnt; |
| 6028 | tANI_U16 rsvd2; |
| 6029 | tANI_U32 uNoa2Duration; |
| 6030 | tANI_U32 uNoa2Interval; |
| 6031 | tANI_U32 uNoa2StartTime; |
| 6032 | |
| 6033 | tANI_U32 status; |
| 6034 | }tNoaAttrIndParams, *tpNoaAttrIndParams; |
| 6035 | |
| 6036 | typedef PACKED_PRE struct PACKED_POST |
| 6037 | { |
| 6038 | tHalMsgHeader header; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6039 | tNoaAttrIndParams noaAttrIndParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6040 | }tNoaAttrIndMsg, *tpNoaAttrIndMsg; |
Viral Modi | e50b1d4 | 2012-12-10 13:04:52 -0800 | [diff] [blame] | 6041 | |
| 6042 | /*--------------------------------------------------------------------------- |
| 6043 | *WLAN_HAL_NOA_START_IND |
| 6044 | *-------------------------------------------------------------------------*/ |
| 6045 | |
| 6046 | typedef PACKED_PRE struct PACKED_POST |
| 6047 | { |
| 6048 | tANI_U32 status; |
| 6049 | tANI_U32 bssIdx; |
| 6050 | }tNoaStartIndParams, *tpNoaStartIndParams; |
| 6051 | |
| 6052 | typedef PACKED_PRE struct PACKED_POST |
| 6053 | { |
| 6054 | tHalMsgHeader header; |
| 6055 | tNoaStartIndParams noaStartIndParams; |
| 6056 | }tNoaStartIndMsg, tpNoaStartIndMsg; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6057 | #endif |
| 6058 | |
| 6059 | /*--------------------------------------------------------------------------- |
| 6060 | * WLAN_HAL_HOST_RESUME_REQ |
| 6061 | *-------------------------------------------------------------------------*/ |
| 6062 | |
| 6063 | typedef PACKED_PRE struct PACKED_POST |
| 6064 | { |
| 6065 | tANI_U8 configuredMcstBcstFilterSetting; |
| 6066 | }tHalWlanHostResumeReqParam,*tpHalWlanHostResumeReqParam; |
| 6067 | |
| 6068 | typedef PACKED_PRE struct PACKED_POST |
| 6069 | { |
| 6070 | tHalMsgHeader header; |
| 6071 | tHalWlanHostResumeReqParam resumeReqParams; |
| 6072 | }tHalWlanHostResumeReqMsg, *tpHalWlanHostResumeReqMsg; |
| 6073 | |
| 6074 | /*--------------------------------------------------------------------------- |
| 6075 | * WLAN_HAL_HOST_RESUME_RSP |
| 6076 | *--------------------------------------------------------------------------*/ |
| 6077 | typedef PACKED_PRE struct PACKED_POST |
| 6078 | { |
| 6079 | /* success or failure */ |
| 6080 | tANI_U32 status; |
| 6081 | } tHalHostResumeRspParams, *tpHalHostResumeRspParams; |
| 6082 | |
| 6083 | typedef PACKED_PRE struct PACKED_POST |
| 6084 | { |
| 6085 | tHalMsgHeader header; |
| 6086 | tHalHostResumeRspParams hostResumeRspParams; |
| 6087 | } tHalHostResumeRspMsg, *tpHalHostResumeRspMsg; |
| 6088 | |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 6089 | typedef PACKED_PRE struct PACKED_POST |
| 6090 | { |
| 6091 | tANI_U16 staIdx; |
| 6092 | // Peer MAC Address, whose BA session has timed out |
| 6093 | tSirMacAddr peerMacAddr; |
| 6094 | // TID for which a BA session timeout is being triggered |
| 6095 | tANI_U8 baTID; |
| 6096 | // DELBA direction |
| 6097 | // 1 - Originator |
| 6098 | // 0 - Recipient |
| 6099 | tANI_U8 baDirection; |
| 6100 | tANI_U32 reasonCode; |
| 6101 | tSirMacAddr bssId; // TO SUPPORT BT-AMP |
| 6102 | } tHalWlanDelBaIndMsg, *tpHalWlanDelBaIndMsg; |
| 6103 | |
| 6104 | typedef PACKED_PRE struct PACKED_POST |
| 6105 | { |
| 6106 | tHalMsgHeader header; |
| 6107 | tHalWlanDelBaIndMsg hostdelBaParam; |
| 6108 | } tHalDelBAIndMsg, *tpHalDelBAIndMsg; |
| 6109 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6110 | /*--------------------------------------------------------------------------- |
| 6111 | *PNO Messages |
| 6112 | *-------------------------------------------------------------------------*/ |
Shailender Karmuchi | 07f514b | 2013-06-25 01:14:09 -0700 | [diff] [blame] | 6113 | /* Max number of channels that a network can be found on*/ |
| 6114 | /* WLAN_HAL_PNO_MAX_NETW_CHANNELS and WLAN_HAL_PNO_MAX_NETW_CHANNELS_EX should |
| 6115 | * be changed at same time |
| 6116 | */ |
Kiran Kumar Lokere | 0889424 | 2013-04-23 14:50:54 -0700 | [diff] [blame] | 6117 | #define WLAN_HAL_PNO_MAX_NETW_CHANNELS 60 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6118 | |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6119 | /*Max number of channels that a network can be found on*/ |
| 6120 | #define WLAN_HAL_PNO_MAX_NETW_CHANNELS_EX 60 |
| 6121 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6122 | /*Maximum numbers of networks supported by PNO*/ |
| 6123 | #define WLAN_HAL_PNO_MAX_SUPP_NETWORKS 16 |
| 6124 | |
| 6125 | /*The number of scan time intervals that can be programmed into PNO*/ |
| 6126 | #define WLAN_HAL_PNO_MAX_SCAN_TIMERS 10 |
| 6127 | |
| 6128 | /*Maximum size of the probe template*/ |
| 6129 | #define WLAN_HAL_PNO_MAX_PROBE_SIZE 450 |
| 6130 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6131 | /*Type of PNO enabling |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6132 | Immediate - scanning will start immediately and PNO procedure will |
| 6133 | be repeated based on timer |
| 6134 | Suspend - scanning will start at suspend |
Shailender Karmuchi | 07f514b | 2013-06-25 01:14:09 -0700 | [diff] [blame] | 6135 | Resume - scanning will start on system resume |
| 6136 | Delay - start the scan timer to trigger PNO scan |
| 6137 | */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6138 | typedef enum |
| 6139 | { |
| 6140 | ePNO_MODE_IMMEDIATE, |
| 6141 | ePNO_MODE_ON_SUSPEND, |
| 6142 | ePNO_MODE_ON_RESUME, |
Gopichand Nakkala | 175de4b | 2013-05-06 12:02:17 +0530 | [diff] [blame] | 6143 | ePNO_MODE_DELAY, |
| 6144 | ePNO_MODE_PROXIMITY, // FEATURE_WIFI_PROXIMITY |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6145 | ePNO_MODE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 6146 | } ePNOMode; |
| 6147 | |
| 6148 | /*Authentication type*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6149 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6150 | { |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6151 | eAUTH_TYPE_ANY = 0, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6152 | eAUTH_TYPE_OPEN_SYSTEM = 1, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6153 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6154 | // Upper layer authentication types |
| 6155 | eAUTH_TYPE_WPA = 2, |
| 6156 | eAUTH_TYPE_WPA_PSK = 3, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6157 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6158 | eAUTH_TYPE_RSN = 4, |
| 6159 | eAUTH_TYPE_RSN_PSK = 5, |
| 6160 | eAUTH_TYPE_FT_RSN = 6, |
| 6161 | eAUTH_TYPE_FT_RSN_PSK = 7, |
| 6162 | eAUTH_TYPE_WAPI_WAI_CERTIFICATE = 8, |
| 6163 | eAUTH_TYPE_WAPI_WAI_PSK = 9, |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 6164 | eAUTH_TYPE_CCKM_WPA = 10, |
| 6165 | eAUTH_TYPE_CCKM_RSN = 11, |
Kanchanapally, Vidyullatha | 66a3a32 | 2015-06-09 15:19:11 +0530 | [diff] [blame] | 6166 | eAUTH_TYPE_RSN_PSK_SHA256 = 12, |
| 6167 | eAUTH_TYPE_RSN_8021X_SHA256 = 13, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6168 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6169 | eAUTH_TYPE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 6170 | |
| 6171 | }tAuthType; |
| 6172 | |
| 6173 | /* Encryption type */ |
| 6174 | typedef enum eEdType |
| 6175 | { |
| 6176 | eED_ANY = 0, |
| 6177 | eED_NONE = 1, |
| 6178 | eED_WEP = 2, |
| 6179 | eED_TKIP = 3, |
| 6180 | eED_CCMP = 4, |
| 6181 | eED_WPI = 5, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6182 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6183 | eED_TYPE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 6184 | } tEdType; |
| 6185 | |
| 6186 | /* SSID broadcast type */ |
| 6187 | typedef enum eSSIDBcastType |
| 6188 | { |
| 6189 | eBCAST_UNKNOWN = 0, |
| 6190 | eBCAST_NORMAL = 1, |
| 6191 | eBCAST_HIDDEN = 2, |
| 6192 | |
| 6193 | eBCAST_TYPE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 6194 | } tSSIDBcastType; |
| 6195 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6196 | /* |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6197 | The network description for which PNO will have to look for |
| 6198 | */ |
| 6199 | typedef PACKED_PRE struct PACKED_POST |
| 6200 | { |
| 6201 | /*SSID of the BSS*/ |
| 6202 | tSirMacSSid ssId; |
| 6203 | |
| 6204 | /*Authentication type for the network*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6205 | tAuthType authentication; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6206 | |
| 6207 | /*Encryption type for the network*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6208 | tEdType encryption; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6209 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6210 | /*Indicate the channel on which the Network can be found |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6211 | 0 - if all channels */ |
| 6212 | tANI_U8 ucChannelCount; |
| 6213 | tANI_U8 aChannels[WLAN_HAL_PNO_MAX_NETW_CHANNELS]; |
| 6214 | |
| 6215 | /*Indicates the RSSI threshold for the network to be considered*/ |
| 6216 | tANI_U8 rssiThreshold; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6217 | }tNetworkType; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6218 | |
| 6219 | typedef PACKED_PRE struct PACKED_POST |
| 6220 | { |
| 6221 | /*How much it should wait */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6222 | tANI_U32 uTimerValue; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6223 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6224 | /*How many times it should repeat that wait value |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6225 | 0 - keep using this timer until PNO is disabled*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6226 | tANI_U32 uTimerRepeat; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6227 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6228 | /*e.g: 2 3 |
| 6229 | 4 0 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6230 | - it will wait 2s between consecutive scans for 3 times |
| 6231 | - after that it will wait 4s between consecutive scans until disabled*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6232 | }tScanTimer; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6233 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6234 | /* |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6235 | The network parameters to be sent to the PNO algorithm |
| 6236 | */ |
| 6237 | typedef PACKED_PRE struct PACKED_POST |
| 6238 | { |
| 6239 | /*set to 0 if you wish for PNO to use its default telescopic timer*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6240 | tANI_U8 ucScanTimersCount; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6241 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6242 | /*A set value represents the amount of time that PNO will wait between |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6243 | two consecutive scan procedures |
| 6244 | If the desired is for a uniform timer that fires always at the exact same |
| 6245 | interval - one single value is to be set |
| 6246 | If there is a desire for a more complex - telescopic like timer multiple |
| 6247 | values can be set - once PNO reaches the end of the array it will |
| 6248 | continue scanning at intervals presented by the last value*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6249 | tScanTimer aTimerValues[WLAN_HAL_PNO_MAX_SCAN_TIMERS]; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6250 | |
| 6251 | }tScanTimersType; |
| 6252 | |
| 6253 | typedef PACKED_PRE struct PACKED_POST { |
| 6254 | |
| 6255 | /*Enable PNO*/ |
| 6256 | tANI_U32 enable; |
| 6257 | |
| 6258 | /*Immediate, On Suspend, On Resume*/ |
| 6259 | ePNOMode modePNO; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6260 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6261 | /*Number of networks sent for PNO*/ |
| 6262 | tANI_U32 ucNetworksCount; |
| 6263 | |
| 6264 | /*The networks that PNO needs to look for*/ |
| 6265 | tNetworkType aNetworks[WLAN_HAL_PNO_MAX_SUPP_NETWORKS]; |
| 6266 | |
| 6267 | /*The scan timers required for PNO*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6268 | tScanTimersType scanTimers; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6269 | |
| 6270 | /*Probe template for 2.4GHz band*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6271 | tANI_U16 us24GProbeSize; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6272 | tANI_U8 a24GProbeTemplate[WLAN_HAL_PNO_MAX_PROBE_SIZE]; |
| 6273 | |
| 6274 | /*Probe template for 5GHz band*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6275 | tANI_U16 us5GProbeSize; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6276 | tANI_U8 a5GProbeTemplate[WLAN_HAL_PNO_MAX_PROBE_SIZE]; |
| 6277 | |
| 6278 | } tPrefNetwListParams, * tpPrefNetwListParams; |
| 6279 | |
| 6280 | /* |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6281 | Preferred network list request |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6282 | */ |
| 6283 | typedef PACKED_PRE struct PACKED_POST |
| 6284 | { |
| 6285 | tHalMsgHeader header; |
| 6286 | tPrefNetwListParams prefNetwListParams; |
| 6287 | } tSetPrefNetwListReq, *tpSetPrefNetwListReq; |
| 6288 | |
| 6289 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6290 | /* |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6291 | The network description for which PNO will have to look for |
| 6292 | */ |
| 6293 | typedef PACKED_PRE struct PACKED_POST |
| 6294 | { |
| 6295 | /*SSID of the BSS*/ |
| 6296 | tSirMacSSid ssId; |
| 6297 | |
| 6298 | /*Authentication type for the network*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6299 | tAuthType authentication; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6300 | |
| 6301 | /*Encryption type for the network*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6302 | tEdType encryption; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6303 | |
| 6304 | /*SSID broadcast type, normal, hidden or unknown*/ |
| 6305 | tSSIDBcastType bcastNetworkType; |
| 6306 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6307 | /*Indicate the channel on which the Network can be found |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6308 | 0 - if all channels */ |
| 6309 | tANI_U8 ucChannelCount; |
| 6310 | tANI_U8 aChannels[WLAN_HAL_PNO_MAX_NETW_CHANNELS]; |
| 6311 | |
| 6312 | /*Indicates the RSSI threshold for the network to be considered*/ |
| 6313 | tANI_U8 rssiThreshold; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6314 | }tNetworkTypeNew; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6315 | |
| 6316 | typedef PACKED_PRE struct PACKED_POST { |
| 6317 | |
| 6318 | /*Enable PNO*/ |
| 6319 | tANI_U32 enable; |
| 6320 | |
| 6321 | /*Immediate, On Suspend, On Resume*/ |
| 6322 | ePNOMode modePNO; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6323 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6324 | /*Number of networks sent for PNO*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6325 | tANI_U32 ucNetworksCount; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6326 | |
| 6327 | /*The networks that PNO needs to look for*/ |
| 6328 | tNetworkTypeNew aNetworks[WLAN_HAL_PNO_MAX_SUPP_NETWORKS]; |
| 6329 | |
| 6330 | /*The scan timers required for PNO*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6331 | tScanTimersType scanTimers; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6332 | |
| 6333 | /*Probe template for 2.4GHz band*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6334 | tANI_U16 us24GProbeSize; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6335 | tANI_U8 a24GProbeTemplate[WLAN_HAL_PNO_MAX_PROBE_SIZE]; |
| 6336 | |
| 6337 | /*Probe template for 5GHz band*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6338 | tANI_U16 us5GProbeSize; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6339 | tANI_U8 a5GProbeTemplate[WLAN_HAL_PNO_MAX_PROBE_SIZE]; |
| 6340 | |
| 6341 | } tPrefNetwListParamsNew, * tpPrefNetwListParamsNew; |
| 6342 | |
| 6343 | /* |
| 6344 | Preferred network list request new |
| 6345 | */ |
| 6346 | typedef PACKED_PRE struct PACKED_POST |
| 6347 | { |
| 6348 | tHalMsgHeader header; |
| 6349 | tPrefNetwListParamsNew prefNetwListParams; |
| 6350 | } tSetPrefNetwListReqNew, *tpSetPrefNetwListReqNew; |
| 6351 | |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 6352 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 6353 | typedef PACKED_PRE struct PACKED_POST |
| 6354 | { |
| 6355 | tSirMacSSid ssId; |
| 6356 | tANI_U8 currAPbssid[HAL_MAC_ADDR_LEN]; |
| 6357 | tANI_U32 authentication; |
| 6358 | tEdType encryption; |
| 6359 | tEdType mcencryption; |
| 6360 | tANI_U8 ChannelCount; |
| 6361 | tANI_U8 ChannelCache[WLAN_HAL_ROAM_SCAN_MAX_CHANNELS]; |
| 6362 | }tRoamNetworkType; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6363 | |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 6364 | typedef PACKED_PRE struct PACKED_POST |
| 6365 | { |
| 6366 | tANI_U8 mdiePresent; |
| 6367 | tANI_U16 mobilityDomain; |
| 6368 | }tMobilityDomainInfo; |
| 6369 | |
| 6370 | typedef PACKED_PRE struct PACKED_POST { |
| 6371 | eAniBoolean RoamScanOffloadEnabled; |
| 6372 | tANI_S8 LookupThreshold; |
| 6373 | tANI_U8 RoamRssiDiff; |
| 6374 | tANI_U8 ChannelCacheType; |
| 6375 | tANI_U8 Command; |
| 6376 | tANI_U8 StartScanReason; |
| 6377 | tANI_U16 NeighborScanTimerPeriod; |
| 6378 | tANI_U16 NeighborRoamScanRefreshPeriod; |
| 6379 | tANI_U16 NeighborScanChannelMinTime; |
| 6380 | tANI_U16 NeighborScanChannelMaxTime; |
| 6381 | tANI_U16 EmptyRefreshScanPeriod; |
| 6382 | tANI_U8 ValidChannelCount; |
| 6383 | tANI_U8 ValidChannelList[WLAN_HAL_ROAM_SCAN_MAX_CHANNELS]; |
Varun Reddy Yeturu | a4cec9f | 2014-02-27 15:19:47 -0800 | [diff] [blame] | 6384 | eAniBoolean IsESEEnabled; |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 6385 | |
| 6386 | tANI_U16 us24GProbeSize; |
| 6387 | tANI_U8 a24GProbeTemplate[WLAN_HAL_ROAM_SCAN_MAX_PROBE_SIZE]; |
| 6388 | tANI_U16 us5GProbeSize; |
| 6389 | tANI_U8 a5GProbeTemplate[WLAN_HAL_ROAM_SCAN_MAX_PROBE_SIZE]; |
| 6390 | /* Add Reserved bytes */ |
Varun Reddy Yeturu | 4a231fb | 2013-05-22 13:11:28 -0700 | [diff] [blame] | 6391 | tANI_U8 nProbes; |
| 6392 | tANI_U16 HomeAwayTime; |
Sameer Thalappil | 71c7820 | 2013-11-05 14:22:09 -0800 | [diff] [blame] | 6393 | eAniBoolean MAWCEnabled; |
Varun Reddy Yeturu | 4b263b3 | 2014-01-09 15:21:31 -0800 | [diff] [blame] | 6394 | tANI_S8 RxSensitivityThreshold; |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 6395 | tANI_U8 RoamOffloadEnabled; |
| 6396 | tANI_U8 PMK[WLAN_HAL_ROAM_SACN_PMK_SIZE]; |
| 6397 | tANI_U8 Prefer5GHz; |
| 6398 | tANI_U8 RoamRssiCatGap; |
| 6399 | tANI_U8 Select5GHzMargin; |
Sreelakshmi Konamki | 24ebdca | 2017-05-29 15:48:36 +0530 | [diff] [blame] | 6400 | tANI_U8 WeakZoneRssiThresholdForRoam; |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 6401 | tANI_U8 ReservedBytes[WLAN_HAL_ROAM_SCAN_RESERVED_BYTES]; |
| 6402 | tRoamNetworkType ConnectedNetwork; |
| 6403 | tMobilityDomainInfo MDID; |
| 6404 | } tRoamCandidateListParams, * tpRoamCandidateListParams; |
| 6405 | |
| 6406 | typedef PACKED_PRE struct PACKED_POST |
| 6407 | { |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6408 | tHalMsgHeader header; |
| 6409 | tRoamCandidateListParams RoamScanOffloadNetwListParams; |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 6410 | } tSetRoamScanOffloadReq, *tpRoamScanOffloadReq; |
| 6411 | |
| 6412 | typedef PACKED_PRE struct PACKED_POST |
| 6413 | { |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6414 | tHalMsgHeader header; |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 6415 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6416 | /* status of the request - just to indicate that PNO has acknowledged |
| 6417 | * the request and will start scanning */ |
| 6418 | tANI_U32 status; |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 6419 | } tSetRoamOffloadScanResp, *tpSetRoamOffloadScanResp; |
| 6420 | #endif |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6421 | |
| 6422 | /* |
| 6423 | Preferred network list response |
| 6424 | */ |
| 6425 | typedef PACKED_PRE struct PACKED_POST |
| 6426 | { |
| 6427 | tHalMsgHeader header; |
| 6428 | |
| 6429 | /* status of the request - just to indicate that PNO has acknowledged |
| 6430 | * the request and will start scanning*/ |
| 6431 | tANI_U32 status; |
| 6432 | } tSetPrefNetwListResp, *tpSetPrefNetwListResp; |
| 6433 | |
| 6434 | /* |
| 6435 | Preferred network indication parameters |
| 6436 | */ |
| 6437 | typedef PACKED_PRE struct PACKED_POST { |
| 6438 | |
| 6439 | /*Network that was found with the highest RSSI*/ |
| 6440 | tSirMacSSid ssId; |
| 6441 | |
| 6442 | /*Indicates the RSSI */ |
| 6443 | tANI_U8 rssi; |
| 6444 | |
| 6445 | //The MPDU frame length of a beacon or probe rsp. data is the start of the frame |
| 6446 | tANI_U16 frameLength; |
| 6447 | |
| 6448 | } tPrefNetwFoundParams, * tpPrefNetwFoundParams; |
| 6449 | |
| 6450 | /* |
| 6451 | Preferred network found indication |
| 6452 | */ |
| 6453 | typedef PACKED_PRE struct PACKED_POST { |
| 6454 | |
| 6455 | tHalMsgHeader header; |
| 6456 | tPrefNetwFoundParams prefNetwFoundParams; |
| 6457 | } tPrefNetwFoundInd, *tpPrefNetwFoundInd; |
| 6458 | |
| 6459 | |
| 6460 | typedef PACKED_PRE struct PACKED_POST { |
| 6461 | |
| 6462 | /*RSSI Threshold*/ |
| 6463 | tANI_U8 ucRssiThreshold; |
| 6464 | |
| 6465 | } tRssiFilterParams, * tpRssiFilterParams; |
| 6466 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6467 | /* |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6468 | RSSI Filter request |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6469 | */ |
| 6470 | typedef PACKED_PRE struct PACKED_POST |
| 6471 | { |
| 6472 | tHalMsgHeader header; |
| 6473 | tRssiFilterParams prefRSSIFilterParams; |
| 6474 | } tSetRssiFilterReq, *tpSetRssiFilterReq; |
| 6475 | |
| 6476 | /* |
| 6477 | Set RSSI filter resp |
| 6478 | */ |
| 6479 | typedef PACKED_PRE struct PACKED_POST{ |
| 6480 | tHalMsgHeader header; |
| 6481 | /*status of the request */ |
| 6482 | tANI_U32 status; |
| 6483 | } tSetRssiFilterResp, *tpSetRssiFilterResp; |
| 6484 | /* |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6485 | Update scan params |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6486 | */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6487 | typedef PACKED_PRE struct PACKED_POST |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6488 | { |
| 6489 | |
| 6490 | /*Host setting for 11d*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6491 | tANI_U8 b11dEnabled; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6492 | |
| 6493 | /*Lets PNO know that host has determined the regulatory domain*/ |
| 6494 | tANI_U8 b11dResolved; |
| 6495 | |
| 6496 | /*Channels on which PNO is allowed to scan*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6497 | tANI_U8 ucChannelCount; |
| 6498 | tANI_U8 aChannels[WLAN_HAL_PNO_MAX_NETW_CHANNELS]; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6499 | |
| 6500 | /*Minimum channel time*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6501 | tANI_U16 usActiveMinChTime; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6502 | |
| 6503 | /*Maximum channel time*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6504 | tANI_U16 usActiveMaxChTime; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6505 | |
| 6506 | /*Minimum channel time*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6507 | tANI_U16 usPassiveMinChTime; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6508 | |
| 6509 | /*Maximum channel time*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6510 | tANI_U16 usPassiveMaxChTime; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6511 | |
| 6512 | /*Cb State*/ |
| 6513 | ePhyChanBondState cbState; |
| 6514 | |
| 6515 | } tUpdateScanParams, * tpUpdateScanParams; |
| 6516 | |
| 6517 | /* |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6518 | Update scan params |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6519 | */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6520 | typedef PACKED_PRE struct PACKED_POST |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6521 | { |
| 6522 | |
| 6523 | /*Host setting for 11d*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6524 | tANI_U8 b11dEnabled; |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6525 | |
| 6526 | /*Lets PNO know that host has determined the regulatory domain*/ |
| 6527 | tANI_U8 b11dResolved; |
| 6528 | |
| 6529 | /*Channels on which PNO is allowed to scan*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6530 | tANI_U8 ucChannelCount; |
| 6531 | tANI_U8 aChannels[WLAN_HAL_PNO_MAX_NETW_CHANNELS_EX]; |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6532 | |
| 6533 | /*Minimum channel time*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6534 | tANI_U16 usActiveMinChTime; |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6535 | |
| 6536 | /*Maximum channel time*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6537 | tANI_U16 usActiveMaxChTime; |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6538 | |
| 6539 | /*Minimum channel time*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6540 | tANI_U16 usPassiveMinChTime; |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6541 | |
| 6542 | /*Maximum channel time*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6543 | tANI_U16 usPassiveMaxChTime; |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6544 | |
| 6545 | /*Cb State*/ |
| 6546 | ePhyChanBondState cbState; |
| 6547 | |
| 6548 | } tUpdateScanParamsEx, * tpUpdateScanParamsEx; |
| 6549 | |
| 6550 | /* |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6551 | Update scan params - sent from host to PNO |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6552 | to be used during PNO scanning |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6553 | */ |
| 6554 | typedef PACKED_PRE struct PACKED_POST{ |
| 6555 | |
| 6556 | tHalMsgHeader header; |
| 6557 | tUpdateScanParams scanParams; |
| 6558 | } tUpdateScanParamsReq, *tpUpdateScanParamsReq; |
| 6559 | |
| 6560 | /* |
| 6561 | Update scan params - sent from host to PNO |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6562 | to be used during PNO scanning |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6563 | */ |
| 6564 | typedef PACKED_PRE struct PACKED_POST{ |
| 6565 | |
| 6566 | tHalMsgHeader header; |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6567 | tUpdateScanParamsEx scanParams; |
| 6568 | } tUpdateScanParamsReqEx, *tpUpdateScanParamsReqEx; |
| 6569 | |
| 6570 | /* |
| 6571 | Update scan params - sent from host to PNO |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6572 | to be used during PNO scanning |
Pratik Bhalgat | d440459 | 2012-11-22 17:49:14 +0530 | [diff] [blame] | 6573 | */ |
| 6574 | typedef PACKED_PRE struct PACKED_POST{ |
| 6575 | |
| 6576 | tHalMsgHeader header; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6577 | |
| 6578 | /*status of the request */ |
| 6579 | tANI_U32 status; |
| 6580 | |
| 6581 | } tUpdateScanParamsResp, *tpUpdateScanParamsResp; |
| 6582 | |
| 6583 | /*--------------------------------------------------------------------------- |
| 6584 | * WLAN_HAL_SET_TX_PER_TRACKING_REQ |
| 6585 | *--------------------------------------------------------------------------*/ |
| 6586 | typedef PACKED_PRE struct PACKED_POST |
| 6587 | { |
| 6588 | tANI_U8 ucTxPerTrackingEnable; /* 0: disable, 1:enable */ |
| 6589 | tANI_U8 ucTxPerTrackingPeriod; /* Check period, unit is sec. */ |
| 6590 | tANI_U8 ucTxPerTrackingRatio; /* (Fail TX packet)/(Total TX packet) ratio, the unit is 10%. */ |
| 6591 | tANI_U32 uTxPerTrackingWatermark; /* A watermark of check number, once the tx packet exceed this number, we do the check, default is 5 */ |
| 6592 | } tHalTxPerTrackingReqParam, *tpHalTxPerTrackingReqParam; |
| 6593 | |
| 6594 | typedef PACKED_PRE struct PACKED_POST |
| 6595 | { |
| 6596 | tHalMsgHeader header; |
| 6597 | tHalTxPerTrackingReqParam txPerTrackingParams; |
| 6598 | } tHalSetTxPerTrackingReqMsg, *tpHalSetTxPerTrackingReqMsg; |
| 6599 | |
| 6600 | /*--------------------------------------------------------------------------- |
| 6601 | * WLAN_HAL_SET_TX_PER_TRACKING_RSP |
| 6602 | *--------------------------------------------------------------------------*/ |
| 6603 | typedef PACKED_PRE struct PACKED_POST |
| 6604 | { |
| 6605 | /* success or failure */ |
| 6606 | tANI_U32 status; |
| 6607 | } tHalTxPerTrackingRspParams, *tpHalTxPerTrackingRspParams; |
| 6608 | |
| 6609 | typedef PACKED_PRE struct PACKED_POST |
| 6610 | { |
| 6611 | tHalMsgHeader header; |
| 6612 | tHalTxPerTrackingRspParams txPerTrackingRspParams; |
| 6613 | } tHalSetTxPerTrackingRspMsg, *tpHalSetTxPerTrackingRspMsg; |
| 6614 | |
| 6615 | /*--------------------------------------------------------------------------- |
| 6616 | * WLAN_HAL_TX_PER_HIT_IND |
| 6617 | *--------------------------------------------------------------------------*/ |
| 6618 | typedef PACKED_PRE struct PACKED_POST |
| 6619 | { |
| 6620 | tHalMsgHeader header; |
| 6621 | }tTxPerHitIndMsg, *tpTxPerHitIndMsg; |
| 6622 | |
| 6623 | /*--------------------------------------------------------------------------- |
| 6624 | *******************Packet Filtering Definitions Begin******************* |
| 6625 | *--------------------------------------------------------------------------*/ |
| 6626 | #define HAL_PROTOCOL_DATA_LEN 8 |
| 6627 | #define HAL_MAX_NUM_MULTICAST_ADDRESS 240 |
| 6628 | #define HAL_MAX_NUM_FILTERS 20 |
| 6629 | #define HAL_MAX_CMP_PER_FILTER 10 |
| 6630 | |
| 6631 | typedef enum |
| 6632 | { |
| 6633 | HAL_RCV_FILTER_TYPE_INVALID, |
| 6634 | HAL_RCV_FILTER_TYPE_FILTER_PKT, |
| 6635 | HAL_RCV_FILTER_TYPE_BUFFER_PKT, |
| 6636 | HAL_RCV_FILTER_TYPE_MAX_ENUM_SIZE |
| 6637 | }tHalReceivePacketFilterType; |
| 6638 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6639 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6640 | { |
| 6641 | HAL_FILTER_PROTO_TYPE_INVALID, |
| 6642 | HAL_FILTER_PROTO_TYPE_MAC, |
| 6643 | HAL_FILTER_PROTO_TYPE_ARP, |
| 6644 | HAL_FILTER_PROTO_TYPE_IPV4, |
| 6645 | HAL_FILTER_PROTO_TYPE_IPV6, |
| 6646 | HAL_FILTER_PROTO_TYPE_UDP, |
| 6647 | HAL_FILTER_PROTO_TYPE_MAX |
| 6648 | }tHalRcvPktFltProtocolType; |
| 6649 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6650 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6651 | { |
| 6652 | HAL_FILTER_CMP_TYPE_INVALID, |
| 6653 | HAL_FILTER_CMP_TYPE_EQUAL, |
| 6654 | HAL_FILTER_CMP_TYPE_MASK_EQUAL, |
| 6655 | HAL_FILTER_CMP_TYPE_NOT_EQUAL, |
| 6656 | HAL_FILTER_CMP_TYPE_MAX |
| 6657 | }tHalRcvPktFltCmpFlagType; |
| 6658 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6659 | typedef PACKED_PRE struct PACKED_POST |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6660 | { |
| 6661 | tANI_U8 protocolLayer; |
| 6662 | tANI_U8 cmpFlag; |
| 6663 | tANI_U16 dataLength; /* Length of the data to compare */ |
| 6664 | tANI_U8 dataOffset; /* from start of the respective frame header */ |
| 6665 | tANI_U8 reserved; /* Reserved field */ |
| 6666 | tANI_U8 compareData[HAL_PROTOCOL_DATA_LEN]; /* Data to compare */ |
| 6667 | tANI_U8 dataMask[HAL_PROTOCOL_DATA_LEN]; /* Mask to be applied on the received packet data before compare */ |
| 6668 | }tHalRcvPktFilterParams, *tpHalRcvPktFilterParams; |
| 6669 | |
| 6670 | typedef PACKED_PRE struct PACKED_POST |
| 6671 | { |
| 6672 | tANI_U8 filterId; |
| 6673 | tANI_U8 filterType; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6674 | tANI_U8 numParams; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6675 | tANI_U32 coalesceTime; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6676 | tHalRcvPktFilterParams paramsData[1]; |
| 6677 | }tHalRcvPktFilterCfgType, *tpHalRcvPktFilterCfgType; |
| 6678 | |
| 6679 | typedef PACKED_PRE struct PACKED_POST |
| 6680 | { |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6681 | tANI_U8 filterId; |
| 6682 | tANI_U8 filterType; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6683 | tANI_U8 numParams; |
| 6684 | tANI_U32 coleasceTime; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6685 | tANI_U8 bssIdx; |
| 6686 | tHalRcvPktFilterParams paramsData[1]; |
| 6687 | }tHalSessionizedRcvPktFilterCfgType, *tpHalSessionizedRcvPktFilterCfgType; |
| 6688 | |
| 6689 | typedef PACKED_PRE struct PACKED_POST |
| 6690 | { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6691 | tHalMsgHeader header; |
| 6692 | tHalRcvPktFilterCfgType pktFilterCfg; |
| 6693 | } tHalSetRcvPktFilterReqMsg, *tpHalSetRcvPktFilterReqMsg; |
| 6694 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6695 | typedef PACKED_PRE struct PACKED_POST |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6696 | { |
| 6697 | tANI_U8 dataOffset; /* from start of the respective frame header */ |
| 6698 | tANI_U32 cMulticastAddr; |
| 6699 | tSirMacAddr multicastAddr[HAL_MAX_NUM_MULTICAST_ADDRESS]; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6700 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6701 | } tHalRcvFltMcAddrListType, *tpHalRcvFltMcAddrListType; |
| 6702 | |
| 6703 | typedef PACKED_PRE struct PACKED_POST |
| 6704 | { |
| 6705 | /* success or failure */ |
| 6706 | tANI_U32 status; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6707 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6708 | } tHalSetPktFilterRspParams, *tpHalSetPktFilterRspParams; |
| 6709 | |
| 6710 | typedef PACKED_PRE struct PACKED_POST |
| 6711 | { |
| 6712 | tHalMsgHeader header; |
| 6713 | tHalSetPktFilterRspParams pktFilterRspParams; |
| 6714 | } tHalSetPktFilterRspMsg, *tpHalSetPktFilterRspMsg; |
| 6715 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6716 | typedef PACKED_PRE struct PACKED_POST |
| 6717 | { |
| 6718 | tANI_U8 bssIdx; |
| 6719 | } tHalRcvFltPktMatchCntReqParams, *tpHalRcvFltPktMatchCntReqParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6720 | |
| 6721 | typedef PACKED_PRE struct PACKED_POST |
| 6722 | { |
| 6723 | tHalMsgHeader header; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6724 | tHalRcvFltPktMatchCntReqParams pktMatchCntReqParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6725 | } tHalRcvFltPktMatchCntReqMsg, *tpHalRcvFltPktMatchCntReqMsg; |
| 6726 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6727 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6728 | typedef PACKED_PRE struct PACKED_POST |
| 6729 | { |
| 6730 | tANI_U8 filterId; |
| 6731 | tANI_U32 matchCnt; |
| 6732 | } tHalRcvFltPktMatchCnt; |
| 6733 | typedef PACKED_PRE struct PACKED_POST |
| 6734 | { |
| 6735 | /* Success or Failure */ |
| 6736 | tANI_U32 status; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6737 | tANI_U32 matchCnt; |
| 6738 | tHalRcvFltPktMatchCnt filterMatchCnt[HAL_MAX_NUM_FILTERS]; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6739 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6740 | } tHalRcvFltPktMatchRspParams, *tptHalRcvFltPktMatchRspParams; |
| 6741 | |
| 6742 | typedef PACKED_PRE struct PACKED_POST |
| 6743 | { |
| 6744 | tHalMsgHeader header; |
| 6745 | tHalRcvFltPktMatchRspParams fltPktMatchRspParams; |
| 6746 | } tHalRcvFltPktMatchCntRspMsg, *tpHalRcvFltPktMatchCntRspMsg; |
| 6747 | |
| 6748 | typedef PACKED_PRE struct PACKED_POST |
| 6749 | { |
| 6750 | tANI_U32 status; /* only valid for response message */ |
| 6751 | tANI_U8 filterId; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6752 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6753 | }tHalRcvFltPktClearParam, *tpHalRcvFltPktClearParam; |
| 6754 | |
| 6755 | typedef PACKED_PRE struct PACKED_POST |
| 6756 | { |
| 6757 | tHalMsgHeader header; |
| 6758 | tHalRcvFltPktClearParam filterClearParam; |
| 6759 | } tHalRcvFltPktClearReqMsg, *tpHalRcvFltPktClearReqMsg; |
| 6760 | |
| 6761 | typedef PACKED_PRE struct PACKED_POST |
| 6762 | { |
| 6763 | tHalMsgHeader header; |
| 6764 | tHalRcvFltPktClearParam filterClearParam; |
| 6765 | } tHalRcvFltPktClearRspMsg, *tpHalRcvFltPktClearRspMsg; |
| 6766 | |
| 6767 | typedef PACKED_PRE struct PACKED_POST |
| 6768 | { |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6769 | tANI_U32 status; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6770 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6771 | }tHalRcvFltPktSetMcListRspType, *tpHalRcvFltPktSetMcListRspType; |
| 6772 | |
| 6773 | typedef PACKED_PRE struct PACKED_POST |
| 6774 | { |
| 6775 | tHalMsgHeader header; |
| 6776 | tHalRcvFltMcAddrListType mcAddrList; |
| 6777 | } tHalRcvFltPktSetMcListReqMsg, *tpHalRcvFltPktSetMcListReqMsg; |
| 6778 | |
| 6779 | typedef PACKED_PRE struct PACKED_POST |
| 6780 | { |
| 6781 | tHalMsgHeader header; |
| 6782 | tHalRcvFltPktSetMcListRspType rspParam; |
| 6783 | } tHalRcvFltPktSetMcListRspMsg, *tpHalRcvFltPktSetMcListRspMsg; |
| 6784 | |
| 6785 | |
| 6786 | /*--------------------------------------------------------------------------- |
| 6787 | *******************Packet Filtering Definitions End******************* |
| 6788 | *--------------------------------------------------------------------------*/ |
| 6789 | |
Shailender Karmuchi | 07f514b | 2013-06-25 01:14:09 -0700 | [diff] [blame] | 6790 | /* |
| 6791 | * There are two versions of this message |
| 6792 | * Version 1 : Base version |
| 6793 | * Current version : Base version + Max LI modulated DTIM |
| 6794 | */ |
| 6795 | typedef PACKED_PRE struct PACKED_POST |
| 6796 | { |
| 6797 | /* Ignore DTIM */ |
| 6798 | tANI_U32 uIgnoreDTIM; |
| 6799 | |
| 6800 | /*DTIM Period*/ |
| 6801 | tANI_U32 uDTIMPeriod; |
| 6802 | |
| 6803 | /* Listen Interval */ |
| 6804 | tANI_U32 uListenInterval; |
| 6805 | |
| 6806 | /* Broadcast Multicast Filter */ |
| 6807 | tANI_U32 uBcastMcastFilter; |
| 6808 | |
| 6809 | /* Beacon Early Termination */ |
| 6810 | tANI_U32 uEnableBET; |
| 6811 | |
| 6812 | /* Beacon Early Termination Interval */ |
| 6813 | tANI_U32 uBETInterval; |
| 6814 | }tSetPowerParamsVer1Type, *tpSetPowerParamsVer1Type; |
| 6815 | |
| 6816 | typedef PACKED_PRE struct PACKED_POST |
| 6817 | { |
| 6818 | tHalMsgHeader header; |
| 6819 | tSetPowerParamsVer1Type powerParams; |
| 6820 | } tSetPowerParamsVer1ReqMsg, *tpSetPowerParamsVer1ReqMsg; |
| 6821 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6822 | typedef PACKED_PRE struct PACKED_POST |
| 6823 | { |
| 6824 | /* Ignore DTIM */ |
| 6825 | tANI_U32 uIgnoreDTIM; |
| 6826 | |
| 6827 | /*DTIM Period*/ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6828 | tANI_U32 uDTIMPeriod; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6829 | |
| 6830 | /* Listen Interval */ |
| 6831 | tANI_U32 uListenInterval; |
| 6832 | |
| 6833 | /* Broadcast Multicast Filter */ |
| 6834 | tANI_U32 uBcastMcastFilter; |
| 6835 | |
| 6836 | /* Beacon Early Termination */ |
| 6837 | tANI_U32 uEnableBET; |
| 6838 | |
| 6839 | /* Beacon Early Termination Interval */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6840 | tANI_U32 uBETInterval; |
Yue Ma | e5ec19c | 2013-05-15 13:52:40 -0700 | [diff] [blame] | 6841 | |
| 6842 | /* MAX LI for modulated DTIM */ |
| 6843 | tANI_U32 uMaxLIModulatedDTIM; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6844 | }tSetPowerParamsType, *tpSetPowerParamsType; |
| 6845 | |
| 6846 | typedef PACKED_PRE struct PACKED_POST |
| 6847 | { |
| 6848 | tHalMsgHeader header; |
| 6849 | tSetPowerParamsType powerParams; |
| 6850 | } tSetPowerParamsReqMsg, *tpSetPowerParamsReqMsg; |
| 6851 | |
| 6852 | typedef PACKED_PRE struct PACKED_POST{ |
| 6853 | |
| 6854 | tHalMsgHeader header; |
| 6855 | |
| 6856 | /*status of the request */ |
| 6857 | tANI_U32 status; |
| 6858 | |
| 6859 | } tSetPowerParamsResp, *tpSetPowerParamsResp; |
| 6860 | |
| 6861 | /*--------------------------------------------------------------------------- |
| 6862 | ****************Capability bitmap exchange definitions and macros starts************* |
| 6863 | *--------------------------------------------------------------------------*/ |
| 6864 | |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 6865 | typedef enum { |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6866 | MCC = 0, |
| 6867 | P2P = 1, |
| 6868 | DOT11AC = 2, |
| 6869 | SLM_SESSIONIZATION = 3, |
| 6870 | DOT11AC_OPMODE = 4, |
| 6871 | SAP32STA = 5, |
| 6872 | TDLS = 6, |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 6873 | P2P_GO_NOA_DECOUPLE_INIT_SCAN = 7, |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6874 | WLANACTIVE_OFFLOAD = 8, |
| 6875 | BEACON_OFFLOAD = 9, |
| 6876 | SCAN_OFFLOAD = 10, |
| 6877 | ROAM_OFFLOAD = 11, |
| 6878 | BCN_MISS_OFFLOAD = 12, |
| 6879 | STA_POWERSAVE = 13, |
| 6880 | STA_ADVANCED_PWRSAVE = 14, |
| 6881 | AP_UAPSD = 15, |
| 6882 | AP_DFS = 16, |
| 6883 | BLOCKACK = 17, |
| 6884 | PHY_ERR = 18, |
| 6885 | BCN_FILTER = 19, |
| 6886 | RTT = 20, |
| 6887 | RATECTRL = 21, |
| 6888 | WOW = 22, |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 6889 | WLAN_ROAM_SCAN_OFFLOAD = 23, |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6890 | SPECULATIVE_PS_POLL = 24, |
| 6891 | SCAN_SCH = 25, |
Ravi Joshi | 9e8e7cd | 2013-07-31 14:54:08 -0700 | [diff] [blame] | 6892 | IBSS_HEARTBEAT_OFFLOAD = 26, |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6893 | WLAN_SCAN_OFFLOAD = 27, |
| 6894 | WLAN_PERIODIC_TX_PTRN = 28, |
| 6895 | ADVANCE_TDLS = 29, |
| 6896 | BATCH_SCAN = 30, |
Kanchanapally, Vidyullatha | d7fde90 | 2013-12-24 11:38:36 +0530 | [diff] [blame] | 6897 | FW_IN_TX_PATH = 31, |
Hardik Kantilal Patel | e104d63 | 2014-01-27 11:41:41 +0530 | [diff] [blame] | 6898 | EXTENDED_NSOFFLOAD_SLOT = 32, |
Sandeep Puligilla | 77bf84e | 2014-01-31 20:49:07 +0530 | [diff] [blame] | 6899 | CH_SWITCH_V1 = 33, |
| 6900 | HT40_OBSS_SCAN = 34, |
| 6901 | UPDATE_CHANNEL_LIST = 35, |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 6902 | WLAN_MCADDR_FLT = 36, |
| 6903 | WLAN_CH144 = 37, |
| 6904 | NAN = 38, |
Pradeep Reddy POTTETI | ed84fb9 | 2014-05-22 22:12:27 +0530 | [diff] [blame] | 6905 | TDLS_SCAN_COEXISTENCE = 39, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6906 | LINK_LAYER_STATS_MEAS = 40, |
| 6907 | MU_MIMO = 41, |
| 6908 | EXTENDED_SCAN = 42, |
Mihir Shete | 6553082 | 2014-08-07 11:57:40 +0530 | [diff] [blame] | 6909 | DYNAMIC_WMM_PS = 43, |
Siddharth Bhal | bd5efd7 | 2014-09-29 21:21:56 +0530 | [diff] [blame] | 6910 | MAC_SPOOFED_SCAN = 44, |
Mihir Shete | b4bcb31 | 2014-11-17 15:23:37 +0530 | [diff] [blame] | 6911 | BMU_ERROR_GENERIC_RECOVERY = 45, |
Abhishek Singh | 725c158 | 2014-11-24 11:47:48 +0530 | [diff] [blame] | 6912 | DISA = 46, |
| 6913 | FW_STATS = 47, |
Sachin Ahuja | 2b1c5f7 | 2014-11-25 17:20:26 +0530 | [diff] [blame] | 6914 | WPS_PRBRSP_TMPL = 48, |
Abhishek Singh | 073cee8 | 2014-11-26 14:55:26 +0530 | [diff] [blame] | 6915 | BCN_IE_FLT_DELTA = 49, |
Pradeep Reddy POTTETI | 88a23ee | 2015-02-25 18:17:39 +0530 | [diff] [blame] | 6916 | TDLS_OFF_CHANNEL = 51, |
Padma, Santhosh Kumar | cfbcf94 | 2015-12-08 16:07:47 +0530 | [diff] [blame] | 6917 | RTT3 = 52, |
Siddharth Bhal | f5c9c00 | 2015-03-16 14:44:20 +0530 | [diff] [blame] | 6918 | MGMT_FRAME_LOGGING = 53, |
Ganesh Kondabattini | b18b329 | 2015-03-16 16:59:26 +0530 | [diff] [blame] | 6919 | ENHANCED_TXBD_COMPLETION = 54, |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 6920 | LOGGING_ENHANCEMENT = 55, |
Padma, Santhosh Kumar | 2ac5499 | 2015-10-12 18:20:58 +0530 | [diff] [blame] | 6921 | EXT_SCAN_ENHANCED = 56, |
c_manjee | cfd1efb | 2015-09-25 19:32:34 +0530 | [diff] [blame] | 6922 | MEMORY_DUMP_SUPPORTED = 57, |
Sushant Kaushik | 3320057 | 2015-08-05 16:46:20 +0530 | [diff] [blame] | 6923 | PER_PKT_STATS_SUPPORTED = 58, |
Mukul Sharma | 03f8649 | 2015-10-20 16:10:13 +0530 | [diff] [blame] | 6924 | EXT_LL_STAT = 60, |
Arun Khandavalli | afc1643 | 2015-10-16 20:11:31 +0530 | [diff] [blame] | 6925 | WIFI_CONFIG = 61, |
Mahesh A Saptasagar | f5ebe41 | 2015-12-18 19:01:44 +0530 | [diff] [blame] | 6926 | ANTENNA_DIVERSITY_SELECTION = 62, |
Kapil Gupta | c104363 | 2016-06-25 00:23:30 +0530 | [diff] [blame] | 6927 | PER_BASED_ROAMING = 63, |
Agrawal Ashish | 1d75aac | 2016-12-12 12:36:59 +0530 | [diff] [blame] | 6928 | SAP_MODE_WOW = 64, |
| 6929 | SAP_OFFLOADS = 65, |
Sravan Kumar Kairam | 9ba5f5b | 2016-12-13 13:50:46 +0530 | [diff] [blame] | 6930 | SAP_BUFF_ALLOC = 66, |
Padma, Santhosh Kumar | f42bd3e | 2017-01-20 14:59:02 +0530 | [diff] [blame] | 6931 | MAKE_BEFORE_BREAK = 67, |
Anurag Chouhan | ce0f082 | 2017-01-24 15:44:26 +0530 | [diff] [blame] | 6932 | NUD_DEBUG = 68, |
Sreelakshmi Konamki | 622ea61 | 2017-05-15 18:58:56 +0530 | [diff] [blame] | 6933 | /* 69 reserved for FATAL_EVENT_LOGGING */ |
| 6934 | /* 70 reserved for WIFI_DUAL_BAND_ENABLE */ |
| 6935 | PROBE_RSP_TEMPLATE_VER1 = 71, |
Rajeev Kumar Sirasanagandla | ba4d769 | 2017-12-19 13:32:36 +0530 | [diff] [blame] | 6936 | STA_MONITOR_SCC = 72, |
Ajit Vaishya | 1d5e41a | 2020-04-18 18:36:11 +0530 | [diff] [blame^] | 6937 | BSSID_BLACKLIST = 73, |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6938 | MAX_FEATURE_SUPPORTED = 128, |
Anand Kumar | 012623a | 2013-01-11 17:00:00 -0800 | [diff] [blame] | 6939 | } placeHolderInCapBitmap; |
| 6940 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6941 | typedef PACKED_PRE struct PACKED_POST{ |
| 6942 | |
| 6943 | tANI_U32 featCaps[4]; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6944 | } tWlanFeatCaps, *tpWlanFeatCaps; |
| 6945 | |
| 6946 | typedef PACKED_PRE struct PACKED_POST{ |
| 6947 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 6948 | tHalMsgHeader header; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6949 | tWlanFeatCaps wlanFeatCaps; |
| 6950 | |
| 6951 | } tWlanFeatCapsMsg, *tpWlanFeatCapsMsg; |
| 6952 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6953 | #define IS_MCC_SUPPORTED_BY_HOST (!!(halMsg_GetHostWlanFeatCaps(MCC))) |
| 6954 | #define IS_SLM_SESSIONIZATION_SUPPORTED_BY_HOST (!!(halMsg_GetHostWlanFeatCaps(SLM_SESSIONIZATION))) |
Viral Modi | e50b1d4 | 2012-12-10 13:04:52 -0800 | [diff] [blame] | 6955 | #define IS_FEATURE_SUPPORTED_BY_HOST(featEnumValue) (!!halMsg_GetHostWlanFeatCaps(featEnumValue)) |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 6956 | #define IS_WLANACTIVE_OFFLOAD_SUPPORTED_BY_HOST (!!(halMsg_GetHostWlanFeatCaps(WLANACTIVE_OFFLOAD))) |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6957 | #define IS_WLAN_ROAM_SCAN_OFFLOAD_SUPPORTED_BY_HOST (!!(halMsg_GetHostWlanFeatCaps(WLAN_ROAM_SCAN_OFFLOAD))) |
Ravi Joshi | 9e8e7cd | 2013-07-31 14:54:08 -0700 | [diff] [blame] | 6958 | #define IS_IBSS_HEARTBEAT_OFFLOAD_SUPPORTED_BY_HOST (!!(halMsg_GetHostWlanFeatCaps(IBSS_HEARTBEAT_OFFLOAD))) |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 6959 | #define IS_SCAN_OFFLOAD_SUPPORTED_BY_HOST (!!(halMsg_GetHostWlanFeatCaps(WLAN_SCAN_OFFLOAD))) |
Kalikinkar dhara | 3487ffc | 2014-02-07 13:12:19 -0800 | [diff] [blame] | 6960 | #define IS_CH_SWITCH_V1_SUPPORTED_BY_HOST ((!!(halMsg_GetHostWlanFeatCaps(CH_SWITCH_V1)))) |
Pradeep Reddy POTTETI | ed84fb9 | 2014-05-22 22:12:27 +0530 | [diff] [blame] | 6961 | #define IS_TDLS_SCAN_COEXISTENCE_SUPPORTED_BY_HOST ((!!(halMsg_GetHostWlanFeatCaps(TDLS_SCAN_COEXISTENCE)))) |
Mihir Shete | 6553082 | 2014-08-07 11:57:40 +0530 | [diff] [blame] | 6962 | #define IS_DYNAMIC_WMM_PS_SUPPORTED_BY_HOST ((!!(halMsg_GetHostWlanFeatCaps(DYNAMIC_WMM_PS)))) |
Siddharth Bhal | bd5efd7 | 2014-09-29 21:21:56 +0530 | [diff] [blame] | 6963 | #define IS_MAC_SPOOF_SCAN_SUPPORTED_BY_HOST ((!!(halMsg_GetHostWlanFeatCaps(MAC_SPOOFED_SCAN)))) |
Mihir Shete | b4bcb31 | 2014-11-17 15:23:37 +0530 | [diff] [blame] | 6964 | #define IS_NEW_BMU_ERROR_RECOVERY_SUPPORTED_BY_HOST ((!!(halMsg_GetHostWlanFeatCaps(BMU_ERROR_GENERIC_RECOVERY)))) |
Ganesh Kondabattini | b18b329 | 2015-03-16 16:59:26 +0530 | [diff] [blame] | 6965 | #define IS_ENHANCED_TXBD_COMPLETION_SUPPORTED_BY_HOST ((!!(halMsg_GetHostWlanFeatCaps(ENHANCED_TXBD_COMPLETION)))) |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 6966 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6967 | tANI_U8 halMsg_GetHostWlanFeatCaps(tANI_U8 feat_enum_value); |
| 6968 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6969 | #define setFeatCaps(a,b) { tANI_U32 arr_index, bit_index; \ |
Mohit Khanna | 3d4e410 | 2012-09-11 17:12:11 -0700 | [diff] [blame] | 6970 | if ((b)<=127) { \ |
| 6971 | arr_index = (b)/32; \ |
| 6972 | bit_index = (b)%32; \ |
Shailender Karmuchi | 07f514b | 2013-06-25 01:14:09 -0700 | [diff] [blame] | 6973 | if(arr_index < 4) \ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6974 | (a)->featCaps[arr_index] |= (1<<bit_index); \ |
| 6975 | } \ |
| 6976 | } |
| 6977 | #define getFeatCaps(a,b,c) { tANI_U32 arr_index, bit_index; \ |
Mohit Khanna | 3d4e410 | 2012-09-11 17:12:11 -0700 | [diff] [blame] | 6978 | if ((b)<=127) { \ |
| 6979 | arr_index = (b)/32; \ |
| 6980 | bit_index = (b)%32; \ |
| 6981 | (c) = ((a)->featCaps[arr_index] & (1<<bit_index))?1:0; \ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6982 | } \ |
| 6983 | } |
| 6984 | #define clearFeatCaps(a,b) { tANI_U32 arr_index, bit_index; \ |
Mohit Khanna | 3d4e410 | 2012-09-11 17:12:11 -0700 | [diff] [blame] | 6985 | if ((b)<=127) { \ |
| 6986 | arr_index = (b)/32; \ |
| 6987 | bit_index = (b)%32; \ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 6988 | (a)->featCaps[arr_index] &= ~(1<<bit_index); \ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6989 | } \ |
| 6990 | } |
| 6991 | |
| 6992 | /*--------------------------------------------------------------------------- |
| 6993 | * WLAN_HAL_WAKE_REASON_IND |
| 6994 | *--------------------------------------------------------------------------*/ |
| 6995 | |
| 6996 | /* status codes to help debug rekey failures */ |
| 6997 | typedef enum |
| 6998 | { |
| 6999 | WLAN_HAL_GTK_REKEY_STATUS_SUCCESS = 0, |
| 7000 | WLAN_HAL_GTK_REKEY_STATUS_NOT_HANDLED = 1, /* rekey detected, but not handled */ |
| 7001 | WLAN_HAL_GTK_REKEY_STATUS_MIC_ERROR = 2, /* MIC check error on M1 */ |
| 7002 | WLAN_HAL_GTK_REKEY_STATUS_DECRYPT_ERROR = 3, /* decryption error on M1 */ |
| 7003 | WLAN_HAL_GTK_REKEY_STATUS_REPLAY_ERROR = 4, /* M1 replay detected */ |
| 7004 | WLAN_HAL_GTK_REKEY_STATUS_MISSING_KDE = 5, /* missing GTK key descriptor in M1 */ |
| 7005 | WLAN_HAL_GTK_REKEY_STATUS_MISSING_IGTK_KDE = 6, /* missing iGTK key descriptor in M1 */ |
| 7006 | WLAN_HAL_GTK_REKEY_STATUS_INSTALL_ERROR = 7, /* key installation error */ |
| 7007 | WLAN_HAL_GTK_REKEY_STATUS_IGTK_INSTALL_ERROR = 8, /* iGTK key installation error */ |
| 7008 | WLAN_HAL_GTK_REKEY_STATUS_RESP_TX_ERROR = 9, /* GTK rekey M2 response TX error */ |
| 7009 | |
| 7010 | WLAN_HAL_GTK_REKEY_STATUS_GEN_ERROR = 255 /* non-specific general error */ |
| 7011 | } tGTKRekeyStatus; |
| 7012 | |
| 7013 | /* wake reason types */ |
| 7014 | typedef enum |
| 7015 | { |
| 7016 | WLAN_HAL_WAKE_REASON_NONE = 0, |
| 7017 | WLAN_HAL_WAKE_REASON_MAGIC_PACKET = 1, /* magic packet match */ |
| 7018 | WLAN_HAL_WAKE_REASON_PATTERN_MATCH = 2, /* host defined pattern match */ |
| 7019 | WLAN_HAL_WAKE_REASON_EAPID_PACKET = 3, /* EAP-ID frame detected */ |
| 7020 | WLAN_HAL_WAKE_REASON_EAPOL4WAY_PACKET = 4, /* start of EAPOL 4-way handshake detected */ |
| 7021 | WLAN_HAL_WAKE_REASON_NETSCAN_OFFL_MATCH = 5, /* network scan offload match */ |
| 7022 | WLAN_HAL_WAKE_REASON_GTK_REKEY_STATUS = 6, /* GTK rekey status wakeup (see status) */ |
| 7023 | WLAN_HAL_WAKE_REASON_BSS_CONN_LOST = 7, /* BSS connection lost */ |
| 7024 | } tWakeReasonType; |
| 7025 | |
| 7026 | /* |
| 7027 | Wake Packet which is saved at tWakeReasonParams.DataStart |
| 7028 | This data is sent for any wake reasons that involve a packet-based wakeup : |
| 7029 | |
| 7030 | WLAN_HAL_WAKE_REASON_TYPE_MAGIC_PACKET |
| 7031 | WLAN_HAL_WAKE_REASON_TYPE_PATTERN_MATCH |
| 7032 | WLAN_HAL_WAKE_REASON_TYPE_EAPID_PACKET |
| 7033 | WLAN_HAL_WAKE_REASON_TYPE_EAPOL4WAY_PACKET |
| 7034 | WLAN_HAL_WAKE_REASON_TYPE_GTK_REKEY_STATUS |
| 7035 | |
| 7036 | The information is provided to the host for auditing and debug purposes |
| 7037 | |
| 7038 | */ |
| 7039 | |
| 7040 | /* |
| 7041 | Wake reason indication parameters |
| 7042 | */ |
| 7043 | typedef PACKED_PRE struct PACKED_POST |
| 7044 | { |
| 7045 | uint32 ulReason; /* see tWakeReasonType */ |
| 7046 | uint32 ulReasonArg; /* argument specific to the reason type */ |
| 7047 | uint32 ulStoredDataLen; /* length of optional data stored in this message, in case |
| 7048 | HAL truncates the data (i.e. data packets) this length |
| 7049 | will be less than the actual length */ |
| 7050 | uint32 ulActualDataLen; /* actual length of data */ |
| 7051 | uint8 aDataStart[1]; /* variable length start of data (length == storedDataLen) |
| 7052 | see specific wake type */ |
| 7053 | } tWakeReasonParams, *tpWakeReasonParams; |
| 7054 | |
| 7055 | /* |
| 7056 | Wake reason indication |
| 7057 | */ |
| 7058 | typedef PACKED_PRE struct PACKED_POST |
| 7059 | { |
| 7060 | tHalMsgHeader header; |
| 7061 | tWakeReasonParams wakeReasonParams; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 7062 | tANI_U32 uBssIdx : 8; |
| 7063 | tANI_U32 bReserved : 24; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7064 | } tHalWakeReasonInd, *tpHalWakeReasonInd; |
| 7065 | |
| 7066 | /*--------------------------------------------------------------------------- |
| 7067 | * WLAN_HAL_GTK_OFFLOAD_REQ |
| 7068 | *--------------------------------------------------------------------------*/ |
| 7069 | |
| 7070 | #define HAL_GTK_KEK_BYTES 16 |
| 7071 | #define HAL_GTK_KCK_BYTES 16 |
| 7072 | |
| 7073 | #define WLAN_HAL_GTK_OFFLOAD_FLAGS_DISABLE (1 << 0) |
| 7074 | |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 7075 | #define GTK_SET_BSS_KEY_TAG 0x1234AA55 |
| 7076 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7077 | typedef PACKED_PRE struct PACKED_POST |
| 7078 | { |
| 7079 | tANI_U32 ulFlags; /* optional flags */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 7080 | tANI_U8 aKCK[HAL_GTK_KCK_BYTES]; /* Key confirmation key */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7081 | tANI_U8 aKEK[HAL_GTK_KEK_BYTES]; /* key encryption key */ |
| 7082 | tANI_U64 ullKeyReplayCounter; /* replay counter */ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 7083 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7084 | } tHalGtkOffloadReqParams, *tpHalGtkOffloadReqParams; |
| 7085 | |
| 7086 | typedef PACKED_PRE struct PACKED_POST |
| 7087 | { |
| 7088 | tHalMsgHeader header; |
| 7089 | tHalGtkOffloadReqParams gtkOffloadReqParams; |
| 7090 | } tHalGtkOffloadReqMsg, *tpHalGtkOffloadReqMsg; |
| 7091 | |
| 7092 | /*--------------------------------------------------------------------------- |
| 7093 | * WLAN_HAL_GTK_OFFLOAD_RSP |
| 7094 | *--------------------------------------------------------------------------*/ |
| 7095 | typedef PACKED_PRE struct PACKED_POST |
| 7096 | { |
| 7097 | tANI_U32 ulStatus; /* success or failure */ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 7098 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7099 | } tHalGtkOffloadRspParams, *tpHalGtkOffloadRspParams; |
| 7100 | |
| 7101 | typedef PACKED_PRE struct PACKED_POST |
| 7102 | { |
| 7103 | tHalMsgHeader header; |
| 7104 | tHalGtkOffloadRspParams gtkOffloadRspParams; |
| 7105 | } tHalGtkOffloadRspMsg, *tpHalGtkOffloadRspMsg; |
| 7106 | |
| 7107 | |
| 7108 | /*--------------------------------------------------------------------------- |
| 7109 | * WLAN_HAL_GTK_OFFLOAD_GETINFO_REQ |
| 7110 | *--------------------------------------------------------------------------*/ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 7111 | typedef PACKED_PRE struct PACKED_POST |
| 7112 | { |
| 7113 | tANI_U8 bssIdx; |
| 7114 | |
| 7115 | } tHalGtkOffloadGetInfoReqParams, *tptHalGtkOffloadGetInfoReqParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7116 | |
| 7117 | typedef PACKED_PRE struct PACKED_POST |
| 7118 | { |
| 7119 | tHalMsgHeader header; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 7120 | tHalGtkOffloadGetInfoReqParams gtkOffloadGetInfoReqParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7121 | } tHalGtkOffloadGetInfoReqMsg, *tpHalGtkOffloadGetInfoReqMsg; |
| 7122 | |
| 7123 | /*--------------------------------------------------------------------------- |
| 7124 | * WLAN_HAL_GTK_OFFLOAD_GETINFO_RSP |
| 7125 | *--------------------------------------------------------------------------*/ |
| 7126 | typedef PACKED_PRE struct PACKED_POST |
| 7127 | { |
| 7128 | tANI_U32 ulStatus; /* success or failure */ |
| 7129 | tANI_U32 ulLastRekeyStatus; /* last rekey status when the rekey was offloaded */ |
| 7130 | tANI_U64 ullKeyReplayCounter; /* current replay counter value */ |
| 7131 | tANI_U32 ulTotalRekeyCount; /* total rekey attempts */ |
| 7132 | tANI_U32 ulGTKRekeyCount; /* successful GTK rekeys */ |
| 7133 | tANI_U32 ulIGTKRekeyCount; /* successful iGTK rekeys */ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 7134 | tANI_U8 bssIdx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7135 | } tHalGtkOffloadGetInfoRspParams, *tptHalGtkOffloadGetInfoRspParams; |
| 7136 | |
| 7137 | typedef PACKED_PRE struct PACKED_POST |
| 7138 | { |
| 7139 | tHalMsgHeader header; |
| 7140 | tHalGtkOffloadGetInfoRspParams gtkOffloadGetInfoRspParams; |
| 7141 | } tHalGtkOffloadGetInfoRspMsg, *tpHalGtkOffloadGetInfoRspMsg; |
| 7142 | |
Madan Mohan Koyyalamudi | e0c135d | 2013-03-05 16:59:44 -0800 | [diff] [blame] | 7143 | /*--------------------------------------------------------------------------- |
| 7144 | * WLAN_HAL_DHCP_IND |
| 7145 | *--------------------------------------------------------------------------*/ |
| 7146 | typedef PACKED_PRE struct PACKED_POST |
| 7147 | { |
| 7148 | /*Indicates the device mode which indicates about the DHCP activity */ |
| 7149 | tANI_U8 device_mode; |
| 7150 | tSirMacAddr macAddr; |
| 7151 | } tDHCPInfo, *tpDHCPInfo; |
| 7152 | |
| 7153 | typedef PACKED_PRE struct PACKED_POST |
| 7154 | { |
| 7155 | tHalMsgHeader header; |
| 7156 | tANI_U32 status; /* success or failure */ |
| 7157 | } tDHCPIndStatus, *tpDHCPIndstatus; |
| 7158 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7159 | /* |
| 7160 | Thermal Mitigation mode of operation. |
| 7161 | HAL_THERMAL_MITIGATION_MODE_0 - Based on AMPDU disabling aggregation |
| 7162 | HAL_THERMAL_MITIGATION_MODE_1 - Based on AMPDU disabling aggregation and |
| 7163 | reducing transmit power |
| 7164 | HAL_THERMAL_MITIGATION_MODE_2 - Not supported |
| 7165 | */ |
| 7166 | typedef enum |
| 7167 | { |
| 7168 | HAL_THERMAL_MITIGATION_MODE_INVALID = -1, |
| 7169 | HAL_THERMAL_MITIGATION_MODE_0, |
| 7170 | HAL_THERMAL_MITIGATION_MODE_1, |
| 7171 | HAL_THERMAL_MITIGATION_MODE_2, |
| 7172 | HAL_THERMAL_MITIGATION_MODE_MAX = WLAN_HAL_MAX_ENUM_SIZE, |
| 7173 | }tHalThermalMitigationModeType; |
| 7174 | //typedef tANI_S16 tHalThermalMitigationModeType; |
| 7175 | |
| 7176 | /* |
| 7177 | Thermal Mitigation level. |
| 7178 | Note the levels are incremental i.e HAL_THERMAL_MITIGATION_LEVEL_2 = |
| 7179 | HAL_THERMAL_MITIGATION_LEVEL_0 + HAL_THERMAL_MITIGATION_LEVEL_1 |
| 7180 | |
| 7181 | HAL_THERMAL_MITIGATION_LEVEL_0 - lowest level of thermal mitigation. This |
| 7182 | level indicates normal mode of operation |
| 7183 | HAL_THERMAL_MITIGATION_LEVEL_1 - 1st level of thermal mitigation |
| 7184 | HAL_THERMAL_MITIGATION_LEVEL_2 - 2nd level of thermal mitigation |
| 7185 | HAL_THERMAL_MITIGATION_LEVEL_3 - 3rd level of thermal mitigation |
| 7186 | HAL_THERMAL_MITIGATION_LEVEL_4 - 4th level of thermal mitigation |
| 7187 | */ |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 7188 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7189 | { |
| 7190 | HAL_THERMAL_MITIGATION_LEVEL_INVALID = -1, |
| 7191 | HAL_THERMAL_MITIGATION_LEVEL_0, |
| 7192 | HAL_THERMAL_MITIGATION_LEVEL_1, |
| 7193 | HAL_THERMAL_MITIGATION_LEVEL_2, |
| 7194 | HAL_THERMAL_MITIGATION_LEVEL_3, |
| 7195 | HAL_THERMAL_MITIGATION_LEVEL_4, |
| 7196 | HAL_THERMAL_MITIGATION_LEVEL_MAX = WLAN_HAL_MAX_ENUM_SIZE, |
| 7197 | }tHalThermalMitigationLevelType; |
| 7198 | //typedef tANI_S16 tHalThermalMitigationLevelType; |
| 7199 | |
| 7200 | typedef PACKED_PRE struct PACKED_POST |
| 7201 | { |
| 7202 | /* Thermal Mitigation Operation Mode */ |
| 7203 | tHalThermalMitigationModeType thermalMitMode; |
| 7204 | |
| 7205 | /* Thermal Mitigation Level */ |
| 7206 | tHalThermalMitigationLevelType thermalMitLevel; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 7207 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7208 | }tSetThermalMitgationType, *tpSetThermalMitgationType; |
| 7209 | |
| 7210 | /* WLAN_HAL_SET_THERMAL_MITIGATION_REQ */ |
| 7211 | typedef PACKED_PRE struct PACKED_POST |
| 7212 | { |
| 7213 | tHalMsgHeader header; |
| 7214 | tSetThermalMitgationType thermalMitParams; |
| 7215 | } tSetThermalMitigationReqMsg, *tpSetThermalMitigationReqMsg; |
| 7216 | |
| 7217 | typedef PACKED_PRE struct PACKED_POST{ |
| 7218 | |
| 7219 | tHalMsgHeader header; |
| 7220 | |
| 7221 | /*status of the request */ |
| 7222 | tANI_U32 status; |
| 7223 | |
| 7224 | } tSetThermalMitigationResp, *tpSetThermalMitigationResp; |
| 7225 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 7226 | /* Per STA Class B Statistics. Class B statistics are STA TX/RX stats |
Madan Mohan Koyyalamudi | 01cba04 | 2013-01-10 21:56:05 -0800 | [diff] [blame] | 7227 | provided to FW from Host via periodic messages */ |
| 7228 | typedef PACKED_PRE struct PACKED_POST { |
| 7229 | /* TX stats */ |
| 7230 | uint32 txBytesPushed; |
| 7231 | uint32 txPacketsPushed; |
| 7232 | |
| 7233 | /* RX stats */ |
| 7234 | uint32 rxBytesRcvd; |
| 7235 | uint32 rxPacketsRcvd; |
| 7236 | uint32 rxTimeTotal; |
| 7237 | } tStaStatsClassB, *tpStaStatsClassB; |
| 7238 | |
| 7239 | typedef PACKED_PRE struct PACKED_POST { |
| 7240 | |
| 7241 | /* Duration over which this stats was collected */ |
| 7242 | tANI_U32 duration; |
| 7243 | |
| 7244 | /* Per STA Stats */ |
| 7245 | tStaStatsClassB staStatsClassB[HAL_NUM_STA]; |
| 7246 | } tStatsClassBIndParams, *tpStatsClassBIndParams; |
| 7247 | |
| 7248 | typedef PACKED_PRE struct PACKED_POST { |
| 7249 | |
| 7250 | tHalMsgHeader header; |
| 7251 | |
| 7252 | /* Class B Stats */ |
| 7253 | tStatsClassBIndParams statsClassBIndParams; |
| 7254 | } tStatsClassBInd, *tpStatsClassBInd; |
| 7255 | |
Gopichand Nakkala | 175de4b | 2013-05-06 12:02:17 +0530 | [diff] [blame] | 7256 | /*Wifi Proximity paramters in AP mode*/ |
| 7257 | #ifdef FEATURE_WIFI_PROXIMITY |
| 7258 | |
| 7259 | typedef PACKED_PRE struct PACKED_POST{ |
| 7260 | |
| 7261 | tANI_U8 wifiProximityChannel; |
| 7262 | tANI_U32 wifiProximityDuration; |
| 7263 | tANI_U32 wifiProximityInterval; |
| 7264 | tANI_U32 wifiProximityMode; |
| 7265 | tANI_U32 wifiProximityStatus; |
| 7266 | tSirMacAddr bssId; |
| 7267 | tSirMacSSid ssId; |
| 7268 | |
| 7269 | } tSetWifiProximityReqParam, *tpSetWifiProximityReqParam; |
| 7270 | |
| 7271 | typedef PACKED_PRE struct PACKED_POST |
| 7272 | { |
| 7273 | tHalMsgHeader header; |
| 7274 | |
| 7275 | tSetWifiProximityReqParam wifiProximityReqParams; |
| 7276 | |
| 7277 | }tSetWifiProximityReqMsg, *tpSetWifiProximityReqMsg; |
| 7278 | |
| 7279 | /*WLAN_HAL_WIFI_PROXIMITY_RSP*/ |
| 7280 | typedef PACKED_PRE struct PACKED_POST{ |
| 7281 | |
| 7282 | tHalMsgHeader header; |
| 7283 | |
| 7284 | /*status of the request */ |
| 7285 | tANI_U32 status; |
| 7286 | |
| 7287 | } tSetWifiProximityRspMsg, *tpSetWifiProxmityRspMsg; |
| 7288 | |
| 7289 | #endif |
Shailender Karmuchi | 07f514b | 2013-06-25 01:14:09 -0700 | [diff] [blame] | 7290 | |
| 7291 | #ifdef FEATURE_SPECULATIVE_PS_POLL |
| 7292 | /*--------------------------------------------------------------------------- |
| 7293 | * WLAN_HAL_START_SPECULATIVE_PS_POLLS_REQ |
| 7294 | *--------------------------------------------------------------------------*/ |
| 7295 | typedef PACKED_PRE struct PACKED_POST |
| 7296 | { |
| 7297 | tANI_U8 bssIdx; |
| 7298 | tANI_U16 serviceInterval; |
| 7299 | tANI_U16 suspendInterval; |
| 7300 | tANI_U8 acMask; |
| 7301 | } tHalStartSpecPsPollReqParams, *tpHalStartSpecPsPollReqParams; |
| 7302 | |
| 7303 | typedef PACKED_PRE struct PACKED_POST |
| 7304 | { |
| 7305 | tHalMsgHeader header; |
| 7306 | tHalStartSpecPsPollReqParams specPsPollReq; |
| 7307 | } tHalStartSpecPsPollReqMsg, *tpHalStartSpecPsPollReqMsg; |
| 7308 | |
| 7309 | /*--------------------------------------------------------------------------- |
| 7310 | * WLAN_HAL_START_SPECULATIVE_PS_POLLS_RSP |
| 7311 | *--------------------------------------------------------------------------*/ |
| 7312 | typedef PACKED_PRE struct PACKED_POST |
| 7313 | { |
| 7314 | /* success or failure */ |
| 7315 | tANI_U32 status; |
| 7316 | tANI_U8 bssIdx; |
| 7317 | } tHalStartSpecPsPollRspParams, *tpHalStartSpecPsPollRspParams; |
| 7318 | |
| 7319 | typedef PACKED_PRE struct PACKED_POST |
| 7320 | { |
| 7321 | tHalMsgHeader header; |
| 7322 | tHalStartSpecPsPollRspParams startSpecPsPollRspParams; |
| 7323 | } tHalStartSpecPsPollRspMsg, *tpHalStartSpecPsPollRspMsg; |
| 7324 | |
| 7325 | /*--------------------------------------------------------------------------- |
| 7326 | * WLAN_HAL_STOP_SPECULATIVE_PS_POLLS_IND |
| 7327 | *--------------------------------------------------------------------------*/ |
| 7328 | typedef PACKED_PRE struct PACKED_POST |
| 7329 | { |
| 7330 | tHalMsgHeader header; |
| 7331 | tANI_U8 bssIdx; |
| 7332 | } tHalStopSpecPsPollsIndMsg, *tpHalStopSpecPsPollsIndMsg; |
| 7333 | #endif |
| 7334 | |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 7335 | #ifdef FEATURE_WLAN_TDLS |
Madan Mohan Koyyalamudi | 85aa8db | 2013-08-28 12:24:38 +0530 | [diff] [blame] | 7336 | #define HAL_MAX_SUPP_CHANNELS 128 |
| 7337 | #define HAL_MAX_SUPP_OPER_CLASSES 32 |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 7338 | /*--------------------------------------------------------------------------- |
| 7339 | * WLAN_HAL_TDLS_LINK_ESTABLISHED_REQ |
| 7340 | *-------------------------------------------------------------------------*/ |
| 7341 | typedef PACKED_PRE struct PACKED_POST |
| 7342 | { |
| 7343 | /*STA Index*/ |
| 7344 | tANI_U16 staIdx; |
| 7345 | |
| 7346 | /* if this is 1, self is initiator and peer is reponder */ |
| 7347 | tANI_U8 bIsResponder; |
| 7348 | |
| 7349 | /* QoS Info */ |
| 7350 | tANI_U8 acVOUAPSDFlag:1; |
| 7351 | tANI_U8 acVIUAPSDFlag:1; |
| 7352 | tANI_U8 acBKUAPSDFlag:1; |
| 7353 | tANI_U8 acBEUAPSDFlag:1; |
| 7354 | tANI_U8 aAck:1; |
| 7355 | tANI_U8 maxServicePeriodLength:2; |
| 7356 | tANI_U8 moreDataAck:1; |
| 7357 | |
| 7358 | /*TDLS Peer U-APSD Buffer STA Support*/ |
| 7359 | tANI_U8 TPUBufferStaSupport; |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7360 | |
| 7361 | /*TDLS off channel related params */ |
| 7362 | tANI_U8 tdlsOffChannelSupport; |
Madan Mohan Koyyalamudi | 85aa8db | 2013-08-28 12:24:38 +0530 | [diff] [blame] | 7363 | tANI_U8 peerCurrOperClass; |
| 7364 | tANI_U8 selfCurrOperClass; |
| 7365 | tANI_U8 validChannelsLen; |
| 7366 | tANI_U8 validChannels[HAL_MAX_SUPP_CHANNELS]; |
| 7367 | tANI_U8 validOperClassesLen; |
| 7368 | tANI_U8 validOperClasses[HAL_MAX_SUPP_OPER_CLASSES]; |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 7369 | }tTDLSLinkEstablishedType, *tpTDLSLinkEstablishedType; |
| 7370 | |
| 7371 | typedef PACKED_PRE struct PACKED_POST |
| 7372 | { |
| 7373 | tHalMsgHeader header; |
| 7374 | tTDLSLinkEstablishedType tdlsLinkEstablishedParams; |
| 7375 | } tTDLSLinkEstablishedReqMsg, *tpTDLSLinkEstablishedReqMsg; |
| 7376 | |
| 7377 | /*--------------------------------------------------------------------------- |
| 7378 | * WLAN_HAL_TDLS_LINK_ESTABLISHED_RSP |
| 7379 | *-------------------------------------------------------------------------*/ |
| 7380 | |
| 7381 | typedef PACKED_PRE struct PACKED_POST |
| 7382 | { |
| 7383 | tANI_U32 status; |
| 7384 | |
| 7385 | /*STA Index*/ |
| 7386 | tANI_U16 staIdx; |
| 7387 | } tTDLSLinkEstablishedResp, *tpTDLSLinkEstablishedResp; |
| 7388 | |
| 7389 | typedef PACKED_PRE struct PACKED_POST |
| 7390 | { |
| 7391 | tHalMsgHeader header; |
| 7392 | tTDLSLinkEstablishedResp TDLSLinkEstablishedRespParams; |
| 7393 | } tTDLSLinkEstablishedRespMsg, *tpTDLSLinkEstablishedRespMsg; |
Atul Mittal | 53419ed | 2014-08-03 19:41:23 +0530 | [diff] [blame] | 7394 | /*--------------------------------------------------------------------------- |
| 7395 | + * WLAN_HAL_TDLS_CHAN_SWITCH_REQ |
| 7396 | + *-------------------------------------------------------------------------*/ |
| 7397 | typedef PACKED_PRE struct PACKED_POST |
| 7398 | { |
| 7399 | /*STA Index*/ |
| 7400 | tANI_U16 staIdx; |
| 7401 | /* if this is 1, self is initiator otherwise responder only*/ |
| 7402 | tANI_U8 isOffchannelInitiator; |
| 7403 | /*TDLS off channel related params */ |
| 7404 | tANI_U8 targetOperClass; |
| 7405 | tANI_U8 targetChannel; |
| 7406 | tANI_U8 secondaryChannelOffset; |
| 7407 | tANI_U8 reserved[32]; |
| 7408 | }tTDLSChanSwitchReqType, *tpTDLSChanSwitchReqType; |
| 7409 | |
| 7410 | typedef PACKED_PRE struct PACKED_POST |
| 7411 | { |
| 7412 | tHalMsgHeader header; |
| 7413 | tTDLSChanSwitchReqType tdlsChanSwitchParams; |
| 7414 | } tTDLSChanSwitchReqMsg, *tpTDLSChanSwitchReqMsg; |
| 7415 | /*--------------------------------------------------------------------------- |
| 7416 | * WLAN_HAL_TDLS_CHAN_SWITCH_RSP |
| 7417 | *-------------------------------------------------------------------------*/ |
| 7418 | |
| 7419 | typedef PACKED_PRE struct PACKED_POST |
| 7420 | { |
| 7421 | tANI_U32 status; |
| 7422 | /*STA Index*/ |
| 7423 | tANI_U16 staIdx; |
| 7424 | } tTDLSChanSwitchResp, *tpTDLSChanSwitchResp; |
| 7425 | |
| 7426 | typedef PACKED_PRE struct PACKED_POST |
| 7427 | { |
| 7428 | tHalMsgHeader header; |
| 7429 | tTDLSChanSwitchResp tdlsChanSwitchRespParams; |
| 7430 | } tTDLSChanSwitchRespMsg, *tpTDLSChanSwitchRespMsg; |
| 7431 | |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 7432 | |
| 7433 | /*--------------------------------------------------------------------------- |
| 7434 | * WLAN_HAL_TDLS_LINK_TEARDOWN_REQ |
| 7435 | *-------------------------------------------------------------------------*/ |
| 7436 | typedef PACKED_PRE struct PACKED_POST |
| 7437 | { |
| 7438 | /*STA Index*/ |
| 7439 | tANI_U16 staIdx; |
| 7440 | }tTDLSLinkTeardownType, *tpTDLSLinkTeardownType; |
| 7441 | |
| 7442 | typedef PACKED_PRE struct PACKED_POST |
| 7443 | { |
| 7444 | tHalMsgHeader header; |
| 7445 | tTDLSLinkTeardownType tdlsLinkTeardownParams; |
| 7446 | } tTDLSLinkTeardownReqMsg, *tpTDLSLinkTeardownReqMsg; |
| 7447 | |
| 7448 | /*--------------------------------------------------------------------------- |
| 7449 | * WLAN_HAL_TDLS_LINK_TEARDOWN_RSP |
| 7450 | *-------------------------------------------------------------------------*/ |
| 7451 | |
| 7452 | typedef PACKED_PRE struct PACKED_POST |
| 7453 | { |
| 7454 | tANI_U32 status; |
| 7455 | |
| 7456 | /*STA Index*/ |
| 7457 | tANI_U16 staIdx; |
| 7458 | } tTDLSLinkTeardownResp, *tpTDLSLinkTeardownResp; |
| 7459 | |
| 7460 | typedef PACKED_PRE struct PACKED_POST |
| 7461 | { |
| 7462 | tHalMsgHeader header; |
| 7463 | tTDLSLinkTeardownResp TDLSLinkTeardownRespParams; |
| 7464 | } tTDLSLinkTeardownRespMsg, *tpTDLSLinkTeardownRespMsg; |
| 7465 | |
| 7466 | /*--------------------------------------------------------------------------- |
| 7467 | *WLAN_HAL_TDLS_IND |
| 7468 | *--------------------------------------------------------------------------*/ |
| 7469 | |
| 7470 | typedef PACKED_PRE struct PACKED_POST |
| 7471 | { |
| 7472 | tANI_U16 assocId; |
| 7473 | tANI_U16 staIdx; |
| 7474 | tANI_U16 status; |
| 7475 | tANI_U16 reasonCode; |
| 7476 | }tTdlsIndParams, *tpTdlsIndParams; |
| 7477 | |
| 7478 | |
| 7479 | typedef PACKED_PRE struct PACKED_POST |
| 7480 | { |
| 7481 | tHalMsgHeader header; |
| 7482 | tTdlsIndParams tdlsIndParams; |
| 7483 | }tTdlsIndMsg, *tpTdlsIndMsg; |
| 7484 | |
| 7485 | #endif |
| 7486 | |
Ravi Joshi | 9e8e7cd | 2013-07-31 14:54:08 -0700 | [diff] [blame] | 7487 | /*--------------------------------------------------------------------------- |
| 7488 | *WLAN_HAL_IBSS_PEER_INACTIVITY_IND |
| 7489 | *--------------------------------------------------------------------------*/ |
| 7490 | |
| 7491 | typedef PACKED_PRE struct PACKED_POST |
| 7492 | { |
| 7493 | tANI_U8 bssIdx; |
| 7494 | tANI_U8 staIdx; |
| 7495 | tSirMacAddr staAddr; |
| 7496 | }tIbssPeerInactivityIndParams, *tpIbssPeerInactivityIndParams; |
| 7497 | |
| 7498 | |
| 7499 | typedef PACKED_PRE struct PACKED_POST |
| 7500 | { |
| 7501 | tHalMsgHeader header; |
| 7502 | tIbssPeerInactivityIndParams ibssPeerInactivityIndParams; |
| 7503 | }tIbssPeerInactivityIndMsg, *tpIbssPeerInactivityIndMsg; |
| 7504 | |
| 7505 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7506 | /*********** Scan Offload Related Structures *************/ |
| 7507 | #define HAL_NUM_SCAN_SSID 10 |
| 7508 | #define HAL_NUM_SCAN_BSSID 4 |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7509 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7510 | /* |
| 7511 | * Enumetation to indicate scan type (active/passive) |
| 7512 | */ |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7513 | typedef enum |
| 7514 | { |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7515 | eSIR_PASSIVE_SCAN, |
| 7516 | eSIR_ACTIVE_SCAN = WLAN_HAL_MAX_ENUM_SIZE, |
| 7517 | } tSirScanType; |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7518 | |
| 7519 | typedef PACKED_PRE struct PACKED_POST |
| 7520 | { |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7521 | tANI_U8 numBssid; |
| 7522 | tSirMacAddr bssid[HAL_NUM_SCAN_BSSID]; |
| 7523 | tANI_U8 numSsid; |
| 7524 | tSirMacSSid ssid[HAL_NUM_SCAN_SSID]; |
| 7525 | tANI_BOOLEAN hiddenSsid; |
| 7526 | tSirMacAddr selfMacAddr; |
| 7527 | tSirBssType bssType; |
| 7528 | tSirScanType scanType; |
| 7529 | tANI_U32 minChannelTime; |
| 7530 | tANI_U32 maxChannelTime; |
| 7531 | tANI_BOOLEAN p2pSearch; |
| 7532 | tANI_U8 channelCount; |
| 7533 | tANI_U8 channels[WLAN_HAL_ROAM_SCAN_MAX_CHANNELS]; |
| 7534 | tANI_U16 ieFieldLen; |
| 7535 | tANI_U8 ieField[1]; |
| 7536 | }tScanOffloadReqType, *tpScanOffloadReqType; |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7537 | |
| 7538 | /*--------------------------------------------------------------------------- |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7539 | * WLAN_HAL_START_SCAN_OFFLOAD_REQ |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7540 | *-------------------------------------------------------------------------*/ |
| 7541 | typedef PACKED_PRE struct PACKED_POST |
| 7542 | { |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7543 | tHalMsgHeader header; |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7544 | tScanOffloadReqType scanOffloadParams; |
| 7545 | } tHalStartScanOffloadReqMsg, *tpHalStartScanOffloadReqMsg; |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7546 | |
| 7547 | /*--------------------------------------------------------------------------- |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7548 | * WLAN_HAL_START_SCAN_OFFLOAD_RSP |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7549 | *-------------------------------------------------------------------------*/ |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7550 | typedef PACKED_PRE struct PACKED_POST |
| 7551 | { |
| 7552 | tHalMsgHeader header; |
| 7553 | |
| 7554 | /*status of the request - just to indicate SO has acknowledged |
| 7555 | * * the request and will start scanning*/ |
| 7556 | tANI_U32 status; |
| 7557 | } tHalStartScanOffloadRspMsg, *tpHalStartScanOffloadRspMsg; |
| 7558 | |
| 7559 | /*--------------------------------------------------------------------------- |
| 7560 | * WLAN_HAL_STOP_SCAN_OFFLOAD_REQ |
| 7561 | *-------------------------------------------------------------------------*/ |
| 7562 | typedef PACKED_PRE struct PACKED_POST |
| 7563 | { |
| 7564 | tHalMsgHeader header; |
| 7565 | } tHalStopScanOffloadReqMsg, *tpHalStopScanOffloadReqMsg; |
| 7566 | |
| 7567 | /*--------------------------------------------------------------------------- |
| 7568 | * WLAN_HAL_STOP_SCAN_OFFLOAD_RSP |
| 7569 | *-------------------------------------------------------------------------*/ |
| 7570 | typedef PACKED_PRE struct PACKED_POST |
| 7571 | { |
| 7572 | tHalMsgHeader header; |
| 7573 | |
| 7574 | /*status of the request - just to indicate SO has acknowledged |
| 7575 | the request and will start scanning*/ |
| 7576 | tANI_U32 status; |
| 7577 | } tHalStopScanOffloadRspMsg, *tpHalStopScanOffloadRspMsg; |
| 7578 | |
| 7579 | /* |
| 7580 | * Enumetation of scan events indicated by firmware to the host |
| 7581 | */ |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7582 | typedef enum |
| 7583 | { |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7584 | WLAN_HAL_SCAN_EVENT_STARTED = 0x1, /* Scan command accepted by FW */ |
| 7585 | WLAN_HAL_SCAN_EVENT_COMPLETED = 0x2, /* Scan has been completed by FW */ |
| 7586 | WLAN_HAL_SCAN_EVENT_BSS_CHANNEL = 0x4, /* FW is going to move to HOME channel */ |
| 7587 | WLAN_HAL_SCAN_EVENT_FOREIGN_CHANNEL = 0x8,/* FW is going to move to FORIEGN channel */ |
| 7588 | WLAN_HAL_SCAN_EVENT_DEQUEUED = 0x10, /* scan request got dequeued */ |
| 7589 | WLAN_HAL_SCAN_EVENT_PREEMPTED = 0x20, /* preempted by other high priority scan */ |
| 7590 | WLAN_HAL_SCAN_EVENT_START_FAILED = 0x40, /* scan start failed */ |
| 7591 | WLAN_HAL_SCAN_EVENT_RESTARTED = 0x80, /*scan restarted*/ |
| 7592 | WLAN_HAL_SCAN_EVENT_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 7593 | } tScanEventType; |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7594 | |
| 7595 | typedef PACKED_PRE struct PACKED_POST |
| 7596 | { |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7597 | tScanEventType event; |
| 7598 | tANI_U32 channel; |
| 7599 | tANI_U32 scanId; |
| 7600 | } tScanOffloadEventInfo; |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7601 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7602 | /*--------------------------------------------------------------------------- |
| 7603 | * WLAN_HAL_OFFLOAD_SCAN_EVENT_IND |
| 7604 | *-------------------------------------------------------------------------*/ |
| 7605 | typedef PACKED_PRE struct PACKED_POST |
| 7606 | { |
| 7607 | tHalMsgHeader header; |
| 7608 | tScanOffloadEventInfo scanOffloadInd; |
| 7609 | } tHalScanOffloadIndMsg, *tpHalScanOffloadIndMsg; |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7610 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7611 | typedef PACKED_PRE struct PACKED_POST { |
| 7612 | /** primary 20 MHz channel frequency in mhz */ |
| 7613 | tANI_U32 mhz; |
| 7614 | /** Center frequency 1 in MHz*/ |
| 7615 | tANI_U32 band_center_freq1; |
| 7616 | /** Center frequency 2 in MHz - valid only for 11acvht 80plus80 mode*/ |
| 7617 | tANI_U32 band_center_freq2; |
| 7618 | /* The first 26 bits are a bit mask to indicate any channel flags, |
| 7619 | (see WLAN_HAL_CHAN_FLAG*) |
| 7620 | The last 6 bits indicate the mode (see tChannelPhyModeType)*/ |
| 7621 | tANI_U32 channel_info; |
| 7622 | /** contains min power, max power, reg power and reg class id. */ |
| 7623 | tANI_U32 reg_info_1; |
| 7624 | /** contains antennamax */ |
| 7625 | tANI_U32 reg_info_2; |
| 7626 | } tUpdateChannelParam; |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7627 | |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7628 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7629 | typedef enum { |
| 7630 | WLAN_HAL_MODE_11A = 0, /* 11a Mode */ |
| 7631 | WLAN_HAL_MODE_11G = 1, /* 11b/g Mode */ |
| 7632 | WLAN_HAL_MODE_11B = 2, /* 11b Mode */ |
| 7633 | WLAN_HAL_MODE_11GONLY = 3, /* 11g only Mode */ |
| 7634 | WLAN_HAL_MODE_11NA_HT20 = 4, /* 11a HT20 mode */ |
| 7635 | WLAN_HAL_MODE_11NG_HT20 = 5, /* 11g HT20 mode */ |
| 7636 | WLAN_HAL_MODE_11NA_HT40 = 6, /* 11a HT40 mode */ |
| 7637 | WLAN_HAL_MODE_11NG_HT40 = 7, /* 11g HT40 mode */ |
| 7638 | WLAN_HAL_MODE_11AC_VHT20 = 8, |
| 7639 | WLAN_HAL_MODE_11AC_VHT40 = 9, |
| 7640 | WLAN_HAL_MODE_11AC_VHT80 = 10, |
| 7641 | WLAN_HAL_MODE_11AC_VHT20_2G = 11, |
| 7642 | WLAN_HAL_MODE_11AC_VHT40_2G = 12, |
| 7643 | WLAN_HAL_MODE_11AC_VHT80_2G = 13, |
| 7644 | WLAN_HAL_MODE_UNKNOWN = 14, |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7645 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7646 | } tChannelPhyModeType; |
| 7647 | |
| 7648 | #define WLAN_HAL_CHAN_FLAG_HT40_PLUS 6 |
| 7649 | #define WLAN_HAL_CHAN_FLAG_PASSIVE 7 |
| 7650 | #define WLAN_HAL_CHAN_ADHOC_ALLOWED 8 |
| 7651 | #define WLAN_HAL_CHAN_AP_DISABLED 9 |
| 7652 | #define WLAN_HAL_CHAN_FLAG_DFS 10 |
| 7653 | #define WLAN_HAL_CHAN_FLAG_ALLOW_HT 11 /* HT is allowed on this channel */ |
| 7654 | #define WLAN_HAL_CHAN_FLAG_ALLOW_VHT 12 /* VHT is allowed on this channel */ |
Manjunathappa Prakash | 67bd249 | 2014-02-07 14:34:29 -0800 | [diff] [blame] | 7655 | #define WLAN_HAL_CHAN_CHANGE_CAUSE_CSA 13 /* Indicate reason for channel switch */ |
| 7656 | |
| 7657 | #define WLAN_HAL_SET_CHANNEL_FLAG(pwlan_hal_update_channel,flag) do { \ |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 7658 | (pwlan_hal_update_channel)->info |= (1 << flag); \ |
Manjunathappa Prakash | 67bd249 | 2014-02-07 14:34:29 -0800 | [diff] [blame] | 7659 | } while(0) |
| 7660 | |
| 7661 | #define WLAN_HAL_GET_CHANNEL_FLAG(pwlan_hal_update_channel,flag) \ |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 7662 | (((pwlan_hal_update_channel)->info & (1 << flag)) >> flag) |
Manjunathappa Prakash | 67bd249 | 2014-02-07 14:34:29 -0800 | [diff] [blame] | 7663 | |
| 7664 | #define WLAN_HAL_SET_CHANNEL_MIN_POWER(pwlan_hal_update_channel,val) do { \ |
| 7665 | (pwlan_hal_update_channel)->reg_info_1 &= 0xffffff00; \ |
| 7666 | (pwlan_hal_update_channel)->reg_info_1 |= (val&0xff); \ |
| 7667 | } while(0) |
| 7668 | #define WLAN_HAL_GET_CHANNEL_MIN_POWER(pwlan_hal_update_channel) ((pwlan_hal_update_channel)->reg_info_1 & 0xff ) |
| 7669 | |
| 7670 | #define WLAN_HAL_SET_CHANNEL_MAX_POWER(pwlan_hal_update_channel,val) do { \ |
| 7671 | (pwlan_hal_update_channel)->reg_info_1 &= 0xffff00ff; \ |
| 7672 | (pwlan_hal_update_channel)->reg_info_1 |= ((val&0xff) << 8); \ |
| 7673 | } while(0) |
| 7674 | #define WLAN_HAL_GET_CHANNEL_MAX_POWER(pwlan_hal_update_channel) ( (((pwlan_hal_update_channel)->reg_info_1) >> 8) & 0xff ) |
| 7675 | |
| 7676 | #define WLAN_HAL_SET_CHANNEL_REG_POWER(pwlan_hal_update_channel,val) do { \ |
| 7677 | (pwlan_hal_update_channel)->reg_info_1 &= 0xff00ffff; \ |
| 7678 | (pwlan_hal_update_channel)->reg_info_1 |= ((val&0xff) << 16); \ |
| 7679 | } while(0) |
| 7680 | #define WLAN_HAL_GET_CHANNEL_REG_POWER(pwlan_hal_update_channel) ( (((pwlan_hal_update_channel)->reg_info_1) >> 16) & 0xff ) |
| 7681 | #define WLAN_HAL_SET_CHANNEL_REG_CLASSID(pwlan_hal_update_channel,val) do { \ |
| 7682 | (pwlan_hal_update_channel)->reg_info_1 &= 0x00ffffff; \ |
| 7683 | (pwlan_hal_update_channel)->reg_info_1 |= ((val&0xff) << 24); \ |
| 7684 | } while(0) |
| 7685 | #define WLAN_HAL_GET_CHANNEL_REG_CLASSID(pwlan_hal_update_channel) ( (((pwlan_hal_update_channel)->reg_info_1) >> 24) & 0xff ) |
| 7686 | |
| 7687 | #define WLAN_HAL_SET_CHANNEL_ANTENNA_MAX(pwlan_hal_update_channel,val) do { \ |
| 7688 | (pwlan_hal_update_channel)->reg_info_2 &= 0xffffff00; \ |
| 7689 | (pwlan_hal_update_channel)->reg_info_2 |= (val&0xff); \ |
| 7690 | } while(0) |
| 7691 | #define WLAN_HAL_GET_CHANNEL_ANTENNA_MAX(pwlan_hal_update_channel) ((pwlan_hal_update_channel)->reg_info_2 & 0xff ) |
| 7692 | |
| 7693 | #define WLAN_HAL_SET_CHANNEL_MAX_TX_POWER(pwlan_hal_update_channel,val) do { \ |
| 7694 | (pwlan_hal_update_channel)->reg_info_2 &= 0xffff00ff; \ |
| 7695 | (pwlan_hal_update_channel)->reg_info_2 |= ((val&0xff)<<8); \ |
| 7696 | } while(0) |
| 7697 | #define WLAN_HAL_GET_CHANNEL_MAX_TX_POWER(pwlan_hal_update_channel) ( (((pwlan_hal_update_channel)->reg_info_2)>>8) & 0xff ) |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7698 | |
| 7699 | typedef PACKED_PRE struct PACKED_POST |
| 7700 | { |
| 7701 | tANI_U8 numChan; |
| 7702 | tUpdateChannelParam chanParam[WLAN_HAL_ROAM_SCAN_MAX_CHANNELS]; |
| 7703 | } tUpdateChannelReqType; |
| 7704 | |
| 7705 | /*--------------------------------------------------------------------------- |
| 7706 | * WLAN_HAL_UPDATE_CHANNEL_LIST_REQ |
| 7707 | *-------------------------------------------------------------------------*/ |
| 7708 | typedef PACKED_PRE struct PACKED_POST |
| 7709 | { |
| 7710 | tHalMsgHeader header; |
| 7711 | tUpdateChannelReqType updateChannelParams; |
| 7712 | } tHalUpdateChannelReqMsg, *tpHalUpdateChannelReqMsg; |
| 7713 | |
| 7714 | /*--------------------------------------------------------------------------- |
| 7715 | * WLAN_HAL_UPDATE_CHANNEL_LIST_RSP |
| 7716 | *-------------------------------------------------------------------------*/ |
| 7717 | typedef PACKED_PRE struct PACKED_POST |
| 7718 | { |
| 7719 | tHalMsgHeader header; |
| 7720 | |
| 7721 | /*status of the request - just to indicate SO has acknowledged |
| 7722 | * * the request and will start scanning*/ |
| 7723 | tANI_U32 status; |
| 7724 | } tHalUpdateChannelRspMsg, *tpHalUpdateChannelRspMsg; |
| 7725 | |
| 7726 | |
| 7727 | /*--------------------------------------------------------------------------- |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 7728 | * WLAN_HAL_RMC_RULER_REQ |
| 7729 | *-------------------------------------------------------------------------*/ |
| 7730 | |
| 7731 | #define HAL_MAX_RMC_SESSIONS 2 |
| 7732 | |
| 7733 | #define HAL_NUM_MAX_RULERS 8 |
| 7734 | |
| 7735 | typedef enum |
| 7736 | { |
| 7737 | WLAN_HAL_SUGGEST_RULER, |
| 7738 | WLAN_HAL_BECOME_RULER, |
| 7739 | WLAN_HAL_RULER_CMD_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 7740 | }tRulerReqCmdType, tRulerRspCmdType; |
| 7741 | |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7742 | typedef PACKED_PRE struct PACKED_POST |
| 7743 | { |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 7744 | tRulerReqCmdType cmd; |
| 7745 | |
| 7746 | /* MAC address of MCAST Transmitter (source) */ |
| 7747 | tSirMacAddr mcastTransmitter; |
| 7748 | |
| 7749 | /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */ |
| 7750 | tSirMacAddr mcastGroup; |
| 7751 | |
| 7752 | /* Optional black list for cmd = WLAN_HAL_SUGGEST_RULER */ |
| 7753 | tSirMacAddr blacklist[HAL_NUM_MAX_RULERS]; |
| 7754 | } tHalRmcRulerReqParams, *tpHalRmcRulerReqParams; |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7755 | |
| 7756 | typedef PACKED_PRE struct PACKED_POST |
| 7757 | { |
| 7758 | tHalMsgHeader header; |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 7759 | tHalRmcRulerReqParams rulerReqParams; |
| 7760 | } tHalRmcRulerReqMsg, *tpHalRmcRulerReqMsg; |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7761 | |
| 7762 | /*--------------------------------------------------------------------------- |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 7763 | * WLAN_HAL_RMC_RULER_RSP |
| 7764 | *-------------------------------------------------------------------------*/ |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7765 | typedef PACKED_PRE struct PACKED_POST |
| 7766 | { |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 7767 | /* success or failure */ |
| 7768 | tANI_U32 status; |
| 7769 | |
| 7770 | /* Command Type */ |
| 7771 | tRulerRspCmdType cmd; |
| 7772 | |
| 7773 | /* MAC address of MCAST Transmitter (source) */ |
| 7774 | tSirMacAddr mcastTransmitter; |
| 7775 | |
| 7776 | /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */ |
| 7777 | tSirMacAddr mcastGroup; |
| 7778 | |
| 7779 | /* List of candidates for cmd = WLAN_HAL_SUGGEST_RULER*/ |
| 7780 | tSirMacAddr ruler[HAL_NUM_MAX_RULERS]; |
| 7781 | |
| 7782 | } tHalRmcRulerRspParams, *tpHalRmcRulerRspParams; |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7783 | |
| 7784 | typedef PACKED_PRE struct PACKED_POST |
| 7785 | { |
| 7786 | tHalMsgHeader header; |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 7787 | tHalRmcRulerRspParams rulerRspParams; |
| 7788 | } tHalRmcRulerRspMsg, *tpHalRmcRulerRspMsg; |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7789 | |
| 7790 | /*--------------------------------------------------------------------------- |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 7791 | * WLAN_HAL_RMC_UPDATE_IND |
| 7792 | *-------------------------------------------------------------------------*/ |
| 7793 | typedef enum |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7794 | { |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 7795 | WLAN_HAL_RULER_ACCEPTED, //Host-->FW |
| 7796 | WLAN_HAL_RULER_CANCELED, //Host-->FW |
| 7797 | WLAN_HAL_RULER_PICK_NEW, //FW-->Host |
| 7798 | WLAN_HAL_RULER_IND_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 7799 | }tRmcUpdateIndType; |
| 7800 | |
| 7801 | typedef enum |
| 7802 | { |
| 7803 | WLAN_HAL_RMC_RULER_ROLE, |
| 7804 | WLAN_HAL_RMC_TRANSMITTER_ROLE, |
| 7805 | WLAN_HAL_RMC_ROLE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 7806 | }tRmcRoleType; |
Kumar Anand | ea78e79 | 2013-10-10 23:47:01 -0700 | [diff] [blame] | 7807 | |
| 7808 | typedef PACKED_PRE struct PACKED_POST |
| 7809 | { |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 7810 | tRmcUpdateIndType indication; |
| 7811 | |
| 7812 | /* Role of the entity generating this indication */ |
| 7813 | tRmcRoleType role; |
| 7814 | |
| 7815 | /* MAC address of MCAST Transmitter (source) */ |
| 7816 | tSirMacAddr mcastTransmitter; |
| 7817 | |
| 7818 | /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */ |
| 7819 | tSirMacAddr mcastGroup; |
| 7820 | |
| 7821 | tSirMacAddr mcastRuler; |
| 7822 | |
| 7823 | /* Candidate list for indication = WLAN_HAL_RULER_PICK_NEW */ |
| 7824 | tSirMacAddr ruler[HAL_NUM_MAX_RULERS]; |
| 7825 | } tHalRmcUpdateIndParams, *tpHalRmcUpdateIndParams; |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7826 | |
| 7827 | typedef PACKED_PRE struct PACKED_POST |
| 7828 | { |
| 7829 | tHalMsgHeader header; |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 7830 | tHalRmcUpdateIndParams rulerIndParams; |
| 7831 | } tHalRmcUpdateInd, *tpHalRmcUpdateInd; |
| 7832 | |
| 7833 | typedef PACKED_PRE struct PACKED_POST |
| 7834 | { |
| 7835 | tANI_U8 staIdx; // Station Idx; |
| 7836 | tANI_U32 txRate; // Legacy transmit rate, in units of 500 kbit/sec, |
| 7837 | // for the most recently transmitted frame |
| 7838 | tANI_U32 mcsIndex; // mcs index for HT20 and HT40 rates |
| 7839 | tANI_U32 txRateFlags; // to differentiate between HT20 and |
| 7840 | // HT40 rates; short and long guard interval |
| 7841 | tANI_S8 rssi; // RSSI of the last received beacon |
| 7842 | }tHalIbssPeerParams, *tpHalIbssPeerParams; |
| 7843 | |
| 7844 | typedef PACKED_PRE struct PACKED_POST |
| 7845 | { |
| 7846 | tANI_U32 status; // success or failure |
| 7847 | tANI_U8 numOfPeers; // Number of Peers for |
| 7848 | // which stats are being reported |
| 7849 | tHalIbssPeerParams ibssPeerParams[1]; // Stats of peer in IBSS |
| 7850 | }tHalIbssPeerInfoRspParams, *tpHalIbssPeerInfoRspParams; |
| 7851 | |
| 7852 | // WLAN_HAL_GET_IBSS_PEER_INFO_RSP |
| 7853 | typedef PACKED_PRE struct PACKED_POST |
| 7854 | { |
| 7855 | tHalMsgHeader header; |
| 7856 | tHalIbssPeerInfoRspParams ibssPeerInfoRspParams; |
| 7857 | }tHalIbssPeerInfoRsp, *tpHalIbssPeerInfoRsp; |
| 7858 | |
| 7859 | typedef PACKED_PRE struct PACKED_POST |
| 7860 | { |
| 7861 | tANI_U8 bssIdx; // Bss Index |
| 7862 | tANI_BOOLEAN allPeerInfoReqd; // If set, all IBSS peers stats are reported |
| 7863 | tANI_U8 staIdx; // If allPeerInfoReqd is not set, |
| 7864 | // only stats of peer with |
| 7865 | // staIdx is reported |
| 7866 | }tHalIbssPeerInfoReqParams, *tpHalIbssPeerInfoReqParams; |
| 7867 | |
| 7868 | // WLAN_HAL_GET_IBSS_PEER_INFO_REQ |
| 7869 | typedef PACKED_PRE struct PACKED_POST |
| 7870 | { |
| 7871 | tHalMsgHeader header; |
| 7872 | tHalIbssPeerInfoReqParams ibssPeerInfoReqParams; |
| 7873 | }tHalIbssPeerInfoReq, *tpHalIbssPeerInfoReq; |
krunal soni | 2a4728d | 2013-09-20 21:56:50 -0700 | [diff] [blame] | 7874 | |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 7875 | /*--------------------------------------------------------------------------- |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 7876 | * WLAN_HAL_ROAM_OFFLOAD_SYNCH_IND |
| 7877 | *-------------------------------------------------------------------------*/ |
| 7878 | typedef enum |
| 7879 | { |
| 7880 | /* reassociation is done, but couldn't finish security handshake */ |
| 7881 | WLAN_HAL_ROAM_AUTH_STATUS_CONNECTED = 1, |
| 7882 | |
| 7883 | /* roam has successfully completed by firmware */ |
| 7884 | WLAN_HAL_ROAM_AUTH_STATUS_AUTHENTICATED = 2, |
| 7885 | |
| 7886 | /* UNKONW error */ |
| 7887 | WLAN_HAL_ROAM_AUTH_STATUS_UNKONWN = WLAN_HAL_MAX_ENUM_SIZE |
| 7888 | }tHalRoamOffloadRoamAuthStatus; |
| 7889 | |
| 7890 | typedef enum |
| 7891 | { |
| 7892 | WLAN_HAL_ROAM_TYPE_WPA_PSK, |
| 7893 | WLAN_HAL_ROAM_TYPE_WPA2_PSK, |
| 7894 | WLAN_HAL_ROAM_TYPE_OKC, |
| 7895 | WLAN_HAL_ROAM_TYPE_CCKM, |
| 7896 | WLAN_HAL_ROAM_TYPE_FT, |
| 7897 | WLAN_HAL_ROAM_TYPE_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 7898 | } tHalRoamOffloadType; |
| 7899 | |
| 7900 | typedef PACKED_PRE struct PACKED_POST |
| 7901 | { |
| 7902 | /* Offset of beacon / probe resp in this structure. Offset from the starting of the message */ |
| 7903 | tANI_U16 beaconProbeRespOffset; |
| 7904 | |
| 7905 | /* Length of beaon / probe resp. */ |
| 7906 | tANI_U16 beaconProbeRespLength; |
| 7907 | |
| 7908 | /* Offset of reassoc resp in this structure. Offset from the starting of the message */ |
| 7909 | tANI_U16 reassocRespOffset; |
| 7910 | |
| 7911 | /* Length of reassoc resp. */ |
| 7912 | tANI_U16 reassocRespLength; |
| 7913 | |
| 7914 | /* 0 for probe response frame, 1 for beacon frame, */ |
| 7915 | tANI_U8 isBeacon; |
| 7916 | |
| 7917 | /* staIdx of old AP */ |
| 7918 | tANI_U8 oldStaIdx; |
| 7919 | |
| 7920 | /* note : from bssIdx field to txMgmtPower are exactly mapped to |
| 7921 | tConfigBssRspParams */ |
| 7922 | /* bssIdx of new roamed AP */ |
| 7923 | tANI_U8 bssIdx; |
| 7924 | |
| 7925 | /* DPU descriptor index for PTK */ |
| 7926 | tANI_U8 dpuDescIndx; |
| 7927 | |
| 7928 | /* PTK DPU signature */ |
| 7929 | tANI_U8 ucastDpuSignature; |
| 7930 | |
| 7931 | /* DPU descriptor index for GTK*/ |
| 7932 | tANI_U8 bcastDpuDescIndx; |
| 7933 | |
| 7934 | /* GTK DPU signature */ |
| 7935 | tANI_U8 bcastDpuSignature; |
| 7936 | |
| 7937 | /*DPU descriptor for IGTK*/ |
| 7938 | tANI_U8 mgmtDpuDescIndx; |
| 7939 | |
| 7940 | /* IGTK DPU signature */ |
| 7941 | tANI_U8 mgmtDpuSignature; |
| 7942 | |
| 7943 | /* Station Index for BSS entry*/ |
| 7944 | tANI_U8 staIdx; |
| 7945 | |
| 7946 | /* Self station index for this BSS */ |
| 7947 | tANI_U8 selfStaIdx; |
| 7948 | |
| 7949 | /* Bcast station for buffering bcast frames in AP role */ |
| 7950 | tANI_U8 bcastStaIdx; |
| 7951 | |
| 7952 | /* MAC address of roamed AP */ |
| 7953 | tSirMacAddr bssid; |
| 7954 | |
| 7955 | /*HAL fills in the tx power used for mgmt frames in this field. */ |
| 7956 | tANI_S8 txMgmtPower; |
| 7957 | |
| 7958 | /* success or failure */ |
| 7959 | tHalRoamOffloadRoamAuthStatus authStatus; |
| 7960 | |
| 7961 | /* TODO : add more info as needed */ |
| 7962 | |
| 7963 | /* beaconProbeRespOffset points to starting of beacon/probe resp frame */ |
| 7964 | /* Beacon or probe resp from new AP. This is in 802.11 |
| 7965 | frame format starting with MAC header. */ |
| 7966 | /* Up to beaconProbeRespLength */ |
| 7967 | |
| 7968 | /* reassocRespOffset points to starting of reassoc resp frame */ |
| 7969 | /* Reassoc resp from new AP. This is in 802.11 |
| 7970 | frame format starting with MAC header. */ |
| 7971 | /* Up to reassocRespLength */ |
| 7972 | |
| 7973 | } tHalRoamOffloadSynchIndParams, *tpHalRoamOffloadSynchIndParams; |
| 7974 | |
| 7975 | |
| 7976 | typedef PACKED_PRE struct PACKED_POST |
| 7977 | { |
| 7978 | tHalMsgHeader header; |
| 7979 | tHalRoamOffloadSynchIndParams params; |
| 7980 | } tHalRoamOffloadSynchInd, *tpHalRoamOffloadSynchInd; |
| 7981 | |
| 7982 | /*--------------------------------------------------------------------------- |
| 7983 | * WLAN_HAL_ROAM_OFFLOAD_SYNCH_CNF |
| 7984 | *-------------------------------------------------------------------------*/ |
| 7985 | typedef PACKED_PRE struct PACKED_POST |
| 7986 | { |
| 7987 | /* MAC address of new AP indicated by FW in RoamOffloadSynchInd */ |
| 7988 | tSirMacAddr bssid; |
| 7989 | } tHalRoamOffloadSynchCnfParams, *tpHalRoamOffloadSynchCnfParams; |
| 7990 | |
| 7991 | typedef PACKED_PRE struct PACKED_POST |
| 7992 | { |
| 7993 | tHalMsgHeader header; |
| 7994 | tHalRoamOffloadSynchCnfParams params; |
| 7995 | } tHalRoamOffloadSynchCnfMsg, *tpHalRoamOffloadSynchCnfMsg; |
| 7996 | |
| 7997 | |
| 7998 | /*--------------------------------------------------------------------------- |
Chittajit Mitra | f5413a4 | 2013-10-18 14:20:08 -0700 | [diff] [blame] | 7999 | WLAN_HAL_RATE_UPDATE_IND |
| 8000 | *-------------------------------------------------------------------------*/ |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 8001 | typedef PACKED_PRE struct PACKED_POST |
Chittajit Mitra | f5413a4 | 2013-10-18 14:20:08 -0700 | [diff] [blame] | 8002 | { |
| 8003 | /* 0 implies UCAST RA, positive value implies fixed rate, -1 implies ignore this param */ |
| 8004 | tANI_S32 ucastDataRate; //unit Mbpsx10 |
| 8005 | |
| 8006 | /* TX flag to differentiate between HT20, HT40 etc */ |
| 8007 | tTxRateInfoFlags ucastDataRateTxFlag; |
| 8008 | |
| 8009 | /* BSSID - Optional. 00-00-00-00-00-00 implies apply to all BCAST STAs */ |
| 8010 | tSirMacAddr bssid; |
| 8011 | |
| 8012 | /* 0 implies MCAST RA, positive value implies fixed rate, -1 implies ignore */ |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 8013 | tANI_S32 rmcDataRate; //unit Mbpsx10 |
Chittajit Mitra | f5413a4 | 2013-10-18 14:20:08 -0700 | [diff] [blame] | 8014 | |
| 8015 | /* TX flag to differentiate between HT20, HT40 etc */ |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 8016 | tTxRateInfoFlags rmcDataRateTxFlag; |
Chittajit Mitra | f5413a4 | 2013-10-18 14:20:08 -0700 | [diff] [blame] | 8017 | |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 8018 | /* Default (non-RMC) MCAST(or BCAST) fixed rate in 2.4 GHz, 0 implies ignore */ |
Chittajit Mitra | f5413a4 | 2013-10-18 14:20:08 -0700 | [diff] [blame] | 8019 | tANI_U32 mcastDataRate24GHz; //unit Mbpsx10 |
| 8020 | |
| 8021 | /* TX flag to differentiate between HT20, HT40 etc */ |
| 8022 | tTxRateInfoFlags mcastDataRate24GHzTxFlag; |
| 8023 | |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 8024 | /* Default (non-RMC) MCAST(or BCAST) fixed rate in 5 GHz, 0 implies ignore */ |
Chittajit Mitra | f5413a4 | 2013-10-18 14:20:08 -0700 | [diff] [blame] | 8025 | tANI_U32 mcastDataRate5GHz; //unit Mbpsx10 |
| 8026 | |
| 8027 | /* TX flag to differentiate between HT20, HT40 etc */ |
| 8028 | tTxRateInfoFlags mcastDataRate5GHzTxFlag; |
| 8029 | |
| 8030 | } tHalRateUpdateParams, *tpHalRateUpdateParams; |
| 8031 | |
| 8032 | typedef PACKED_PRE struct PACKED_POST |
| 8033 | { |
| 8034 | tHalMsgHeader header; |
| 8035 | tHalRateUpdateParams halRateUpdateParams; |
| 8036 | } tHalRateUpdateInd, * tpHalRateUpdateInd; |
| 8037 | |
| 8038 | /*--------------------------------------------------------------------------- |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 8039 | * WLAN_HAL_TX_FAIL_IND |
| 8040 | *--------------------------------------------------------------------------*/ |
| 8041 | // Northbound indication from FW to host on weak link detection |
| 8042 | typedef PACKED_PRE struct PACKED_POST |
| 8043 | { |
| 8044 | // Sequence number increases by 1 whenever the device driver |
| 8045 | // sends a notification event. This is cleared as 0 when the |
| 8046 | // JOIN IBSS commamd is issued |
| 8047 | tANI_U16 seqNo; |
| 8048 | tANI_U16 staId; |
| 8049 | tANI_U8 macAddr[HAL_MAC_ADDR_LEN]; |
| 8050 | } tHalTXFailIndParams, *tpHalTXFailIndParams; |
| 8051 | |
| 8052 | typedef PACKED_PRE struct PACKED_POST |
| 8053 | { |
| 8054 | tHalMsgHeader header; |
| 8055 | tHalTXFailIndParams txFailIndParams; |
| 8056 | } tHalTXFailIndMsg, *tpHalTXFailIndMsg; |
| 8057 | |
| 8058 | /*--------------------------------------------------------------------------- |
| 8059 | * WLAN_HAL_TX_FAIL_MONITOR_IND |
| 8060 | *--------------------------------------------------------------------------*/ |
| 8061 | // Southbound message from Host to monitor the Tx failures |
| 8062 | typedef PACKED_PRE struct PACKED_POST |
| 8063 | { |
| 8064 | // tx_fail_count = 0 should disable the TX Fail monitor, non-zero value should enable it. |
| 8065 | tANI_U8 tx_fail_count; |
| 8066 | } tTXFailMonitorInfo, *tpTXFailMonitorInfo; |
| 8067 | |
| 8068 | typedef PACKED_PRE struct PACKED_POST |
| 8069 | { |
| 8070 | tHalMsgHeader header; |
| 8071 | tTXFailMonitorInfo txFailMonitor; |
| 8072 | } tTXFailMonitorInd, *tpTXFailMonitorInd; |
| 8073 | |
| 8074 | /*--------------------------------------------------------------------------- |
AnjaneeDevi Kapparapu | 1fe854a | 2013-12-27 17:06:41 +0530 | [diff] [blame] | 8075 | * WLAN_HAL_AVOID_FREQ_RANGE_IND |
| 8076 | *-------------------------------------------------------------------------*/ |
| 8077 | |
Abhishek Singh | e044315 | 2015-06-18 10:07:43 +0530 | [diff] [blame] | 8078 | #define WLAN_HAL_MAX_AVOID_FREQ_RANGE 15 |
AnjaneeDevi Kapparapu | 1fe854a | 2013-12-27 17:06:41 +0530 | [diff] [blame] | 8079 | |
| 8080 | typedef PACKED_PRE struct PACKED_POST |
| 8081 | { |
| 8082 | tANI_U32 startFreq; |
| 8083 | tANI_U32 endFreq; |
| 8084 | } tHalFreqRange, *tpHalFreqRange; |
| 8085 | |
| 8086 | typedef PACKED_PRE struct PACKED_POST |
| 8087 | { |
| 8088 | tANI_U32 avoidCnt; |
| 8089 | tHalFreqRange avoidRange[WLAN_HAL_MAX_AVOID_FREQ_RANGE]; |
| 8090 | } tHalAvoidFreqRangeIndParams, *tpHalAvoidFreqRangeIndParams; |
| 8091 | |
| 8092 | typedef PACKED_PRE struct PACKED_POST |
| 8093 | { |
| 8094 | tHalMsgHeader header; |
| 8095 | tHalAvoidFreqRangeIndParams freqRangeIndParams; |
| 8096 | } tHalAvoidFreqRangeInd, *tpHalAvoidFreqRangeInd; |
| 8097 | |
| 8098 | /*--------------------------------------------------------------------------- |
Sandeep Puligilla | 77bf84e | 2014-01-31 20:49:07 +0530 | [diff] [blame] | 8099 | * WLAN_HAL_START_HT40_OBSS_SCAN_IND |
Kumar Anand | f53016f | 2013-09-04 15:15:53 -0700 | [diff] [blame] | 8100 | *-------------------------------------------------------------------------*/ |
| 8101 | |
Sandeep Puligilla | 77bf84e | 2014-01-31 20:49:07 +0530 | [diff] [blame] | 8102 | typedef enum |
| 8103 | { |
| 8104 | WLAN_HAL_HT40_OBSS_SCAN_PARAM_START, |
| 8105 | WLAN_HAL_HT40_OBSS_SCAN_PARAM_UPDATE, |
| 8106 | WLAN_HAL_HT40_OBSS_SCAN_CMD_MAX = WLAN_HAL_MAX_ENUM_SIZE |
| 8107 | }tHT40OBssScanCmdType; |
| 8108 | |
| 8109 | typedef PACKED_PRE struct PACKED_POST |
| 8110 | { |
| 8111 | tHT40OBssScanCmdType cmdType; |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 8112 | |
Sandeep Puligilla | 77bf84e | 2014-01-31 20:49:07 +0530 | [diff] [blame] | 8113 | tSirScanType scanType; |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 8114 | tANI_U16 OBSSScanPassiveDwellTime; // In TUs |
| 8115 | tANI_U16 OBSSScanActiveDwellTime; // In TUs |
| 8116 | tANI_U16 BSSChannelWidthTriggerScanInterval; // In seconds |
| 8117 | tANI_U16 OBSSScanPassiveTotalPerChannel; // In TUs |
| 8118 | tANI_U16 OBSSScanActiveTotalPerChannel; // In TUs |
| 8119 | tANI_U16 BSSWidthChannelTransitionDelayFactor; |
| 8120 | tANI_U16 OBSSScanActivityThreshold; |
| 8121 | |
Sandeep Puligilla | 77bf84e | 2014-01-31 20:49:07 +0530 | [diff] [blame] | 8122 | tANI_U8 selfStaIdx; |
| 8123 | tANI_U8 bssIdx; |
| 8124 | tANI_U8 fortyMHZIntolerent; |
| 8125 | tANI_U8 channelCount; |
| 8126 | tANI_U8 channels[WLAN_HAL_ROAM_SCAN_MAX_CHANNELS]; |
| 8127 | tANI_U8 currentOperatingClass; |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 8128 | |
Sandeep Puligilla | 77bf84e | 2014-01-31 20:49:07 +0530 | [diff] [blame] | 8129 | tANI_U16 ieFieldLen; |
| 8130 | tANI_U8 ieField[WLAN_HAL_PNO_MAX_PROBE_SIZE]; |
| 8131 | }tHT40ObssScanIndType, *tpHT40ObssScanIndType; |
| 8132 | |
| 8133 | typedef PACKED_PRE struct PACKED_POST |
| 8134 | { |
| 8135 | tHalMsgHeader header; |
| 8136 | tHT40ObssScanIndType scanHT40ObssScanParams; |
| 8137 | } tHalStartHT40ObssScanIndMsg, *tpHalStartHT40ObssScanIndMsg; |
| 8138 | |
| 8139 | /*--------------------------------------------------------------------------- |
| 8140 | * WLAN_HAL_STOP_HT40_OBSS_SCAN_IND |
| 8141 | *-------------------------------------------------------------------------*/ |
| 8142 | typedef PACKED_PRE struct PACKED_POST |
| 8143 | { |
| 8144 | tHalMsgHeader header; |
| 8145 | tANI_U8 bssIdx; |
| 8146 | } tHalStopHT40OBSSScanIndMsg, *tpHalStopHT40OBSSScanIndMsg; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 8147 | |
| 8148 | /*--------------------------------------------------------------------------- |
| 8149 | * WLAN_HAL_GET_BCN_MISS_RATE_REQ |
| 8150 | *-------------------------------------------------------------------------*/ |
| 8151 | |
| 8152 | typedef PACKED_PRE struct PACKED_POST |
| 8153 | { |
| 8154 | /* Valid BSS Idx for beacon miss rate */ |
| 8155 | tANI_U8 bssIdx; |
| 8156 | |
| 8157 | }tHalBcnMissRateReqParams, *tpHalBcnMissRateReqParams; |
| 8158 | |
| 8159 | typedef PACKED_PRE struct PACKED_POST |
| 8160 | { |
| 8161 | tHalMsgHeader header; |
| 8162 | tHalBcnMissRateReqParams bcnMissRateReqParams; |
| 8163 | } tHalBcnMissRateReqMsg, *tpHalBcnMissRateReqMsg; |
| 8164 | |
| 8165 | /*--------------------------------------------------------------------------- |
| 8166 | * WLAN_HAL_GET_BCN_MISS_RATE_RSP |
| 8167 | *-------------------------------------------------------------------------*/ |
| 8168 | |
| 8169 | typedef PACKED_PRE struct PACKED_POST |
| 8170 | { |
| 8171 | tANI_U32 status; |
| 8172 | tANI_U32 bcnMissCnt; |
| 8173 | }tHalBcnMissRateRspParams, *tpHalBcnMissRateRspParams; |
| 8174 | |
| 8175 | typedef PACKED_PRE struct PACKED_POST |
| 8176 | { |
| 8177 | tHalMsgHeader header; |
| 8178 | tHalBcnMissRateRspParams bcnMissRateRspParams; |
| 8179 | }tHalBcnMissRateRspMsg, *tpHalBcnMissRateRspMsg; |
| 8180 | |
Selvaraj, Sridhar | 6c0eb3f | 2016-04-06 12:42:04 +0530 | [diff] [blame] | 8181 | /*--------------------------------------------------------------------------- |
| 8182 | * WLAN_HAL_SET_ALLOWED_ACTION_FRAMES_IND |
| 8183 | *-------------------------------------------------------------------------*/ |
| 8184 | |
| 8185 | typedef PACKED_PRE struct PACKED_POST |
| 8186 | { |
| 8187 | tANI_U32 actionFramesBitMask; |
| 8188 | tANI_U32 reserved; |
| 8189 | }tHalAllowedActionFrames, *tpHalAllowedActionFrames; |
| 8190 | |
| 8191 | typedef PACKED_PRE struct PACKED_POST |
| 8192 | { |
| 8193 | tHalMsgHeader header; |
| 8194 | tHalAllowedActionFrames allowedActionFrames; |
| 8195 | }tHalAllowedActionFramesReqInd, *tpHalAllowedActionFramesReqInd; |
| 8196 | |
Sourav Mohapatra | 72c2c34 | 2018-03-05 19:49:05 +0530 | [diff] [blame] | 8197 | /*---------------------------------------------------------------- |
| 8198 | WLAN_HAL_VOWIFI_IND |
| 8199 | -----------------------------------------------------------------*/ |
| 8200 | typedef PACKED_PRE struct PACKED_POST |
| 8201 | { |
| 8202 | /* 0 implies VoWifi call ended, 1 implies VoWifi call started */ |
| 8203 | tANI_U8 enable; |
| 8204 | } tHalVoWiFiIndParams, *tpHalVoWiFiIndParams; |
| 8205 | |
| 8206 | typedef PACKED_PRE struct PACKED_POST |
| 8207 | { |
| 8208 | tHalMsgHeader header; |
| 8209 | tHalVoWiFiIndParams voWiFiIndParams; |
| 8210 | } tHalVoWiFiInd, * tpHalVoWiFiInd; |
| 8211 | |
Ashish Kumar Dhanotiya | c4c5384 | 2018-04-10 18:24:33 +0530 | [diff] [blame] | 8212 | /*---------------------------------------------------------------- |
| 8213 | WLAN_HAL_QPOWER |
| 8214 | -----------------------------------------------------------------*/ |
| 8215 | typedef PACKED_PRE struct PACKED_POST |
| 8216 | { |
| 8217 | tANI_U8 enable; |
| 8218 | } tHalQpowerParams, *tpHalQpowerParams; |
| 8219 | |
| 8220 | typedef PACKED_PRE struct PACKED_POST |
| 8221 | { |
| 8222 | tHalMsgHeader header; |
| 8223 | tHalQpowerParams qpowerParams; |
| 8224 | } tHalQpower, * tpHalQpower; |
| 8225 | |
Sunil Dutt | 8377a38 | 2014-05-26 21:18:04 +0530 | [diff] [blame] | 8226 | /*-------------------------------------------------------------------------- |
| 8227 | * WLAN_HAL_LL_SET_STATS_REQ |
| 8228 | *---------------------------------------------------------------------------*/ |
| 8229 | |
| 8230 | typedef PACKED_PRE struct PACKED_POST |
| 8231 | { |
| 8232 | tANI_U32 req_id; |
| 8233 | tANI_U8 sta_id; |
| 8234 | tANI_U32 mpdu_size_threshold; // threshold to classify the pkts as short or long |
| 8235 | tANI_U32 aggressive_statistics_gathering; // set for field debug mode. Driver should collect all statistics regardless of performance impact. |
| 8236 | } tHalMacLlSetStatsReqParams, *tpHalMacLlSetStatsReqParams; |
| 8237 | |
| 8238 | typedef PACKED_PRE struct PACKED_POST |
| 8239 | { |
| 8240 | tHalMsgHeader header; |
| 8241 | tHalMacLlSetStatsReqParams LlSetStatsReqParams; |
| 8242 | } tHalMacLlSetStatsReq, *tpHalMacLlSetStatsReq; |
| 8243 | |
| 8244 | /*--------------------------------------------------------------------------- |
| 8245 | WLAN_HAL_LL_SET_STATS_RSP |
| 8246 | ---------------------------------------------------------------------------*/ |
| 8247 | |
| 8248 | typedef PACKED_PRE struct PACKED_POST |
| 8249 | { |
| 8250 | tANI_U32 status; |
| 8251 | tANI_U32 resp_id; |
| 8252 | tANI_U8 iface_id; |
| 8253 | } tHalMacLlSetStatsRspParams, *tpHalMacLlSetStatsRspParams; |
| 8254 | |
| 8255 | typedef PACKED_PRE struct PACKED_POST |
| 8256 | { |
| 8257 | tHalMsgHeader header; |
| 8258 | tHalMacLlSetStatsRspParams LlSetStatsRspParams; |
| 8259 | } tHalMacLlSetStatsRsp, *tpHalMacLlSetStatsRsp; |
| 8260 | |
| 8261 | /*--------------------------------------------------------------------------- |
| 8262 | WLAN_HAL_LL_GET_STATS_REQ |
| 8263 | ---------------------------------------------------------------------------*/ |
| 8264 | |
| 8265 | typedef PACKED_PRE struct PACKED_POST |
| 8266 | { |
| 8267 | tANI_U32 req_id; |
| 8268 | tANI_U8 sta_id; |
| 8269 | tANI_U32 param_id_mask; |
| 8270 | } tHalMacLlGetStatsReqParams, *tpHalMacLlGetStatsReqParams; |
| 8271 | |
| 8272 | typedef PACKED_PRE struct PACKED_POST |
| 8273 | { |
| 8274 | tHalMsgHeader header; |
| 8275 | tHalMacLlGetStatsReqParams LlGetStatsReqParams; |
| 8276 | } tHalMacLlGetStatsReq, *tpHalMacLlGetStatsReq; |
| 8277 | |
| 8278 | /*--------------------------------------------------------------------------- |
| 8279 | WLAN_HAL_LL_GET_STATS_RSP |
| 8280 | ---------------------------------------------------------------------------*/ |
| 8281 | typedef PACKED_PRE struct PACKED_POST |
| 8282 | { |
| 8283 | tANI_U32 status; |
| 8284 | tANI_U32 resp_id; |
| 8285 | tANI_U8 iface_id; |
| 8286 | } tHalMacLlGetStatsRspParams, *tpHalMacLlGetStatsRspParams; |
| 8287 | |
| 8288 | typedef PACKED_PRE struct PACKED_POST |
| 8289 | { |
| 8290 | tHalMsgHeader header; |
| 8291 | tHalMacLlGetStatsRspParams LlGetStatsRspParams; |
| 8292 | } tHalMacLlGetStatsRsp, *tpHalMacLlGetStatsRsp; |
| 8293 | |
| 8294 | /*--------------------------------------------------------------------------- |
| 8295 | WLAN_HAL_LL_CLEAR_STATS_REQ |
| 8296 | ---------------------------------------------------------------------------*/ |
| 8297 | typedef PACKED_PRE struct PACKED_POST |
| 8298 | { |
| 8299 | tANI_U32 req_id; |
| 8300 | tANI_U8 sta_id; |
| 8301 | tANI_U32 stats_clear_req_mask; |
| 8302 | tANI_U8 stop_req; |
| 8303 | } tHalMacLlClearStatsReqParams, *tpHalMacLlClearStatsReqParams; |
| 8304 | |
| 8305 | typedef PACKED_PRE struct PACKED_POST |
| 8306 | { |
| 8307 | tHalMsgHeader header; |
| 8308 | tHalMacLlClearStatsReqParams LlClearStatsReqParams; |
| 8309 | } tHalMacLlClearStatsReq, *tpHalMacLlClearStatsReq; |
| 8310 | |
| 8311 | /*--------------------------------------------------------------------------- |
| 8312 | WLAN_HAL_LL_CLEAR_STATS_RSP |
| 8313 | ---------------------------------------------------------------------------*/ |
| 8314 | typedef PACKED_PRE struct PACKED_POST |
| 8315 | { |
| 8316 | tANI_U32 status; |
| 8317 | tANI_U8 sta_id; |
| 8318 | tANI_U32 resp_id; |
| 8319 | tANI_U32 stats_clear_rsp_mask; |
| 8320 | tANI_U8 stop_req_status; |
| 8321 | } tHalMacLlClearStatsRspParams, *tpHalMacLlClearStatsRspParams; |
| 8322 | |
| 8323 | typedef PACKED_PRE struct PACKED_POST |
| 8324 | { |
| 8325 | tHalMsgHeader header; |
| 8326 | tHalMacLlClearStatsRspParams LlClearStatsRspParams; |
| 8327 | } tHalMacLlClearStatsRsp, *tpHalMacLlClearStatsRsp; |
| 8328 | |
| 8329 | /*--------------------------------------------------------------------------- |
| 8330 | WLAN_HAL_LL_NOTIFY_STATS |
| 8331 | ---------------------------------------------------------------------------*/ |
| 8332 | |
| 8333 | typedef PACKED_PRE struct PACKED_POST |
| 8334 | { |
| 8335 | tHalMsgHeader header; |
| 8336 | tANI_U32 param_id; |
| 8337 | tANI_U8 iface_id; |
| 8338 | tANI_U32 resp_id; |
| 8339 | tANI_U32 more_result_to_follow; |
| 8340 | tANI_U8 result[1]; |
| 8341 | } tHalMacLlNotifyStats, *tpHalMacLlNotifyStats; |
Amar Singhal | b41c45b | 2014-03-21 14:44:14 -0700 | [diff] [blame] | 8342 | |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8343 | /*--------------------------------------------------------------------------- |
| 8344 | * WLAN_HAL_EXT_SCAN_START_REQ |
| 8345 | *-------------------------------------------------------------------------*/ |
| 8346 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 8347 | typedef enum |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8348 | { |
| 8349 | EXT_SCAN_CHANNEL_BAND_UNSPECIFIED = 0x0000, |
| 8350 | EXT_SCAN_CHANNEL_BAND_BG = 0x0001, // 2.4 GHz |
| 8351 | EXT_SCAN_CHANNEL_BAND_A = 0x0002, // 5 GHz without DFS |
| 8352 | EXT_SCAN_CHANNEL_BAND_A_DFS = 0x0004, // 5 GHz DFS only |
| 8353 | EXT_SCAN_CHANNEL_BAND_A_WITH_DFS = 0x0006, // 5 GHz with DFS |
| 8354 | EXT_SCAN_CHANNEL_BAND_ABG = 0x0003, // 2.4 GHz + 5 GHz; no DFS |
| 8355 | EXT_SCAN_CHANNEL_BAND_ABG_WITH_DFS = 0x0007, // 2.4 GHz + 5 GHz with DFS |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 8356 | EXT_SCAN_CHANNEL_BAND_MAX = WLAN_HAL_MAX_ENUM_SIZE |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8357 | } tExtScanChannelBandMask; |
| 8358 | |
Padma, Santhosh Kumar | 208ca41 | 2015-09-10 20:47:34 +0530 | [diff] [blame] | 8359 | #define WLAN_HAL_EXT_SCAN_MAX_HOTLIST_SSIDS 8 |
| 8360 | #define WLAN_HAL_EXT_SCAN_MAX_AP_CACHE_PER_SCAN 32 |
| 8361 | |
| 8362 | #define WLAN_HAL_EXT_SCAN_FLAG_INTERRUPTED 1 |
| 8363 | |
| 8364 | #define WLAN_HAL_EXT_SCAN_REPORT_EVENTS_BUFFER_FULL 0 |
| 8365 | #define WLAN_HAL_EXT_SCAN_REPORT_EVENTS_EACH_SCAN 1 |
| 8366 | #define WLAN_HAL_EXT_SCAN_REPORT_EVENTS_FULL_RESULTS 2 |
| 8367 | #define WLAN_HAL_EXT_SCAN_REPORT_EVENTS_NO_BATCH 4 |
| 8368 | |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8369 | typedef PACKED_PRE struct PACKED_POST |
| 8370 | { |
| 8371 | tANI_U32 channel; // frequency |
| 8372 | tANI_U32 dwellTimeMs; // dwell time hint |
| 8373 | tANI_U8 passive; // 0 => active, |
| 8374 | // 1 => passive scan; ignored for DFS |
| 8375 | }tExtScanChannelSpec, *tpExtScanChannelSpec; |
| 8376 | |
| 8377 | typedef PACKED_PRE struct PACKED_POST |
| 8378 | { |
| 8379 | /* bucket index, 0 based */ |
| 8380 | tANI_U8 bucketId; |
| 8381 | /* when equal to EXT_SCAN_CHANNEL_BAND_UNSPECIFIED, use channel list */ |
| 8382 | tExtScanChannelBandMask channelBand; |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 8383 | /* period (milliseconds) for each bucket defines the periodicity of bucket */ |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8384 | tANI_U32 period; |
Padma, Santhosh Kumar | 9acee01 | 2015-08-21 19:58:01 +0530 | [diff] [blame] | 8385 | /* This is a bit field; which defines following bits - |
| 8386 | * REPORT_EVENTS_BUFFER_FULL => report only when scan history |
| 8387 | is % full |
| 8388 | * REPORT_EVENTS_EACH_SCAN => report a scan completion event |
| 8389 | after scan |
| 8390 | * REPORT_EVENTS_FULL_RESULTS => forward scan results |
| 8391 | (beacons/probe responses + IEs) in real time to HAL, in addition |
| 8392 | to completion events |
| 8393 | Note: To keep backward compatibility, fire completion events |
| 8394 | regardless of REPORT_EVENTS_EACH_SCAN. |
| 8395 | * REPORT_EVENTS_NO_BATCH => controls batching, |
| 8396 | 0 => batching, 1 => no batching |
| 8397 | */ |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8398 | tANI_U8 reportEvents; |
| 8399 | /* number of channels */ |
| 8400 | tANI_U8 numChannels; |
Padma, Santhosh Kumar | a7cfc49 | 2015-09-12 13:46:27 +0530 | [diff] [blame] | 8401 | // new Exponential Scan params |
| 8402 | tANI_U32 max_period; |
| 8403 | tANI_U32 exponent; |
| 8404 | tANI_U32 step_count; |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8405 | /* if channels to scan. In the TLV channelList[] */ |
| 8406 | tExtScanChannelSpec channelList[WLAN_HAL_EXT_SCAN_MAX_CHANNELS]; |
| 8407 | }tExtScanBucketData, *tpExtScanBucketData; |
| 8408 | |
| 8409 | typedef PACKED_PRE struct PACKED_POST |
| 8410 | { |
| 8411 | tANI_U32 requestId; |
| 8412 | tANI_U8 sessionId; |
| 8413 | /* Base period (milliseconds) used by scan buckets to define periodicity |
| 8414 | of the scans */ |
| 8415 | tANI_U32 basePeriod; |
| 8416 | /* number of APs to store in each scan in the BSSID/RSSI history buffer |
| 8417 | (keep the most significant, i.e. stronger RSSI) */ |
| 8418 | tANI_U32 maxApPerScan; |
| 8419 | /* in %, when buffer is this much full, wake up host */ |
Padma, Santhosh Kumar | a7cfc49 | 2015-09-12 13:46:27 +0530 | [diff] [blame] | 8420 | tANI_U32 reportThresholdPercent; |
| 8421 | /* in number of scans, wake up AP after these many scans */ |
| 8422 | tANI_U32 reportThresholdNumScans; |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8423 | /* This will be off channel minimum time */ |
| 8424 | tANI_U16 neighborScanChannelMinTime; |
| 8425 | /* This will be out off channel max time */ |
| 8426 | tANI_U16 neighborScanChannelMaxTime; |
| 8427 | /* This will be the home (BSS) channel time */ |
| 8428 | tANI_U16 homeAwayTime; |
| 8429 | /* number of buckets (maximum 8) */ |
| 8430 | tANI_U8 numBuckets; |
| 8431 | /* Buckets data */ |
| 8432 | tExtScanBucketData bucketData[WLAN_HAL_EXT_SCAN_MAX_BUCKETS]; |
| 8433 | } tHalExtScanStartReq, *tpHalExtScanStartReq; |
| 8434 | |
| 8435 | typedef PACKED_PRE struct PACKED_POST |
| 8436 | { |
| 8437 | tHalMsgHeader header; |
| 8438 | tHalExtScanStartReq extScanStartReq; |
| 8439 | }tHalExtScanStartReqMsg, *tpHalExtScanStartReqMsg; |
| 8440 | |
| 8441 | /*--------------------------------------------------------------------------- |
| 8442 | * WLAN_HAL_EXT_SCAN_START_RSP |
| 8443 | *-------------------------------------------------------------------------*/ |
| 8444 | |
| 8445 | typedef PACKED_PRE struct PACKED_POST |
| 8446 | { |
| 8447 | tANI_U32 requestId; |
| 8448 | tANI_U32 status; |
| 8449 | }tHalExtScanStartRsp, *tpHalExtScanStartRsp; |
| 8450 | |
| 8451 | typedef PACKED_PRE struct PACKED_POST |
| 8452 | { |
| 8453 | tHalMsgHeader header; |
| 8454 | tHalExtScanStartRsp extScanStartRsp; |
| 8455 | }tHalExtScanStartRspMsg, *tpHalExtScanStartRspMsg; |
| 8456 | |
| 8457 | /*--------------------------------------------------------------------------- |
| 8458 | * WLAN_HAL_EXT_SCAN_GET_CAP_REQ |
| 8459 | *-------------------------------------------------------------------------*/ |
| 8460 | |
| 8461 | typedef PACKED_PRE struct PACKED_POST |
| 8462 | { |
| 8463 | tANI_U32 requestId; |
| 8464 | tANI_U8 sessionId; |
| 8465 | }tHalExtScanGetCapReq, *tpHalExtScanGetCapReq; |
| 8466 | |
| 8467 | typedef PACKED_PRE struct PACKED_POST |
| 8468 | { |
| 8469 | tHalMsgHeader header; |
| 8470 | tHalExtScanGetCapReq extScanGetCapReq; |
| 8471 | }tHalExtScanGetCapReqMsg, *tpHalExtScanGetCapReqMsg; |
| 8472 | |
| 8473 | /*--------------------------------------------------------------------------- |
| 8474 | * WLAN_HAL_EXT_SCAN_GET_CAP_RSP |
| 8475 | *-------------------------------------------------------------------------*/ |
| 8476 | |
| 8477 | typedef PACKED_PRE struct PACKED_POST |
| 8478 | { |
| 8479 | tANI_U32 requestId; |
| 8480 | tANI_U32 status; |
| 8481 | |
| 8482 | tANI_U32 scanCacheSize; |
| 8483 | tANI_U32 scanBuckets; |
| 8484 | tANI_U32 maxApPerScan; |
| 8485 | tANI_U32 maxRssiSampleSize; |
| 8486 | tANI_U32 maxScanReportingThreshold; |
| 8487 | |
| 8488 | tANI_U32 maxHotlistAPs; |
Padma, Santhosh Kumar | a7cfc49 | 2015-09-12 13:46:27 +0530 | [diff] [blame] | 8489 | tANI_U32 maxHotlistSSIDs; |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8490 | |
| 8491 | tANI_U32 maxBssidHistoryEntries; |
| 8492 | }tHalExtScanGetCapRsp, *tpHalExtScanGetCapRsp; |
| 8493 | |
| 8494 | typedef PACKED_PRE struct PACKED_POST |
| 8495 | { |
| 8496 | tHalMsgHeader header; |
| 8497 | tHalExtScanGetCapRsp extScanGetCapRsp; |
| 8498 | }tHalExtScanGetCapRspMsg, *tpHalExtScanGetCapRspMsg; |
| 8499 | |
| 8500 | /*--------------------------------------------------------------------------- |
| 8501 | * WLAN_HAL_EXT_SCAN_GET_SCAN_REQ |
| 8502 | *-------------------------------------------------------------------------*/ |
| 8503 | |
| 8504 | typedef PACKED_PRE struct PACKED_POST |
| 8505 | { |
| 8506 | tANI_U32 requestId; |
| 8507 | tANI_U8 sessionId; |
| 8508 | /* |
| 8509 | * 1 return cached results and flush it |
| 8510 | * 0 return cached results and do not flush |
| 8511 | */ |
| 8512 | tANI_BOOLEAN flush; |
| 8513 | }tHalExtScanGetScanReq, *tpHalExtScanGetScanReq; |
| 8514 | |
| 8515 | typedef PACKED_PRE struct PACKED_POST |
| 8516 | { |
| 8517 | tHalMsgHeader header; |
| 8518 | tHalExtScanGetScanReq getScanReq; |
| 8519 | }tHalExtScanGetScanReqMsg, *tpHalExtScanGetScanReqMsg; |
| 8520 | |
| 8521 | /*--------------------------------------------------------------------------- |
| 8522 | * WLAN_HAL_EXT_SCAN_GET_SCAN_RSP |
| 8523 | *-------------------------------------------------------------------------*/ |
| 8524 | |
| 8525 | typedef PACKED_PRE struct PACKED_POST |
| 8526 | { |
| 8527 | tANI_U32 requestId; |
| 8528 | tANI_U32 status; |
| 8529 | }tHalExtScanGetScanRsp, *tpHalExtScanGetScanRsp; |
| 8530 | |
| 8531 | typedef PACKED_PRE struct PACKED_POST |
| 8532 | { |
| 8533 | tHalMsgHeader header; |
| 8534 | tHalExtScanGetScanRsp getScanRsp; |
| 8535 | }tHalExtScanGetScanRspMsg, *tpHalExtScanGetScanRspMsg; |
| 8536 | |
| 8537 | /*--------------------------------------------------------------------------- |
| 8538 | * WLAN_HAL_EXT_SCAN_RESULT_IND |
| 8539 | *-------------------------------------------------------------------------*/ |
| 8540 | |
| 8541 | typedef PACKED_PRE struct PACKED_POST |
| 8542 | { |
| 8543 | tANI_U64 ts; // time of discovery |
| 8544 | tANI_U8 ssid[32+1]; // null terminated SSID |
| 8545 | tSirMacAddr bssid; // BSSID |
| 8546 | tANI_U32 channel; // channel frequency in MHz |
| 8547 | tANI_S32 rssi; // RSSI in dBm |
| 8548 | tANI_U32 rtt; // RTT in nanoseconds - not expected |
| 8549 | tANI_U32 rttSd; // standard deviation in rtt - not expected |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 8550 | tANI_U16 beaconPeriod; // period advertised in the beacon |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8551 | tANI_U16 capability; // capabilities advertised in the beacon |
Padma, Santhosh Kumar | e1b8a94 | 2015-08-25 12:44:24 +0530 | [diff] [blame] | 8552 | tANI_U16 ieLength; // size of the ie_data blob |
| 8553 | tANI_U8 ieData[1]; // blob of all the information elements found in the beacon |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8554 | } tHalExtScanResultParams, *tpHalExtScanResultParams; |
| 8555 | |
Padma, Santhosh Kumar | e1b8a94 | 2015-08-25 12:44:24 +0530 | [diff] [blame] | 8556 | /* Get the GSCAN cached scan results */ |
| 8557 | typedef struct { |
| 8558 | tANI_U16 scan_id; // a unique identifier for the scan unit |
| 8559 | tANI_U8 flags; // a bitmask with additional |
| 8560 | // information about scan |
| 8561 | tANI_U8 num_results; // number of bssids retrieved by the scan |
| 8562 | tHalExtScanResultParams results[WLAN_HAL_EXT_SCAN_MAX_AP_CACHE_PER_SCAN]; |
| 8563 | // scan results - one for each bssid |
| 8564 | } tHalExtScanCachedResultParams, *tpHalExtScanCachedResultParams; |
| 8565 | |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8566 | typedef PACKED_PRE struct PACKED_POST |
| 8567 | { |
| 8568 | tHalMsgHeader header; |
| 8569 | tANI_U32 requestId; |
| 8570 | tANI_U32 scanResultSize; |
| 8571 | tANI_BOOLEAN moreData; |
| 8572 | tANI_U8 extScanResult[1]; |
| 8573 | }tHalExtScanResultIndMsg, *tpHalExtScanResultIndMsg; |
| 8574 | |
| 8575 | /*--------------------------------------------------------------------------- |
| 8576 | * WLAN_HAL_EXT_SCAN_STOP_REQ |
| 8577 | *-------------------------------------------------------------------------*/ |
| 8578 | |
| 8579 | typedef PACKED_PRE struct PACKED_POST |
| 8580 | { |
| 8581 | tANI_U32 requestId; |
| 8582 | tANI_U8 sessionId; |
| 8583 | }tHalExtScanStopReq, *tpHalExtScanStopReq; |
| 8584 | |
| 8585 | typedef PACKED_PRE struct PACKED_POST |
| 8586 | { |
| 8587 | tHalMsgHeader header; |
| 8588 | tHalExtScanStopReq extScanStopReq; |
| 8589 | }tHalExtScanStopReqMsg, *tpHalExtScanStopReqMsg; |
| 8590 | |
| 8591 | /*--------------------------------------------------------------------------- |
| 8592 | * WLAN_HAL_EXT_SCAN_STOP_RSP |
| 8593 | *-------------------------------------------------------------------------*/ |
| 8594 | |
| 8595 | typedef PACKED_PRE struct PACKED_POST |
| 8596 | { |
| 8597 | tANI_U32 requestId; |
| 8598 | tANI_U32 status; |
| 8599 | }tHalExtScanStopRsp, *tpHalExtScanStopRsp; |
| 8600 | |
| 8601 | typedef PACKED_PRE struct PACKED_POST |
| 8602 | { |
| 8603 | tHalMsgHeader header; |
| 8604 | tHalExtScanStopRsp extScanStopRsp; |
| 8605 | }tHalExtScanStopRspMsg, *tpHalExtScanStopRspMsg; |
| 8606 | |
| 8607 | /*--------------------------------------------------------------------------- |
| 8608 | * WLAN_HAL_EXT_SCAN_PROGRESS_IND |
| 8609 | *-------------------------------------------------------------------------*/ |
| 8610 | |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 8611 | typedef enum |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8612 | { |
| 8613 | WLAN_HAL_EXT_SCAN_BUFFER_FULL, |
| 8614 | WLAN_HAL_EXT_SCAN_COMPLETE, |
Dino Mycle | 8afbac1 | 2014-07-04 22:06:17 +0530 | [diff] [blame] | 8615 | WLAN_HAL_EXT_SCAN_MAX = WLAN_HAL_MAX_ENUM_SIZE |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8616 | } tHalExtScanProgressEventType; |
| 8617 | |
| 8618 | typedef PACKED_PRE struct PACKED_POST |
| 8619 | { |
| 8620 | tANI_U32 requestId; |
| 8621 | tANI_U32 status; |
| 8622 | tHalExtScanProgressEventType extScanEventType; |
| 8623 | }tHalExtScanProgressInd, *tpHalExtScanProgressInd; |
| 8624 | |
| 8625 | typedef PACKED_PRE struct PACKED_POST |
| 8626 | { |
| 8627 | tHalMsgHeader header; |
| 8628 | tHalExtScanProgressInd extScanProgressInd; |
| 8629 | }tHalExtScanProgressIndMsg, *tpHalExtScanProgressIndMsg; |
| 8630 | |
| 8631 | /*--------------------------------------------------------------------------- |
| 8632 | * WLAN_HAL_EXT_SCAN_RESULT_AVAILABLE_IND |
| 8633 | *-------------------------------------------------------------------------*/ |
| 8634 | |
| 8635 | typedef PACKED_PRE struct PACKED_POST |
| 8636 | { |
| 8637 | tANI_U32 requestId; |
| 8638 | tANI_U32 numOfScanResAvailable; |
| 8639 | }tHalExtScanResAvailableInd, tpHalExtScanResAvailableInd; |
| 8640 | |
| 8641 | typedef PACKED_PRE struct PACKED_POST |
| 8642 | { |
| 8643 | tHalMsgHeader header; |
| 8644 | tHalExtScanResAvailableInd extScanResAvailableInd; |
| 8645 | }tHalExtScanResAvailableIndMsg, *tpHalExtScanResAvailableIndMsg; |
| 8646 | |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8647 | typedef PACKED_PRE struct PACKED_POST |
| 8648 | { |
| 8649 | /* AP BSSID */ |
| 8650 | tSirMacAddr bssid; |
| 8651 | /* low threshold - used in L for significant_change - not used in L for |
| 8652 | hotlist*/ |
| 8653 | tANI_S32 lowRssiThreshold; |
| 8654 | /* high threshold - used in L for significant rssi - used in L for hotlist */ |
| 8655 | tANI_S32 highRssiThreshold; |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8656 | } tApThresholdParams, *tpApThresholdParams; |
| 8657 | |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8658 | /*--------------------------------------------------------------------------- |
| 8659 | * WLAN_HAL_BSSID_HOTLIST_SET_REQ |
| 8660 | *-------------------------------------------------------------------------*/ |
| 8661 | |
| 8662 | typedef PACKED_PRE struct PACKED_POST |
| 8663 | { |
| 8664 | tANI_U32 requestId; |
| 8665 | tANI_U8 sessionId; |
Padma, Santhosh Kumar | 37f4fd1 | 2015-08-19 14:37:37 +0530 | [diff] [blame] | 8666 | tANI_U32 lostBssidSampleSize; |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8667 | // number of hotlist APs |
Padma, Santhosh Kumar | 37f4fd1 | 2015-08-19 14:37:37 +0530 | [diff] [blame] | 8668 | tANI_U32 numBssid; |
Dino Mycle | 108eff2 | 2014-06-10 09:36:44 +0530 | [diff] [blame] | 8669 | // hotlist APs |
| 8670 | tApThresholdParams ap[WLAN_HAL_EXT_SCAN_MAX_HOTLIST_APS]; |
| 8671 | } tHalBssidHotlistSetReq, *tpHalBssidHotlistSetReq; |
| 8672 | |
| 8673 | typedef PACKED_PRE struct PACKED_POST |
| 8674 | { |
| 8675 | tHalMsgHeader header; |
| 8676 | tHalBssidHotlistSetReq bssidHotlistSetReq; |
| 8677 | }tHalHotlistSetReqMsg, *tpHalHotlistSetReqMsg; |
| 8678 | |
| 8679 | /*--------------------------------------------------------------------------- |
| 8680 | * WLAN_HAL_BSSID_HOTLIST_SET_RSP |
| 8681 | *-------------------------------------------------------------------------*/ |
| 8682 | |
| 8683 | typedef PACKED_PRE struct PACKED_POST |
| 8684 | { |
| 8685 | tANI_U32 requestId; |
| 8686 | tANI_U32 status; |
| 8687 | }tHalHotlistSetRsp, *tpHalHotlistSetRsp; |
| 8688 | |
| 8689 | typedef PACKED_PRE struct PACKED_POST |
| 8690 | { |
| 8691 | tHalMsgHeader header; |
| 8692 | tHalHotlistSetRsp hotlistSetRsp; |
| 8693 | }tHalHotlistSetRspMsg, *tpHalHotlistSetRspMsg; |
| 8694 | |
| 8695 | /*--------------------------------------------------------------------------- |
| 8696 | * WLAN_HAL_BSSID_HOTLIST_RESET_REQ |
| 8697 | *-------------------------------------------------------------------------*/ |
| 8698 | |
| 8699 | typedef PACKED_PRE struct PACKED_POST |
| 8700 | { |
| 8701 | tANI_U32 requestId; |
| 8702 | }tHalHotlistResetReq, *tpHalHotlistResetReq; |
| 8703 | |
| 8704 | typedef PACKED_PRE struct PACKED_POST |
| 8705 | { |
| 8706 | tHalMsgHeader header; |
| 8707 | tHalHotlistResetReq hotlistResetReq; |
| 8708 | }tHalHotlistResetReqMsg, *tpHalHotlistResetReqMsg; |
| 8709 | |
| 8710 | /*--------------------------------------------------------------------------- |
| 8711 | * WLAN_HAL_BSSID_HOTLIST_RESET_RSP |
| 8712 | *-------------------------------------------------------------------------*/ |
| 8713 | |
| 8714 | typedef PACKED_PRE struct PACKED_POST |
| 8715 | { |
| 8716 | tANI_U32 requestId; |
| 8717 | tANI_U32 status; |
| 8718 | }tHalHotlistResetRsp, *tpHalHotlistResetRsp; |
| 8719 | |
| 8720 | typedef PACKED_PRE struct PACKED_POST |
| 8721 | { |
| 8722 | tHalMsgHeader header; |
| 8723 | tHalHotlistResetRsp hotlistResetRsp; |
| 8724 | }tHalHotlistResetRspMsg, *tpHalHotlistResetRspMsg; |
| 8725 | |
| 8726 | /*--------------------------------------------------------------------------- |
| 8727 | * WLAN_HAL_BSSID_HOTLIST_RESULT_IND |
| 8728 | *-------------------------------------------------------------------------*/ |
| 8729 | |
| 8730 | typedef PACKED_PRE struct PACKED_POST |
| 8731 | { |
| 8732 | tHalMsgHeader header; |
| 8733 | tANI_U32 requestId; |
| 8734 | tANI_U32 numHotlistBss; |
| 8735 | tANI_BOOLEAN moreData; |
| 8736 | tANI_U8 bssHotlist[1]; |
| 8737 | }tHalHotlistResultIndMsg, *tpHalHotlistResultIndMsg; |
| 8738 | |
Siddharth Bhal | bd5efd7 | 2014-09-29 21:21:56 +0530 | [diff] [blame] | 8739 | /*--------------------------------------------------------------------------- |
Padma, Santhosh Kumar | 208ca41 | 2015-09-10 20:47:34 +0530 | [diff] [blame] | 8740 | * WLAN_HAL_SSID_HOTLIST_SET_REQ |
| 8741 | *-------------------------------------------------------------------------*/ |
| 8742 | |
| 8743 | typedef PACKED_PRE struct PACKED_POST |
| 8744 | { |
| 8745 | /* SSID */ |
| 8746 | char ssid [32+1]; |
| 8747 | /* low threshold - used in L for significant_change - not used in L for |
| 8748 | hotlist*/ |
| 8749 | tANI_S32 lowRssiThreshold; |
| 8750 | /* high threshold - used in L for significant rssi - used in L for hotlist */ |
| 8751 | tANI_S32 highRssiThreshold; |
| 8752 | /* band */ |
| 8753 | tANI_U32 band; |
| 8754 | } tSsidThresholdParams, *tpSsidThresholdParams; |
| 8755 | |
| 8756 | |
| 8757 | typedef PACKED_PRE struct PACKED_POST |
| 8758 | { |
| 8759 | tANI_U32 requestId; |
| 8760 | tANI_U8 sessionId; |
| 8761 | tANI_U32 lostSsidSampleSize; |
| 8762 | // number of hotlist SSIDs |
| 8763 | tANI_U32 numSsid; |
| 8764 | // hotlist SSIDs |
| 8765 | tSsidThresholdParams ssid[WLAN_HAL_EXT_SCAN_MAX_HOTLIST_SSIDS]; |
| 8766 | } tHalSsidHotlistSetReq, *tpHalSsidHotlistSetReq; |
| 8767 | |
| 8768 | typedef PACKED_PRE struct PACKED_POST |
| 8769 | { |
| 8770 | tHalMsgHeader header; |
| 8771 | tHalSsidHotlistSetReq ssidHotlistSetReq; |
| 8772 | }tHalSsidHotlistSetReqMsg, *tpHalSsidHotlistSetReqMsg; |
| 8773 | |
| 8774 | /*--------------------------------------------------------------------------- |
| 8775 | * WLAN_HAL_SSID_HOTLIST_SET_RSP |
| 8776 | *-------------------------------------------------------------------------*/ |
| 8777 | typedef PACKED_PRE struct PACKED_POST |
| 8778 | { |
| 8779 | tANI_U32 requestId; |
| 8780 | tANI_U32 status; |
| 8781 | }tHalSsidHotlistSetRsp, *tpHalSsidHotlistSetRsp; |
| 8782 | |
| 8783 | typedef PACKED_PRE struct PACKED_POST |
| 8784 | { |
| 8785 | tHalMsgHeader header; |
| 8786 | tHalSsidHotlistSetRsp hotlistSetRsp; |
| 8787 | }tHalSsidHotlistSetRspMsg, *tpHalSsidHotlistSetRspMsg; |
| 8788 | |
| 8789 | /*--------------------------------------------------------------------------- |
| 8790 | * WLAN_HAL_SSID_HOTLIST_RESET_REQ |
| 8791 | *-------------------------------------------------------------------------*/ |
| 8792 | |
| 8793 | typedef PACKED_PRE struct PACKED_POST |
| 8794 | { |
| 8795 | tANI_U32 requestId; |
| 8796 | }tHalSsidHotlistResetReq, *tpHalSsidHotlistResetReq; |
| 8797 | |
| 8798 | typedef PACKED_PRE struct PACKED_POST |
| 8799 | { |
| 8800 | tHalMsgHeader header; |
| 8801 | tHalSsidHotlistResetReq hotlistResetReq; |
| 8802 | }tHalSsidHotlistResetReqMsg, *tpHalSsidHotlistResetReqMsg; |
| 8803 | |
| 8804 | /*--------------------------------------------------------------------------- |
| 8805 | * WLAN_HAL_SSID_HOTLIST_RESET_RSP |
| 8806 | *-------------------------------------------------------------------------*/ |
| 8807 | |
| 8808 | typedef PACKED_PRE struct PACKED_POST |
| 8809 | { |
| 8810 | tANI_U32 requestId; |
| 8811 | tANI_U32 status; |
| 8812 | }tHalSsidHotlistResetRsp, *tpHalSsidHotlistResetRsp; |
| 8813 | |
| 8814 | typedef PACKED_PRE struct PACKED_POST |
| 8815 | { |
| 8816 | tHalMsgHeader header; |
| 8817 | tHalSsidHotlistResetRsp hotlistResetRsp; |
| 8818 | }tHalSsidHotlistResetRspMsg, *tpHalSsidHotlistResetRspMsg; |
| 8819 | |
| 8820 | /*--------------------------------------------------------------------------- |
| 8821 | * WLAN_HAL_SSID_HOTLIST_RESULT_IND |
| 8822 | *-------------------------------------------------------------------------*/ |
| 8823 | |
| 8824 | typedef PACKED_PRE struct PACKED_POST |
| 8825 | { |
| 8826 | tHalMsgHeader header; |
| 8827 | tANI_U32 requestId; |
| 8828 | tANI_BOOLEAN ssid_found; |
| 8829 | tANI_U32 numHotlistSsid; |
| 8830 | tANI_BOOLEAN moreData; |
| 8831 | tANI_U8 ssidHotlist[1]; // pointer to list of type tHalExtScanResultParams |
| 8832 | }tHalSsidHotlistResultIndMsg, *tpHalSsidHotlistResultIndMsg; |
| 8833 | |
| 8834 | /*--------------------------------------------------------------------------- |
Padma, Santhosh Kumar | fa6659a | 2015-09-10 17:47:16 +0530 | [diff] [blame] | 8835 | * WLAN_HAL_HIGH_PRIORITY_DATA_INFO_REQ |
| 8836 | *-------------------------------------------------------------------------*/ |
| 8837 | |
| 8838 | typedef PACKED_PRE struct PACKED_POST |
| 8839 | { |
| 8840 | tANI_BOOLEAN pause; // 1 -> pause, 0 -> unpause |
| 8841 | tANI_U32 reserved; //reserved for future use |
| 8842 | }tHalHighPriorityDataInfoInd, *tpHalHighPriorityDataInfoInd; |
| 8843 | |
| 8844 | typedef PACKED_PRE struct PACKED_POST |
| 8845 | { |
| 8846 | tHalMsgHeader header; |
| 8847 | tHalHighPriorityDataInfoInd highPriorityDataInfoInd; |
| 8848 | }tHalHighPriorityDataInfoIndMsg, *tpHalHighPriorityDataInfoIndMsg; |
| 8849 | |
| 8850 | /*--------------------------------------------------------------------------- |
Siddharth Bhal | bd5efd7 | 2014-09-29 21:21:56 +0530 | [diff] [blame] | 8851 | *WLAN_HAL_MAC_SPOOFED_SCAN_REQ |
| 8852 | *--------------------------------------------------------------------------*/ |
| 8853 | typedef PACKED_PRE struct PACKED_POST |
| 8854 | { |
| 8855 | tANI_U8 macAddr[6]; |
| 8856 | tANI_U32 reserved1; |
| 8857 | tANI_U32 reserved2; |
| 8858 | }tMacSpoofedScanReqType, * tpMacSpoofedScanReqType; |
| 8859 | |
| 8860 | typedef PACKED_PRE struct PACKED_POST |
| 8861 | { |
| 8862 | tHalMsgHeader header; |
| 8863 | tMacSpoofedScanReqType tMacSpoofedScanReqParams; |
| 8864 | } tMacSpoofedScanReqMsg, * tpMacSpoofedScanReqMsg; |
| 8865 | |
| 8866 | /*--------------------------------------------------------------------------- |
| 8867 | * WLAN_HAL_MAC_SPOOFED_SCAN_RSP |
| 8868 | *-------------------------------------------------------------------------*/ |
| 8869 | |
| 8870 | typedef PACKED_PRE struct PACKED_POST |
| 8871 | { |
| 8872 | tANI_U32 status; |
| 8873 | tANI_U32 reserved1; |
| 8874 | } tMacSpoofedScanResp, * tpMacSpoofedScanResp; |
| 8875 | |
| 8876 | typedef PACKED_PRE struct PACKED_POST |
| 8877 | { |
| 8878 | tHalMsgHeader header; |
| 8879 | tMacSpoofedScanResp tMacSpoofedScanRespParams; |
| 8880 | } tMacSpoofedScanRespMsg, * tpMacSpoofedScanRespMsg; |
Siddharth Bhal | e8bfd5f | 2015-03-04 14:51:13 +0530 | [diff] [blame] | 8881 | /*--------------------------------------------------------------------------- |
| 8882 | *WLAN_HAL_GET_FRAME_LOG_REQ |
| 8883 | *--------------------------------------------------------------------------*/ |
| 8884 | typedef PACKED_PRE struct PACKED_POST |
| 8885 | { |
| 8886 | tANI_U8 flags; |
| 8887 | }tGetFrameLogReqType, * tpGetFrameLogReqType; |
| 8888 | |
| 8889 | typedef PACKED_PRE struct PACKED_POST |
| 8890 | { |
| 8891 | tHalMsgHeader header; |
| 8892 | tGetFrameLogReqType tGetFrameLogReqParams; |
| 8893 | } tGetFrameLogReqMsg, * tpGetFrameLogReqMsg; |
| 8894 | |
| 8895 | /*--------------------------------------------------------------------------- |
| 8896 | * WLAN_HAL_GET_FRAME_LOG_RSP |
| 8897 | *-------------------------------------------------------------------------*/ |
| 8898 | typedef PACKED_PRE struct PACKED_POST |
| 8899 | { |
| 8900 | tANI_U32 status; |
| 8901 | } tGetFrameLogResp, * tpGetFrameLogResp; |
| 8902 | |
| 8903 | typedef PACKED_PRE struct PACKED_POST |
| 8904 | { |
| 8905 | tHalMsgHeader header; |
| 8906 | tGetFrameLogResp tGetFrameLogRespParams; |
| 8907 | } tGetFrameLogRespMsg, * tpGetFrameLogRespMsg; |
| 8908 | |
| 8909 | /*--------------------------------------------------------------------------- |
Sachin Ahuja | 715aafc | 2015-07-21 23:35:10 +0530 | [diff] [blame] | 8910 | * WLAN_HAL_FATAL_EVENT_LOGGING_REQ |
| 8911 | *-------------------------------------------------------------------------*/ |
| 8912 | typedef PACKED_PRE struct PACKED_POST |
| 8913 | { |
| 8914 | tANI_U32 reasonCode; |
| 8915 | }tHalFatalEventLoggingReqParams, *tpHalFatalEventLoggingReqParams; |
| 8916 | |
| 8917 | typedef PACKED_PRE struct PACKED_POST |
| 8918 | { |
| 8919 | tHalMsgHeader header; |
| 8920 | tHalFatalEventLoggingReqParams tFatalEventLoggingReqParams; |
| 8921 | }tHalFatalEventLoggingReqMsg, *tpHalFatalEventLoggingReqMsg; |
| 8922 | |
| 8923 | /*--------------------------------------------------------------------------- |
| 8924 | * WLAN_HAL_FATAL_EVENT_LOGGING_RSP |
| 8925 | *-------------------------------------------------------------------------*/ |
| 8926 | typedef PACKED_PRE struct PACKED_POST |
| 8927 | { tANI_U32 status; |
| 8928 | }tHalFatalEventLoggingRspParams, *tpHalFatalEventLoggingRspParams; |
| 8929 | |
| 8930 | typedef PACKED_PRE struct PACKED_POST |
| 8931 | { |
| 8932 | tHalMsgHeader header; |
| 8933 | tHalFatalEventLoggingRspParams tFatalEventLoggingRspParams; |
| 8934 | }tHalFatalEventLoggingRspMsg, *tpHalFatalEventLoggingRspMsg; |
| 8935 | |
Sachin Ahuja | 75c1fd7 | 2015-08-28 15:46:46 +0530 | [diff] [blame] | 8936 | /*--------------------------------------------------------------------------- |
| 8937 | * WLAN_HAL_LOST_LINK_PARAMETERS_IND |
| 8938 | *-------------------------------------------------------------------------*/ |
| 8939 | typedef PACKED_PRE struct PACKED_POST |
| 8940 | { |
| 8941 | tANI_U8 bssIdx; |
| 8942 | tANI_U8 rssi; |
| 8943 | tSirMacAddr selfMacAddr; |
| 8944 | tANI_U32 linkFlCnt; |
| 8945 | tANI_U32 linkFlTx; |
| 8946 | tANI_U32 lastDataRate; |
| 8947 | tANI_U32 rsvd1; |
| 8948 | tANI_U32 rsvd2; |
| 8949 | }tHalLostLinkParametersIndParams, *tpHalLostLinkParametersIndParams; |
| 8950 | |
| 8951 | typedef PACKED_PRE struct PACKED_POST |
| 8952 | { |
| 8953 | tHalMsgHeader header; |
| 8954 | tHalLostLinkParametersIndParams lostLinkParameters; |
| 8955 | }tHalLostLinkParametersIndMsg, *tpHalLostLinkParametersIndMsg; |
Sachin Ahuja | 715aafc | 2015-07-21 23:35:10 +0530 | [diff] [blame] | 8956 | |
| 8957 | |
| 8958 | /*--------------------------------------------------------------------------- |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 8959 | *WLAN_HAL_FW_LOGGING_INIT_REQ |
Siddharth Bhal | e8bfd5f | 2015-03-04 14:51:13 +0530 | [diff] [blame] | 8960 | *--------------------------------------------------------------------------*/ |
| 8961 | typedef PACKED_PRE struct PACKED_POST |
| 8962 | { |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 8963 | /* BIT0 - enable frame logging |
| 8964 | * BIT1 - enableBMUHWtracing |
| 8965 | * BIT2 - enableQXDMlogging |
| 8966 | * BIT3 - enableUElogDpuTxp |
| 8967 | */ |
Siddharth Bhal | e8bfd5f | 2015-03-04 14:51:13 +0530 | [diff] [blame] | 8968 | tANI_U8 enableFlag; |
| 8969 | tANI_U8 frameType; |
| 8970 | tANI_U8 frameSize; |
| 8971 | tANI_U8 bufferMode; |
Siddharth Bhal | c0e09d5 | 2015-06-18 19:06:43 +0530 | [diff] [blame] | 8972 | /* Host mem address to be used as logmailbox */ |
| 8973 | tANI_U64 logMailBoxAddr; |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 8974 | /* firmware will wakeup the host to send logs always */ |
| 8975 | tANI_U8 continuousFrameLogging; |
| 8976 | /* Logging mail box version */ |
| 8977 | tANI_U8 logMailBoxVer; |
Siddharth Bhal | c0e09d5 | 2015-06-18 19:06:43 +0530 | [diff] [blame] | 8978 | /* Max ring size in firmware to log msgs when host is suspended state */ |
| 8979 | tANI_U8 maxLogBuffSize; |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 8980 | /* when firmware log reaches this threshold and |
| 8981 | * if host is awake it will push the logs. |
| 8982 | */ |
| 8983 | tANI_U8 minLogBuffSize; |
| 8984 | /* Reserved for future purpose */ |
| 8985 | tANI_U32 reserved0; |
| 8986 | tANI_U32 reserved1; |
| 8987 | tANI_U32 reserved2; |
| 8988 | }tFWLoggingInitReqType, * tpFWLoggingInitReqType; |
Siddharth Bhal | e8bfd5f | 2015-03-04 14:51:13 +0530 | [diff] [blame] | 8989 | |
| 8990 | typedef PACKED_PRE struct PACKED_POST |
| 8991 | { |
| 8992 | tHalMsgHeader header; |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 8993 | tFWLoggingInitReqType tFWLoggingInitReqParams; |
| 8994 | } tHalFWLoggingInitReqMsg, * tpHalFWLoggingInitReqMsg; |
Siddharth Bhal | e8bfd5f | 2015-03-04 14:51:13 +0530 | [diff] [blame] | 8995 | |
| 8996 | /*--------------------------------------------------------------------------- |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 8997 | * WLAN_HAL_FW_LOGGING_INIT_RSP |
Siddharth Bhal | e8bfd5f | 2015-03-04 14:51:13 +0530 | [diff] [blame] | 8998 | *-------------------------------------------------------------------------*/ |
| 8999 | typedef PACKED_PRE struct PACKED_POST |
| 9000 | { |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 9001 | tANI_U32 status; |
| 9002 | /* FW mail box address */ |
| 9003 | tANI_U64 logMailBoxAddr; |
| 9004 | /* Logging mail box version */ |
| 9005 | tANI_U8 logMailBoxVer; |
| 9006 | /* Qshrink is enabled */ |
| 9007 | tANI_BOOLEAN logCompressEnabled; |
c_manjee | cfd1efb | 2015-09-25 19:32:34 +0530 | [diff] [blame] | 9008 | /* fw_dump_max_size is used to tell fwr mem dump size */ |
| 9009 | tANI_U32 fw_dump_max_size; |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 9010 | /* Reserved for future purpose */ |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 9011 | tANI_U32 reserved1; |
| 9012 | tANI_U32 reserved2; |
| 9013 | } tFWLoggingInitResp, * tpFWLoggingInitResp; |
Siddharth Bhal | e8bfd5f | 2015-03-04 14:51:13 +0530 | [diff] [blame] | 9014 | |
Gupta, Kapil | 042e9fb | 2015-09-30 13:34:22 +0530 | [diff] [blame] | 9015 | |
| 9016 | typedef PACKED_PRE struct PACKED_POST { |
| 9017 | tANI_U32 request_id; |
| 9018 | tSirMacAddr bssId; |
| 9019 | tANI_S8 min_rssi; |
| 9020 | tANI_S8 max_rssi; |
| 9021 | } tHalStartRssiMonitoringReqParams, * tpHalStartRssiMonitoringReqParams; |
| 9022 | |
| 9023 | typedef PACKED_PRE struct PACKED_POST |
| 9024 | { |
| 9025 | tHalMsgHeader header; |
| 9026 | tHalStartRssiMonitoringReqParams startRssiMonitoringReqParams; |
| 9027 | }tHalStartRssimonitoringReq, * tpHalStartRssimonitoringReq; |
| 9028 | |
| 9029 | //Following structure will be used for WLAN_HAL_START_RSSI_MONITORING_RSP |
| 9030 | typedef PACKED_PRE struct PACKED_POST { |
| 9031 | tANI_U32 request_id; |
| 9032 | tANI_U32 status; |
| 9033 | } tHalStartRssimonitoringRspParams, * tpHalStartRssimonitoringRspParams; |
| 9034 | |
| 9035 | typedef PACKED_PRE struct PACKED_POST |
| 9036 | { |
| 9037 | tHalMsgHeader header; |
| 9038 | tHalStartRssimonitoringRspParams startRssimonitoringRspParams; |
| 9039 | }tHalStartRssimonitoringRsp, * tpHalStartRssimonitoringRsp; |
| 9040 | |
| 9041 | //Following structures will be used for WLAN_HAL_RSSI_MONITORING_IND |
| 9042 | typedef PACKED_PRE struct PACKED_POST |
| 9043 | { |
| 9044 | tANI_U32 request_id; |
| 9045 | tSirMacAddr bssId; |
| 9046 | tANI_S8 rssi; |
| 9047 | } tHalRssiMonitorIndParams, * tpHalRssiMonitorIndParams; |
| 9048 | |
| 9049 | typedef PACKED_PRE struct PACKED_POST |
| 9050 | { |
| 9051 | tHalMsgHeader header; |
| 9052 | tHalRssiMonitorIndParams RssiMonitorIndParams; |
| 9053 | }tHalRssiMonitorInd, * tpHalRssiMonitorInd; |
| 9054 | |
| 9055 | |
| 9056 | //Following structures will be used for WLAN_HAL_STOP_RSSI_MONITORING_REQ |
| 9057 | typedef PACKED_PRE struct PACKED_POST { |
| 9058 | tANI_U32 request_id; |
| 9059 | tSirMacAddr bssId; |
| 9060 | } tHalStopRssiMonitoringParams, * tpHalStopRssiMonitoringParams; |
| 9061 | |
| 9062 | typedef PACKED_PRE struct PACKED_POST |
| 9063 | { |
| 9064 | tHalMsgHeader header; |
| 9065 | tHalStopRssiMonitoringParams stopRssiMonitoringParams; |
| 9066 | }tHalStopRssimonitoringReq, * tpHalStopRssimonitoringReq; |
| 9067 | |
| 9068 | //Following structures will be used for WLAN_HAL_STOP_RSSI_MONITORING_RSP |
| 9069 | typedef PACKED_PRE struct PACKED_POST { |
| 9070 | tANI_U32 request_id; |
| 9071 | tANI_U32 status; |
| 9072 | } tHalStopRssimonitoringRspParams, * tpHalStopRssimonitoringRspParams; |
| 9073 | |
| 9074 | typedef PACKED_PRE struct PACKED_POST |
| 9075 | { |
| 9076 | tHalMsgHeader header; |
| 9077 | tHalStopRssimonitoringRspParams stopRssimonitoringRspParams; |
| 9078 | }tHalStopRssimonitoringRsp, * tpHalStopRssimonitoringRsp; |
| 9079 | |
| 9080 | |
Siddharth Bhal | e8bfd5f | 2015-03-04 14:51:13 +0530 | [diff] [blame] | 9081 | typedef PACKED_PRE struct PACKED_POST |
| 9082 | { |
| 9083 | tHalMsgHeader header; |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 9084 | tFWLoggingInitResp tFWLoggingInitRespParams; |
| 9085 | } tFWLoggingInitRespMsg, * tpFWLoggingInitRespMsg; |
| 9086 | |
| 9087 | /*--------------------------------------------------------------------------- |
Kapil Gupta | c104363 | 2016-06-25 00:23:30 +0530 | [diff] [blame] | 9088 | * WLAN_HAL_SET_PER_ROAM_CONFIG_REQ |
| 9089 | *---------------------------------------------------------------------------*/ |
| 9090 | |
| 9091 | typedef PACKED_PRE struct PACKED_POST { |
| 9092 | tANI_U32 request_id; |
| 9093 | tANI_U32 isPERRoamCCAEnabled; |
| 9094 | tANI_U32 rateUpThreshold; |
| 9095 | tANI_U32 rateDownThreshold; |
| 9096 | tANI_U32 waitPeriodForNextPERScan; |
| 9097 | tANI_U32 PERtimerThreshold; |
| 9098 | tANI_U32 PERroamTriggerPercent; |
Kapil Gupta | ffe2152 | 2016-08-29 12:33:00 +0530 | [diff] [blame] | 9099 | tANI_S16 PERRoamFullScanThreshold; |
| 9100 | tANI_U16 reserved; |
Kapil Gupta | c104363 | 2016-06-25 00:23:30 +0530 | [diff] [blame] | 9101 | } tPerRoamConfigParams, * tpPerRoamConfigParams; |
| 9102 | |
| 9103 | typedef PACKED_PRE struct PACKED_POST |
| 9104 | { |
| 9105 | tHalMsgHeader header; |
| 9106 | tPerRoamConfigParams perRoamConfigParams; |
| 9107 | } tSetPerRoamConfigReq, * tpSetPerRoamConfigReq; |
| 9108 | |
| 9109 | /*--------------------------------------------------------------------------- |
| 9110 | * WLAN_HAL_SET_PER_ROAM_CONFIG_RSP |
| 9111 | *---------------------------------------------------------------------------*/ |
| 9112 | |
| 9113 | typedef PACKED_PRE struct PACKED_POST |
| 9114 | { |
| 9115 | /* Success or Failure */ |
| 9116 | tANI_U32 status; |
| 9117 | } tConfigPerRoamRspParams, * tpConfigPerRoamRspParams; |
| 9118 | |
| 9119 | typedef PACKED_PRE struct PACKED_POST |
| 9120 | { |
| 9121 | tHalMsgHeader header; |
| 9122 | tConfigPerRoamRspParams configPerRoamRspParams; |
| 9123 | } tSetPerRoamConfigRsp, * tpSetPerRoamConfigRsp; |
| 9124 | |
| 9125 | /*--------------------------------------------------------------------------- |
| 9126 | * WLAN_HAL_PER_ROAM_SCAN_TRIGGER_REQ |
| 9127 | *---------------------------------------------------------------------------*/ |
| 9128 | |
| 9129 | typedef PACKED_PRE struct PACKED_POST { |
| 9130 | bool roamScanReq; |
| 9131 | } tStartRoamScanTriggerParams, * tpStartRoamScanTriggerParams; |
| 9132 | |
| 9133 | typedef PACKED_PRE struct PACKED_POST { |
| 9134 | |
| 9135 | tHalMsgHeader header; |
| 9136 | tStartRoamScanTriggerParams startRoamScanTriggerParams; |
| 9137 | } tStartRoamScanReq, *tpStartRoamScanReq; |
| 9138 | |
| 9139 | /*--------------------------------------------------------------------------- |
| 9140 | * WLAN_HAL_PER_ROAM_SCAN_TRIGGER_RSP |
| 9141 | *---------------------------------------------------------------------------*/ |
| 9142 | |
| 9143 | typedef PACKED_PRE struct PACKED_POST |
| 9144 | { |
| 9145 | /* Success /Failure / Nil result */ |
| 9146 | tANI_U32 status; |
| 9147 | } tConfigRoamScanRspParams, * tpConfigRoamScanRspParams; |
| 9148 | |
| 9149 | typedef PACKED_PRE struct PACKED_POST |
| 9150 | { |
| 9151 | tHalMsgHeader header; |
| 9152 | tConfigRoamScanRspParams configRoamScanRspParams; |
| 9153 | } tSetRoamScanConfigRsp, * tpSetRoamScanConfigRsp; |
| 9154 | |
Manjeet Singh | 4dedb50 | 2017-01-17 11:46:35 +0530 | [diff] [blame] | 9155 | /*--------------------------------------------------------------------------- |
| 9156 | * WLAN_HAL_CAPTURE_GET_TSF_TSTAMP |
| 9157 | *-------------------------------------------------------------------------*/ |
| 9158 | typedef PACKED_PRE struct PACKED_POST |
| 9159 | { |
| 9160 | uint8 uBssIdx; |
| 9161 | boolean capTSFget; |
| 9162 | }tHalCapTSFget, *tptHalCapTSFget; |
| 9163 | |
| 9164 | typedef PACKED_PRE struct PACKED_POST |
| 9165 | { |
| 9166 | tHalMsgHeader header; |
| 9167 | tHalCapTSFget capTSFget; |
| 9168 | }tHalCapTSFgetReqInd, *tpHalCapTSFgetReqInd; |
| 9169 | |
| 9170 | /*--------------------------------------------------------------------------- |
| 9171 | WLAN_HAL_CAPTURE_GET_TSF_TSTAMP_RSP |
| 9172 | ---------------------------------------------------------------------------*/ |
| 9173 | |
| 9174 | typedef PACKED_PRE struct PACKED_POST |
| 9175 | { |
| 9176 | /* Success /Failure / Nil result */ |
| 9177 | tANI_U32 status; |
| 9178 | tANI_U32 tsf_lo; |
| 9179 | tANI_U32 tsf_hi; |
| 9180 | } tConfigcapTSFgetRspParams, * tptConfigcapTSFgetRspParams; |
| 9181 | |
| 9182 | typedef PACKED_PRE struct PACKED_POST |
| 9183 | { |
| 9184 | tHalMsgHeader header; |
| 9185 | tConfigcapTSFgetRspParams configcapTSFgetRspParams; |
| 9186 | } tcapGetTSFConfigRsp, * tpcapGetTSFConfigRsp; |
| 9187 | |
Kapil Gupta | c104363 | 2016-06-25 00:23:30 +0530 | [diff] [blame] | 9188 | |
| 9189 | #define PER_ROAM_MAX_AP_CNT 30 |
| 9190 | #define PER_ROAM_MAX_CANDIDATE_CNT 15 |
| 9191 | |
| 9192 | /* Candidate Information to be shared in the Candidate Indication, |
| 9193 | * similar to what is sent in legacy roaming with following additional info |
| 9194 | */ |
| 9195 | |
| 9196 | typedef PACKED_PRE struct PACKED_POST { |
| 9197 | tANI_U8 channelNumber; |
| 9198 | tANI_U8 channelCCA; |
| 9199 | tANI_U8 otherApCount; |
| 9200 | tANI_S8 otherApRssi[PER_ROAM_MAX_AP_CNT]; |
| 9201 | } tCandidateChannelInfo, * tpCandidateChannelInfo; |
| 9202 | |
| 9203 | typedef PACKED_PRE struct PACKED_POST { |
| 9204 | tANI_U32 candidateCount; |
| 9205 | tCandidateChannelInfo channelInfo[PER_ROAM_MAX_CANDIDATE_CNT]; |
| 9206 | } tPerRoamScanResult, * tpPerRoamScanResult; |
| 9207 | |
| 9208 | |
| 9209 | /*--------------------------------------------------------------------------- |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 9210 | * WLAN_HAL_FW_LOGGING_DXE_DONE_IND |
| 9211 | *-------------------------------------------------------------------------*/ |
| 9212 | typedef PACKED_PRE struct PACKED_POST |
| 9213 | { |
Hanumantha Reddy Pothula | 33df970 | 2015-09-15 20:05:45 +0530 | [diff] [blame] | 9214 | tANI_U16 status; |
| 9215 | tANI_U16 doneIndicationForSource; |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 9216 | tANI_U32 logBuffLength[MAX_NUM_OF_BUFFER]; |
| 9217 | tANI_U64 logBuffAddress[MAX_NUM_OF_BUFFER]; |
| 9218 | } tFWLoggingDxeDoneInd, * tpFWLoggingDxeDoneInd; |
| 9219 | |
| 9220 | typedef PACKED_PRE struct PACKED_POST |
| 9221 | { |
| 9222 | tHalMsgHeader header; |
| 9223 | tFWLoggingDxeDoneInd tFWLoggingDxeDoneIndParams; |
| 9224 | } tFWLoggingDxeDoneIndMsg, * tpFWLoggingDxeDoneIndMsg; |
| 9225 | |
| 9226 | /*--------------------------------------------------------------------------- |
Kapil Gupta | e667f95 | 2016-12-20 18:23:27 +0530 | [diff] [blame] | 9227 | * WLAN_HAL_APFIND_CMDID |
| 9228 | * ---------------------------------------------------------------------------*/ |
| 9229 | |
| 9230 | #define MAX_ARRAY_SIZE 1000 |
| 9231 | typedef PACKED_PRE struct PACKED_POST |
| 9232 | { |
| 9233 | tANI_U16 msg_version:4; |
| 9234 | tANI_U16 msg_id:12; |
| 9235 | tANI_U16 msg_len:16; |
| 9236 | tANI_U16 handle; |
| 9237 | tANI_U16 transaction_id; |
| 9238 | } tApfindMsgHeader, *tpApfindMsgHeader; |
| 9239 | |
| 9240 | typedef PACKED_PRE struct PACKED_POST |
| 9241 | { |
| 9242 | tANI_U16 type; |
| 9243 | tANI_U16 length; |
| 9244 | tANI_U8* value; |
| 9245 | } tApfindTlv, *tpApfindTlv; |
| 9246 | |
| 9247 | typedef PACKED_PRE struct PACKED_POST |
| 9248 | { |
| 9249 | tApfindMsgHeader apFindHeader; |
| 9250 | tANI_U8 ptlv[MAX_ARRAY_SIZE]; |
| 9251 | } tQRFPrefNetwListParams, *tpQRFPrefNetwListParams; |
| 9252 | |
| 9253 | typedef enum |
| 9254 | { |
| 9255 | APFIND_MSG_ID_ERROR_RSP = 0, |
| 9256 | APFIND_MSG_ID_ENABLE_REQ = 1, |
| 9257 | APFIND_MSG_ID_SET_SSID = 2, |
| 9258 | APFIND_MSG_ID_SET_MAC = 3, |
| 9259 | APFIND_MSG_ID_SET_PARAMS = 4, |
| 9260 | } tApfindMsgId; |
| 9261 | |
| 9262 | typedef PACKED_PRE struct PACKED_POST |
| 9263 | { |
| 9264 | tHalMsgHeader header; |
| 9265 | tQRFPrefNetwListParams qRFprefNetwListParams; |
| 9266 | } tQRFSetPrefNetwListReq, *tpQRFSetPrefNetwListReq; |
| 9267 | |
| 9268 | #define QRF_MAX_SUPPORTED_NETWORKS 10 |
| 9269 | |
| 9270 | typedef PACKED_PRE struct PACKED_POST { |
| 9271 | /*Network that was found with the highest RSSI*/ |
| 9272 | tSirMacSSid ssId; |
| 9273 | /*Indicates the RSSI */ |
| 9274 | tANI_U8 rssi; |
| 9275 | /* The MPDU frame length of a beacon or probe rsp. |
| 9276 | * data is the start of the frame |
| 9277 | */ |
| 9278 | tANI_U16 frameLength; |
| 9279 | } tQrfNetwFoundParam, *tpQrfNetwFoundParam; |
| 9280 | |
| 9281 | typedef PACKED_PRE struct PACKED_POST { |
| 9282 | uint8 netwCount; |
| 9283 | tQrfNetwFoundParam qrfNetwParams[QRF_MAX_SUPPORTED_NETWORKS]; |
| 9284 | } tQrfPrefNetwFoundParams, * tpQrfPrefNetwFoundParams; |
| 9285 | |
| 9286 | /* |
| 9287 | * Preferred network found indication |
| 9288 | */ |
| 9289 | typedef PACKED_PRE struct PACKED_POST { |
| 9290 | tHalMsgHeader header; |
| 9291 | tQrfPrefNetwFoundParams qrfPrefNetwFoundParams; |
| 9292 | } tQrfPrefNetwFoundInd, *tpQrfPrefNetwFoundInd; |
| 9293 | |
| 9294 | |
| 9295 | /*--------------------------------------------------------------------------- |
Siddharth Bhal | 14eb5f1 | 2015-05-27 22:35:47 +0530 | [diff] [blame] | 9296 | * Logging mail box structure |
| 9297 | *-------------------------------------------------------------------------*/ |
| 9298 | |
| 9299 | #define MAILBOX_VERSION_V1 0x1 |
| 9300 | |
| 9301 | typedef PACKED_PRE struct PACKED_POST |
| 9302 | { |
| 9303 | /* Logging mail box version */ |
| 9304 | tANI_U8 logMbVersion; |
| 9305 | /* Current logging buffer address */ |
| 9306 | tANI_U64 logBuffAddress[MAX_NUM_OF_BUFFER]; |
| 9307 | /* Current logging buffer length */ |
| 9308 | tANI_U32 logBuffLength[MAX_NUM_OF_BUFFER]; |
| 9309 | /* Flush reason code 0: Host requested Non zero FW FATAL event*/ |
| 9310 | tANI_U16 reasonCode; |
| 9311 | /* Log type i.e. Mgmt frame = 0, QXDM = 1, FW Mem dump = 2 */ |
| 9312 | tANI_U8 logType; |
| 9313 | /* Indicate if Last segment of log is received*/ |
| 9314 | tANI_BOOLEAN done; |
| 9315 | }tLoggingMailBox, *tpLoggingMailBox; |
Siddharth Bhal | bd5efd7 | 2014-09-29 21:21:56 +0530 | [diff] [blame] | 9316 | |
Katya Nigam | f0511f6 | 2015-05-05 16:40:57 +0530 | [diff] [blame] | 9317 | /*--------------------------------------------------------------------------- |
c_manjee | cfd1efb | 2015-09-25 19:32:34 +0530 | [diff] [blame] | 9318 | *WLAN_HAL_FW_MEMORY_DUMP_REQ |
| 9319 | *--------------------------------------------------------------------------*/ |
| 9320 | typedef PACKED_PRE struct PACKED_POST |
| 9321 | { |
| 9322 | tANI_U32 reserved; |
| 9323 | }tHalFwMemoryDumpReqType, * tpHalFwMemoryDumpReqType; |
| 9324 | |
| 9325 | typedef PACKED_PRE struct PACKED_POST |
| 9326 | { |
| 9327 | tHalMsgHeader header; |
| 9328 | tHalFwMemoryDumpReqType tFwMemoryDumpReqParam; |
| 9329 | } tHalFwMemoryDumpReqMsg, * tpHalFwMemoryDumpReqMsg; |
| 9330 | |
| 9331 | /*--------------------------------------------------------------------------- |
| 9332 | * WLAN_HAL_FW_MEMORY_DUMP_RSP |
| 9333 | *-------------------------------------------------------------------------*/ |
| 9334 | typedef PACKED_PRE struct PACKED_POST |
| 9335 | { |
| 9336 | tANI_U32 status; |
| 9337 | } tHalFwMemoryDumpRespType, * tpHalFwMemoryDumpRespType; |
| 9338 | |
| 9339 | typedef PACKED_PRE struct PACKED_POST |
| 9340 | { |
| 9341 | tHalMsgHeader header; |
| 9342 | tHalFwMemoryDumpRespType tFwMemoryDumpResp; |
| 9343 | } tHalFwMemoryDumpRespMsg, * tpHalFwMemoryDumpRespMsg; |
| 9344 | |
| 9345 | |
| 9346 | /*--------------------------------------------------------------------------- |
Katya Nigam | f0511f6 | 2015-05-05 16:40:57 +0530 | [diff] [blame] | 9347 | * WLAN_HAL_ENABLE_MONITOR_MODE_REQ |
| 9348 | *-------------------------------------------------------------------------*/ |
| 9349 | |
| 9350 | /* only 1 filter is supported as of now */ |
| 9351 | #define NUM_FILTERS_SUPPORTED 1 |
| 9352 | |
| 9353 | typedef PACKED_PRE struct PACKED_POST |
| 9354 | { |
| 9355 | tSirMacAddr macAddr; |
| 9356 | tANI_U8 isA1filteringNeeded; |
| 9357 | tANI_U8 isA2filteringNeeded; |
| 9358 | tANI_U8 isA3filteringNeeded; |
| 9359 | }tHalMacFilter, *tpHalMacFilter; |
| 9360 | |
| 9361 | typedef PACKED_PRE struct PACKED_POST |
| 9362 | { |
| 9363 | tANI_U8 channelNumber; |
| 9364 | ePhyChanBondState cbState; |
| 9365 | |
| 9366 | tANI_U32 maxAmpduLen; |
| 9367 | tANI_U32 maxMpduInAmpduLen; |
| 9368 | |
| 9369 | tANI_U8 crcCheckEnabled; |
| 9370 | |
| 9371 | /* value is "1" for this FR. "0" means no filter, RECEIVE ALL PACKETS */ |
| 9372 | tANI_U8 numMacFilters; |
| 9373 | tHalMacFilter macFilters[NUM_FILTERS_SUPPORTED]; |
| 9374 | |
| 9375 | /* Each bit position maps to IEEE convention of typeSubtype */ |
| 9376 | tANI_U64 typeSubtypeBitmap; |
| 9377 | |
| 9378 | tANI_U64 reserved; |
| 9379 | |
| 9380 | }tHalEnableMonitorModeReqParams, *tpHalEnableMonitorModeReqParams; |
| 9381 | |
| 9382 | typedef PACKED_PRE struct PACKED_POST |
| 9383 | { |
| 9384 | tHalMsgHeader header; |
| 9385 | tHalEnableMonitorModeReqParams enableMonitorModeReqParams; |
| 9386 | }tHalEnableMonitorModeReqMsg, *tpHalEnableMonitorModeReqMsg; |
| 9387 | |
| 9388 | |
| 9389 | /*--------------------------------------------------------------------------- |
| 9390 | * WLAN_HAL_ENABLE_MONITOR_MODE_RSP |
| 9391 | *-------------------------------------------------------------------------*/ |
| 9392 | |
| 9393 | typedef PACKED_PRE struct PACKED_POST |
| 9394 | { |
| 9395 | tANI_U32 status; |
| 9396 | }tHalEnableMonitorModeRspParams, *tpHalEnableMonitorModeRspParams; |
| 9397 | |
| 9398 | typedef PACKED_PRE struct PACKED_POST |
| 9399 | { |
| 9400 | tHalMsgHeader header; |
| 9401 | tHalEnableMonitorModeRspParams enableMonitorModeRspParams; |
| 9402 | }tHalEnableMonitorModeRspMsg, *tpHalEnableMonitorModeRspMsg; |
| 9403 | |
| 9404 | /*--------------------------------------------------------------------------- |
| 9405 | * WLAN_HAL_DISABLE_MONITOR_MODE_REQ |
| 9406 | *-------------------------------------------------------------------------*/ |
| 9407 | |
| 9408 | typedef PACKED_PRE struct PACKED_POST |
| 9409 | { |
| 9410 | tHalMsgHeader header; |
| 9411 | tANI_U8 resetConfiguration; |
| 9412 | }tHalDisableMonitorModeReqMsg, *tpHalDisableMonitorModeReqMsg; |
| 9413 | |
| 9414 | /*--------------------------------------------------------------------------- |
| 9415 | * WLAN_HAL_DISABLE_MONITOR_MODE_RSP |
| 9416 | *-------------------------------------------------------------------------*/ |
| 9417 | |
| 9418 | typedef PACKED_PRE struct PACKED_POST |
| 9419 | { |
| 9420 | tANI_U32 status; |
| 9421 | }tHalDisableMonitorModeRspParams, *tpHalDisableMonitorModeRspParams; |
| 9422 | |
| 9423 | typedef PACKED_PRE struct PACKED_POST |
| 9424 | { |
| 9425 | tHalMsgHeader header; |
| 9426 | tHalDisableMonitorModeRspParams disableMonitorModeRspParams; |
| 9427 | }tHalDisableMonitorModeRspMsg, *tpHalDisableMonitorModeRspMsg; |
| 9428 | |
Mahesh A Saptasagar | 94c7cd4 | 2015-09-08 13:19:14 +0530 | [diff] [blame] | 9429 | typedef PACKED_PRE struct PACKED_POST |
| 9430 | { |
| 9431 | tANI_U8 status; |
| 9432 | }tHalAvoidFreqRangeCtrlParam, *tpHalAvoidFreqRangeCtrlParam; |
| 9433 | |
Arun Khandavalli | afc1643 | 2015-10-16 20:11:31 +0530 | [diff] [blame] | 9434 | typedef PACKED_PRE struct PACKED_POST |
| 9435 | { |
| 9436 | tANI_U8 paramType; |
| 9437 | tANI_U32 paramValue; |
| 9438 | tSirMacAddr bssid; |
| 9439 | } tSetWifiConfigParams, *tpSetWifiConfigParams; |
| 9440 | |
| 9441 | typedef PACKED_PRE struct PACKED_POST |
| 9442 | { |
| 9443 | tHalMsgHeader header; |
| 9444 | tSetWifiConfigParams wifiConfigParams; |
| 9445 | } tSetWifiConfigParamsReq, *tpSetWifiConfigParamsReq; |
| 9446 | |
| 9447 | typedef PACKED_PRE struct PACKED_POST { |
| 9448 | tANI_U32 status; |
| 9449 | } tHalSetWifiConfigRspParams, * tpHalSetWifiConfigRspParams; |
| 9450 | |
| 9451 | typedef PACKED_PRE struct PACKED_POST |
| 9452 | { |
| 9453 | tHalMsgHeader header; |
| 9454 | |
| 9455 | tHalSetWifiConfigRspParams setWifiConfigRspParams; |
| 9456 | } tHalSetWifiConfigRsp, *tpHalSetWifiConfigRsp; |
| 9457 | |
Mahesh A Saptasagar | f5ebe41 | 2015-12-18 19:01:44 +0530 | [diff] [blame] | 9458 | /*--------------------------------------------------------------------------- |
| 9459 | * WLAN_HAL_ANTENNA_DIVERSITY_SELECTION_REQ |
| 9460 | *-------------------------------------------------------------------------*/ |
| 9461 | typedef PACKED_PRE struct PACKED_POST |
| 9462 | { |
| 9463 | tANI_U32 reserved; |
| 9464 | } tHalAntennaDiversitySelectionReqParams, *tpHalAntennaDiversitySelectionReqParams; |
| 9465 | |
| 9466 | typedef PACKED_PRE struct PACKED_POST |
| 9467 | { |
| 9468 | tHalMsgHeader header; |
| 9469 | tHalAntennaDiversitySelectionReqParams AntDivSelReqParams; |
| 9470 | }tHalAntennaDiversitySelectionReqMsg; |
| 9471 | |
| 9472 | /*--------------------------------------------------------------------------- |
| 9473 | * WLAN_HAL_ANTENNA_DIVERSITY_SELECTION_RSP |
| 9474 | *-------------------------------------------------------------------------*/ |
| 9475 | |
| 9476 | typedef PACKED_PRE struct PACKED_POST |
| 9477 | { |
| 9478 | tANI_U16 status; |
| 9479 | tANI_U32 selectedAntennaId; |
| 9480 | tANI_U32 reserved; |
| 9481 | } tHalAntennaDiversitySelectionRspParams, *tpHalAntennaDiversitySelectionRspParams; |
| 9482 | |
Mahesh A Saptasagar | bdad5eb | 2016-02-04 19:25:25 +0530 | [diff] [blame] | 9483 | /* WDI_MODIFY_ROAM_PARAMS_IND */ |
| 9484 | typedef PACKED_PRE struct PACKED_POST { |
| 9485 | tANI_U8 param; |
| 9486 | tANI_U32 value; |
| 9487 | } tHalModifyRoamParamsIndParams, *tpHalModifyRoamParamsIndParams; |
| 9488 | |
| 9489 | typedef PACKED_PRE struct PACKED_POST |
| 9490 | { |
| 9491 | tHalMsgHeader header; |
| 9492 | tHalModifyRoamParamsIndParams modifyRoamParamsReqParams; |
| 9493 | } tHalModifyRoamParamsInd, *tpHalModifyRoamParamsInd; |
| 9494 | |
Agrawal Ashish | c6aa013 | 2016-12-09 15:59:29 +0530 | [diff] [blame] | 9495 | typedef PACKED_PRE struct PACKED_POST |
| 9496 | { |
| 9497 | tSirMacAddr selfMacAddr; |
| 9498 | tANI_U32 enable; |
| 9499 | tSirMacSSid ssId; |
| 9500 | tANI_U32 rsn_authmode; |
| 9501 | tANI_U32 rsn_ucastcipherset; |
| 9502 | tANI_U32 rsn_mcastcipherset; |
| 9503 | tANI_U32 rsn_mcastmgmtcipherset; |
| 9504 | tANI_U32 channel; |
| 9505 | tANI_U32 psk_len; |
| 9506 | tANI_U8 psk[1]; |
| 9507 | } tSapOffloadEnableMsg, *tpSapOffloadEnableMsg; |
| 9508 | |
| 9509 | typedef PACKED_PRE struct PACKED_POST |
| 9510 | { |
| 9511 | tHalMsgHeader header; |
| 9512 | tSapOffloadEnableMsg SapOffloadEnableMsg; |
| 9513 | } tHalSapoffloadEnable, *tpHalSapoffloadEnable; |
| 9514 | |
Anurag Chouhan | 9b3383a | 2016-12-13 22:29:55 +0530 | [diff] [blame] | 9515 | /*--------------------------------------------------------------------------- |
| 9516 | * WLAN_HAL_DHCP_SERVER_OFFLOAD_REQ |
| 9517 | *--------------------------------------------------------------------------*/ |
| 9518 | typedef PACKED_PRE struct PACKED_POST |
| 9519 | { |
| 9520 | tANI_U8 bss_idx; |
| 9521 | tANI_U32 enable; |
| 9522 | tANI_U32 srv_ipv4; /* server IP */ |
| 9523 | tANI_U32 start_lsb; /* starting address assigned to client */ |
| 9524 | tANI_U32 num_client; /* number of clients we support */ |
| 9525 | } hal_dhcp_srv_offload_req_param_t, *hal_dhcp_srv_offload_req_params; |
| 9526 | |
| 9527 | typedef PACKED_PRE struct PACKED_POST |
| 9528 | { |
| 9529 | tHalMsgHeader header; |
| 9530 | hal_dhcp_srv_offload_req_param_t dhcp_srv_offload_req_params; |
| 9531 | } hal_dhcp_srv_offload_req_msg_t; |
| 9532 | |
| 9533 | /*--------------------------------------------------------------------------- |
| 9534 | * WLAN_HAL_DHCP_SERVER_OFFLOAD_RSP |
| 9535 | *--------------------------------------------------------------------------*/ |
| 9536 | typedef PACKED_PRE struct PACKED_POST |
| 9537 | { |
| 9538 | tANI_U32 status; |
| 9539 | } hal_dhcp_srv_offload_rsp_param_t, *hal_dhcp_srv_offload_rsp_params; |
| 9540 | |
| 9541 | typedef PACKED_PRE struct PACKED_POST |
| 9542 | { |
| 9543 | tHalMsgHeader header; |
| 9544 | hal_dhcp_srv_offload_rsp_param_t dhcp_srv_offload_rsp_params; |
| 9545 | } hal_dhcp_srv_offload_rsp_msg_t, *hal_dhcp_srv_offload_rsp_msg; |
| 9546 | |
Anurag Chouhan | 9c3ddc7 | 2016-12-16 13:12:13 +0530 | [diff] [blame] | 9547 | /*--------------------------------------------------------------------------- |
| 9548 | * WLAN_HAL_MDNS_ENABLE_OFFLOAD_REQ |
| 9549 | *--------------------------------------------------------------------------*/ |
| 9550 | typedef PACKED_PRE struct PACKED_POST |
| 9551 | { |
| 9552 | tANI_U8 bss_idx; |
| 9553 | tANI_U32 enable; |
| 9554 | } hal_mdns_enable_offload_req_param_t, *hal_mdns_enable_offload_req_params; |
| 9555 | |
| 9556 | typedef PACKED_PRE struct PACKED_POST |
| 9557 | { |
| 9558 | tHalMsgHeader header; |
| 9559 | hal_mdns_enable_offload_req_param_t mdns_enable_req_params; |
| 9560 | } hal_mdns_enable_offload_req_msg_t; |
| 9561 | |
| 9562 | /*--------------------------------------------------------------------------- |
| 9563 | * WLAN_HAL_MDNS_ENABLE_OFFLOAD_RSP |
| 9564 | *--------------------------------------------------------------------------*/ |
| 9565 | typedef PACKED_PRE struct PACKED_POST |
| 9566 | { |
| 9567 | tANI_U32 status; |
| 9568 | } hal_mdns_enable_offload_rsp_param_t, *hal_mdns_enable_offload_rsp_params; |
| 9569 | |
| 9570 | typedef PACKED_PRE struct PACKED_POST |
| 9571 | { |
| 9572 | tHalMsgHeader header; |
| 9573 | hal_mdns_enable_offload_rsp_param_t mdns_enable_rsp_params; |
| 9574 | } hal_mdns_enable_offload_rsp_msg_t, *hal_mdns_enable_offload_rsp_msg; |
| 9575 | |
| 9576 | /*--------------------------------------------------------------------------- |
| 9577 | * WLAN_HAL_MDNS_FQDN_OFFLOAD_REQ |
| 9578 | *--------------------------------------------------------------------------*/ |
| 9579 | typedef PACKED_PRE struct PACKED_POST |
| 9580 | { |
| 9581 | tANI_U8 bss_idx; |
| 9582 | tANI_U32 type; |
| 9583 | tANI_U32 fqdn_len; |
| 9584 | tANI_U8 fqdn_data[1]; |
| 9585 | } hal_mdns_fqdn_offload_req_param_t, *hal_mdns_fqdn_offload_req_params; |
| 9586 | |
| 9587 | typedef PACKED_PRE struct PACKED_POST |
| 9588 | { |
| 9589 | tHalMsgHeader header; |
| 9590 | hal_mdns_fqdn_offload_req_param_t mdns_fqdn_req_params; |
| 9591 | } hal_mdns_fqdn_offload_req_msg_t; |
| 9592 | |
| 9593 | /*--------------------------------------------------------------------------- |
| 9594 | * WLAN_HAL_MDNS_FQDN_OFFLOAD_RSP |
| 9595 | *--------------------------------------------------------------------------*/ |
| 9596 | typedef PACKED_PRE struct PACKED_POST |
| 9597 | { |
| 9598 | tANI_U32 status; |
| 9599 | } hal_mdns_fqdn_offload_rsp_param_t, *hal_mdns_fqdn_offload_rsp_params; |
| 9600 | |
| 9601 | typedef PACKED_PRE struct PACKED_POST |
| 9602 | { |
| 9603 | tHalMsgHeader header; |
| 9604 | hal_mdns_fqdn_offload_rsp_param_t mdns_fqdn_rsp_params; |
| 9605 | } hal_mdns_fqdn_offload_rsp_msg_t, *hal_mdns_fqdn_offload_rsp_msg; |
| 9606 | |
| 9607 | /*--------------------------------------------------------------------------- |
| 9608 | * WLAN_HAL_MDNS_RESP_OFFLOAD_REQ |
| 9609 | *--------------------------------------------------------------------------*/ |
| 9610 | typedef PACKED_PRE struct PACKED_POST |
| 9611 | { |
| 9612 | tANI_U8 bss_idx; |
| 9613 | tANI_U32 ar_count; |
| 9614 | tANI_U32 resp_len; |
| 9615 | tANI_U8 resp_data[1]; |
| 9616 | } hal_mdns_resp_offload_req_param_t, *hal_mdns_resp_offload_req_params; |
| 9617 | |
| 9618 | typedef PACKED_PRE struct PACKED_POST |
| 9619 | { |
| 9620 | tHalMsgHeader header; |
| 9621 | hal_mdns_resp_offload_req_param_t mdns_resp_req_params; |
| 9622 | } hal_mdns_resp_offload_req_msg_t; |
| 9623 | |
| 9624 | /*--------------------------------------------------------------------------- |
| 9625 | * WLAN_HAL_MDNS_RESP_OFFLOAD_RSP |
| 9626 | *--------------------------------------------------------------------------*/ |
| 9627 | typedef PACKED_PRE struct PACKED_POST |
| 9628 | { |
| 9629 | tANI_U32 status; |
| 9630 | } hal_mdns_resp_offload_rsp_param_t, *hal_mdns_resp_offload_rsp_params; |
| 9631 | |
| 9632 | typedef PACKED_PRE struct PACKED_POST |
| 9633 | { |
| 9634 | tHalMsgHeader header; |
| 9635 | hal_mdns_resp_offload_rsp_param_t mdns_rsp_params; |
| 9636 | } hal_mdns_resp_offload_rsp_msg_t, *hal_mdns_resp_offload_rsp_msg; |
| 9637 | |
| 9638 | /*--------------------------------------------------------------------------- |
| 9639 | * WLAN_HAL_MDNS_STATS_OFFLOAD_REQ |
| 9640 | *--------------------------------------------------------------------------*/ |
| 9641 | typedef PACKED_PRE struct PACKED_POST |
| 9642 | { |
| 9643 | tANI_U8 bss_idx; |
| 9644 | } hal_mdns_stats_offload_req_param_t, *hal_mdns_stats_offload_req_params; |
| 9645 | |
| 9646 | typedef PACKED_PRE struct PACKED_POST |
| 9647 | { |
| 9648 | tHalMsgHeader header; |
| 9649 | hal_mdns_stats_offload_req_param_t mdns_stats_req_params; |
| 9650 | } hal_mdns_stats_offload_req_msg_t; |
| 9651 | |
| 9652 | /*--------------------------------------------------------------------------- |
| 9653 | * WLAN_HAL_MDNS_STATS_OFFLOAD_RSP |
| 9654 | *--------------------------------------------------------------------------*/ |
| 9655 | typedef PACKED_PRE struct PACKED_POST |
| 9656 | { |
| 9657 | tANI_U8 bss_idx; |
| 9658 | tANI_U32 current_ts; |
| 9659 | tANI_U32 last_query_ts; |
| 9660 | tANI_U32 last_rsp_ts; |
| 9661 | tANI_U32 tot_queries; |
| 9662 | tANI_U32 tot_matches; |
| 9663 | tANI_U32 tot_rsp; |
| 9664 | tANI_U32 status; |
| 9665 | } hal_mdns_stats_offload_rsp_param_t, *hal_mdns_stats_offload_rsp_params; |
| 9666 | |
| 9667 | typedef PACKED_PRE struct PACKED_POST |
| 9668 | { |
| 9669 | tHalMsgHeader header; |
| 9670 | hal_mdns_stats_offload_rsp_param_t mdns_stats_rsp_params; |
| 9671 | } hal_mdns_stats_offload_rsp_msg_t, *hal_mdns_stats_offload_rsp_msg; |
| 9672 | |
Anurag Chouhan | ce0f082 | 2017-01-24 15:44:26 +0530 | [diff] [blame] | 9673 | /*--------------------------------------------------------------------------- |
| 9674 | * WLAN_HAL_FW_SET_CLEAR_ARP_STATS_REQ |
| 9675 | *--------------------------------------------------------------------------*/ |
| 9676 | typedef PACKED_PRE struct PACKED_POST |
| 9677 | { |
| 9678 | tANI_U8 set_clr; /*1 set and 0 reset*/ |
| 9679 | tANI_U8 pkt_type; /* Default 1: ARP */ |
| 9680 | tANI_U32 ip_addr; /*GW ipv4 address */ |
| 9681 | } tHalStatsArpReqParams, *tpHalStatsArpReqParams; |
| 9682 | |
| 9683 | typedef PACKED_PRE struct PACKED_POST |
| 9684 | { |
| 9685 | tHalMsgHeader header; |
| 9686 | tHalStatsArpReqParams statsArpReqParams; |
| 9687 | } tHalStatsArpReqMsg, *tpHalStatsArpReqMsg; |
| 9688 | |
| 9689 | /*--------------------------------------------------------------------------- |
| 9690 | * WLAN_HAL_FW_SET_CLEAR_ARP_STATS_RSP |
| 9691 | *--------------------------------------------------------------------------*/ |
| 9692 | typedef PACKED_PRE struct PACKED_POST |
| 9693 | { |
| 9694 | tANI_U32 status; //success or failure |
| 9695 | } tHalStatsArpRspParams, *tpHalStatsArpRspParams; |
| 9696 | |
| 9697 | typedef PACKED_PRE struct PACKED_POST |
| 9698 | { |
| 9699 | tHalMsgHeader header; |
| 9700 | tHalStatsArpRspParams statsArpRspParams; |
| 9701 | } tHalStatsArpRspMsg, *tpHalStatsArpRspMsg; |
| 9702 | |
| 9703 | /*--------------------------------------------------------------------------- |
| 9704 | * WLAN_HAL_FW_GET_ARP_STATS_REQ |
| 9705 | *--------------------------------------------------------------------------*/ |
| 9706 | typedef PACKED_PRE struct PACKED_POST |
| 9707 | { |
| 9708 | tANI_U8 pkt_type; /* Furture purpose */ |
| 9709 | } tHalStatsGetArpReqParams, *tpHalStatsGetArpReqParams; |
| 9710 | |
| 9711 | typedef PACKED_PRE struct PACKED_POST |
| 9712 | { |
| 9713 | tHalMsgHeader header; |
| 9714 | tHalStatsGetArpReqParams statsGetArpReqParams; |
| 9715 | } tHalStatsGetArpReqMsg, *tpHalStatsGetArpReqMsg; |
| 9716 | |
| 9717 | /*--------------------------------------------------------------------------- |
| 9718 | * WLAN_HAL_FW_GET_ARP_STATS_RSP |
| 9719 | *--------------------------------------------------------------------------*/ |
| 9720 | typedef PACKED_PRE struct PACKED_POST |
| 9721 | { |
| 9722 | tANI_U32 status; |
| 9723 | tANI_U16 dad; |
| 9724 | tANI_U16 arpReqRcvdInFW; |
| 9725 | tANI_U16 ackedArpReqCnt; |
| 9726 | tANI_U16 arpRspCnt; |
| 9727 | tANI_U8 data[1]; |
| 9728 | } tdbugArpStatsgetRspParams, *tpdbugArpStatsgetRspParams; |
| 9729 | |
| 9730 | typedef PACKED_PRE struct PACKED_POST |
| 9731 | { |
| 9732 | tHalMsgHeader header; |
| 9733 | tdbugArpStatsgetRspParams fwArpstatsRspParams; |
| 9734 | } tHalARPfwStatsRspMsg, *tpHalARPfwStatsRspMsg; |
| 9735 | |
Sourav Mohapatra | 3629ecf | 2018-02-12 10:24:28 +0530 | [diff] [blame] | 9736 | /*---------------------------------------------------------------- |
| 9737 | * WLAN_HAL_POWER_CONTROL_MODE_CHANGE_REQ |
| 9738 | *-----------------------------------------------------------------*/ |
| 9739 | |
| 9740 | typedef PACKED_PRE struct PACKED_POST |
| 9741 | { |
| 9742 | tANI_U8 enable; |
| 9743 | } tHalPowerControlModeChangeReqParams, *tpHalPowerControlModeChangeReqParams; |
| 9744 | |
| 9745 | typedef PACKED_PRE struct PACKED_POST |
| 9746 | { |
| 9747 | tHalMsgHeader header; |
| 9748 | tHalPowerControlModeChangeReqParams pwrCtrlModeChangeReqParams; |
| 9749 | } tHalPowerControlModeChangeReqMsg, *tpHalPowerControlModeChangeReqMsg; |
| 9750 | |
| 9751 | /*---------------------------------------------------------------- |
| 9752 | * WLAN_HAL_POWER_CONTROL_MODE_CHANGE_RSP |
| 9753 | *-----------------------------------------------------------------*/ |
| 9754 | |
| 9755 | typedef PACKED_PRE struct PACKED_POST |
| 9756 | { |
| 9757 | tANI_U32 status; |
| 9758 | } tHalPowerControlModeChangeRspParams, *tpHalPowerControlModeChangeRspParams; |
| 9759 | |
| 9760 | typedef PACKED_PRE struct PACKED_POST |
| 9761 | { |
| 9762 | tHalMsgHeader header; |
| 9763 | tHalPowerControlModeChangeRspParams pwrCtrlModeChangeRspParams; |
| 9764 | } tHalPowerControlModeChangeRspMsg, *tpHalPowerControlModeChangeRspMsg; |
| 9765 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 9766 | #if defined(__ANI_COMPILER_PRAGMA_PACK_STACK) |
| 9767 | #pragma pack(pop) |
| 9768 | #elif defined(__ANI_COMPILER_PRAGMA_PACK) |
| 9769 | #else |
| 9770 | #endif |
| 9771 | |
| 9772 | #endif /* _WLAN_HAL_MSG_H_ */ |