0
|
1 |
/*
|
|
2 |
* TIWhaDef.h
|
|
3 |
*
|
|
4 |
* Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
|
|
5 |
* All rights reserved.
|
|
6 |
*
|
|
7 |
* This program and the accompanying materials are made available under the
|
|
8 |
* terms of the Eclipse Public License v1.0 or BSD License which accompanies
|
|
9 |
* this distribution. The Eclipse Public License is available at
|
|
10 |
* http://www.eclipse.org/legal/epl-v10.html and the BSD License is as below.
|
|
11 |
*
|
|
12 |
* Redistribution and use in source and binary forms, with or without
|
|
13 |
* modification, are permitted provided that the following conditions
|
|
14 |
* are met:
|
|
15 |
*
|
|
16 |
* * Redistributions of source code must retain the above copyright
|
|
17 |
* notice, this list of conditions and the following disclaimer.
|
|
18 |
* * Redistributions in binary form must reproduce the above copyright
|
|
19 |
* notice, this list of conditions and the following disclaimer in
|
|
20 |
* the documentation and/or other materials provided with the
|
|
21 |
* distribution.
|
|
22 |
* * Neither the name Texas Instruments nor the names of its
|
|
23 |
* contributors may be used to endorse or promote products derived
|
|
24 |
* from this software without specific prior written permission.
|
|
25 |
*
|
|
26 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
27 |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
28 |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
29 |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
30 |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
31 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
32 |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
33 |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
34 |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
35 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
36 |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
37 |
*/
|
|
38 |
|
|
39 |
|
|
40 |
/*--------------------------------------------------------------------------*/
|
|
41 |
/* Module: TIWhaDef.H*/
|
|
42 |
/**/
|
|
43 |
/* Purpose: This module defines unified interface to use by the PhysicalChannel*/
|
|
44 |
/**/
|
|
45 |
/*--------------------------------------------------------------------------*/
|
|
46 |
|
|
47 |
#ifndef _TIWhaDef_
|
|
48 |
#define _TIWhaDef_
|
|
49 |
|
|
50 |
#include "external_inc.h"
|
|
51 |
#include "gendebug.h"
|
|
52 |
|
|
53 |
#include <wlanwha.h>
|
|
54 |
#include <wlanwha_types.h>
|
|
55 |
#include <wlanspia.h>
|
|
56 |
#include <wlanhpa.h>
|
|
57 |
#include <wlanosa.h>
|
|
58 |
|
|
59 |
/*******************************************************************************
|
|
60 |
* stuff for C file linking. *
|
|
61 |
*******************************************************************************/
|
|
62 |
extern "C"
|
|
63 |
{
|
|
64 |
#include "report.h"
|
|
65 |
#include "tidef.h"
|
|
66 |
#include "osApi.h"
|
|
67 |
#include "TWDriverInternal.h"
|
|
68 |
#include "TWDriverRate.h"
|
|
69 |
#include "TWDriver.h"
|
|
70 |
#include "802_11Defs.h"
|
|
71 |
#include "coreDefaultParams.h"
|
|
72 |
}
|
|
73 |
|
|
74 |
/* Device Name */
|
|
75 |
|
|
76 |
#define DEVICE_NAME _L("wlan.phys")
|
|
77 |
|
|
78 |
|
|
79 |
#include "TIWhaPLTDef.h"
|
|
80 |
|
|
81 |
#ifdef GEM_SUPPORT
|
|
82 |
#include "TIWhaGemDef.h"
|
|
83 |
#endif /* GEM_SUPPORT */
|
|
84 |
|
|
85 |
|
|
86 |
/****************************** DEBUG MIBS *****************************************/
|
|
87 |
#ifdef TI_TEST
|
|
88 |
#define SET_POWER_LEVEL 0x2003
|
|
89 |
#define TWD_FW_PRINT_STATISTICS 0x3100
|
|
90 |
#define QOS_CHANGE_QEUEU 0x4001
|
|
91 |
#define EMIBPltTest 0x3001
|
|
92 |
#define AVR_RSSI 0x3101
|
|
93 |
#endif /* TI_TEST */
|
|
94 |
/***********************************************************************************/
|
|
95 |
|
|
96 |
|
|
97 |
/****************************************************************************
|
|
98 |
* Constants *
|
|
99 |
*****************************************************************************/
|
|
100 |
|
|
101 |
#define MAX_XFER_WAITING_PACKETS 50
|
|
102 |
|
|
103 |
/* Stalling the CPU for 400Ms in case of a failure */
|
|
104 |
#define STALL_ON_FAILURE 400000
|
|
105 |
|
|
106 |
#define STALL_ON_RECONNECT 1000
|
|
107 |
|
|
108 |
#ifdef ENHANCE_PROB_SCAN
|
|
109 |
#define PB_FACTOR_FOR_SG 3
|
|
110 |
#define MIN_TIME_FACTOR_FOR_SG 2
|
|
111 |
#define MAX_TIME_FACTOR_FOR_SG 2
|
|
112 |
#endif
|
|
113 |
|
|
114 |
/* Maximum num of ssid in scan*/
|
|
115 |
#define TIWha_SCAN_MAX_SSID_NUM 1
|
|
116 |
|
|
117 |
/* Max size of ReadMibResponse according to the structures that are used for the Mib results */
|
|
118 |
#define TIWha_MAX_READ_MIB_BUFFER \
|
|
119 |
TI_MAX(sizeof(WHA::SstatisticsTable),TI_MAX (sizeof(WHA::Sdot11StationId),sizeof(WHA::SstatisticsTable)))
|
|
120 |
|
|
121 |
/* Maximum driver version length */
|
|
122 |
#define TIWha_MAX_DRV_VER_LEN 64
|
|
123 |
|
|
124 |
/* Maximum firmware version length */
|
|
125 |
#define TIWha_MAX_FRM_VER_LEN 32
|
|
126 |
|
|
127 |
#define TIWha_NO_BUFFER_ALIGNMENT_SETTING 1
|
|
128 |
|
|
129 |
/* TIWha max table size of the security keys */
|
|
130 |
#define TIWha_MAX_PRIVACY_KEY_INDEX 9
|
|
131 |
|
|
132 |
#define TIWha_MAX_SSID_LEN 32
|
|
133 |
|
|
134 |
#define TIWha_MAX_RCPI_VAL 220
|
|
135 |
|
|
136 |
#define TIWha_MIN_RCPI_VAL 0
|
|
137 |
|
|
138 |
#define TIWha_MIN_RSSI_VAL -110
|
|
139 |
|
|
140 |
#define TIWha_MAX_RSSI_VAL -45
|
|
141 |
|
|
142 |
#define TRIGGER_LOW_RSSI_PACING 1000
|
|
143 |
|
|
144 |
#define TIWha_DEFAULT_DTIM_PERIOD 0x3
|
|
145 |
|
|
146 |
/* An extra 4 bytes for alginment */
|
|
147 |
#define PAYLOAD_ALIGN_PAD_BYTES 4
|
|
148 |
|
|
149 |
/*
|
|
150 |
* TIWha supported capabilities bit mask definition.
|
|
151 |
* The bit mask is held in the SSettings table
|
|
152 |
*/
|
|
153 |
#define TIWha_RECEIVE_PACKET_BIT_MASK_SUPPORT 0
|
|
154 |
|
|
155 |
/* Multi Buffer */
|
|
156 |
#ifdef MB_ENABLE
|
|
157 |
#define MAX_WHA_RX_BUFFERS 14
|
|
158 |
#else
|
|
159 |
#define MAX_WHA_RX_BUFFERS 1
|
|
160 |
#endif
|
|
161 |
|
|
162 |
/* Used in order to signal the correct security bit of aFlags, that is sent to upper layer ReceivePacket() */
|
|
163 |
#define WHA_WEP 0x10000
|
|
164 |
#define WHA_TKIP 0x20000
|
|
165 |
#define WHA_AES 0x30000
|
|
166 |
#ifdef GEM_SUPPORT
|
|
167 |
#define WHA_GEM 0x8000
|
|
168 |
#endif
|
|
169 |
|
|
170 |
#define TIWha_RATE_BIT_MASK_SUPPORT ((WHA::KRate1Mbits) | \
|
|
171 |
(WHA::KRate2Mbits) | \
|
|
172 |
(WHA::KRate5_5Mbits) | \
|
|
173 |
(WHA::KRate6Mbits) | \
|
|
174 |
(WHA::KRate9Mbits) | \
|
|
175 |
(WHA::KRate11Mbits) | \
|
|
176 |
(WHA::KRate12Mbits) | \
|
|
177 |
(WHA::KRate18Mbits) | \
|
|
178 |
(WHA::KRate24Mbits) | \
|
|
179 |
(WHA::KRate36Mbits) | \
|
|
180 |
(WHA::KRate48Mbits) | \
|
|
181 |
(WHA::KRate54Mbits))
|
|
182 |
|
|
183 |
|
|
184 |
#define TIWha_CAPABILITY_BIT_MASK_SUPPORT ((WHA::SSettings::KExpiryTimeParam) | \
|
|
185 |
(WHA::SSettings::KDot11SlotTime) | \
|
|
186 |
(WHA::SSettings::KRadioMeasurements) | \
|
|
187 |
(WHA::SSettings::KWep16ByteKey) | \
|
|
188 |
(WHA::SSettings::KScanChannelTimes))
|
|
189 |
|
|
190 |
#ifdef GEM_SUPPORT
|
|
191 |
#define TIWha_CAPABILITY_GEM_SUPPORT GemBit
|
|
192 |
#endif /* GEM_SUPPORT */
|
|
193 |
|
|
194 |
#ifdef MB_ENABLE
|
|
195 |
#define TIWha_CAPABILITY_MB_SUPPORT WHA::SSettings::KMultipleRxBuffers
|
|
196 |
#endif /* MB_ENABLE */
|
|
197 |
|
|
198 |
|
|
199 |
#ifdef HT_SUPPORT
|
|
200 |
#define TIWha_CAPABILITY_HT_OPERATION WHA::SSettings::KHtOperation
|
|
201 |
#define RX_QUEUE_WIN_SIZE 8
|
|
202 |
#define HT_CONTROL_FILED_SIZE 4
|
|
203 |
|
|
204 |
#define TID0 BIT_0
|
|
205 |
#define TID1 BIT_1
|
|
206 |
#define TID2 BIT_2
|
|
207 |
#define TID3 BIT_3
|
|
208 |
#define TID4 BIT_4
|
|
209 |
#define TID5 BIT_5
|
|
210 |
#define TID6 BIT_6
|
|
211 |
#define TID7 BIT_7
|
|
212 |
|
|
213 |
#endif /* HT_SUPPORT */
|
|
214 |
|
|
215 |
#define TIWha_CAPABILITY_AUTO_RATE WHA::SSettings::KAutonomousRateAdapt
|
|
216 |
|
|
217 |
#define TIWha_BAND_BIT_MASK_SUPPORT ((WHA::KBand2dot4GHzMask) | (WHA::KBand5GHzMask))
|
|
218 |
|
|
219 |
/* max table size of the security keys */
|
|
220 |
#define TIWLANWHA_MAX_PRIVACY_KEY_INDEX 9
|
|
221 |
|
|
222 |
|
|
223 |
#define MAX_INFO_ELEMENT_LEN (32)
|
|
224 |
|
|
225 |
#ifndef BTCOEX_DEFAULT_PROFILE
|
|
226 |
#define BTCOEX_DEFAULT_PROFILE BtCoexProfData
|
|
227 |
#endif
|
|
228 |
|
|
229 |
#ifndef BTCOEX_DEFAULT_MODE
|
|
230 |
#define BTCOEX_DEFAULT_MODE SG_OPPORTUNISTIC
|
|
231 |
#endif
|
|
232 |
|
|
233 |
/* For connection phase we will use this parameter to make sure we can drop down the rates till 1Mbps */
|
|
234 |
#define TIWHA_TX_FAIL_LOW_TH_FOR_CONNECTION 2
|
|
235 |
|
|
236 |
/* After connection we use the default definition */
|
|
237 |
#define TIWHA_TX_FAIL_LOW_TH_AFTER_CONNECTION RATE_MGMT_TX_FAIL_LOW_TH
|
|
238 |
|
|
239 |
|
|
240 |
/********* Typedefs ********/
|
|
241 |
|
|
242 |
/* Rx quality triggers indexes */
|
|
243 |
typedef enum
|
|
244 |
{
|
|
245 |
TRIGGER_EVENT_LOW_RSSI = 0,
|
|
246 |
TRIGGER_EVENT_LOW_SNR = 1,
|
|
247 |
TRIGGER_EVENT_HIGH_TX_PW = 2,
|
|
248 |
TRIGGER_EVENT_LOW_TX_PW = 3,
|
|
249 |
TRIGGER_EVENT_BG_SCAN = 4,
|
|
250 |
TRIGGER_EVENT_USER_0 = 5,
|
|
251 |
TRIGGER_EVENT_USER_1 = 6,
|
|
252 |
TRIGGER_EVENT_MAX = 7
|
|
253 |
|
|
254 |
}ETriggerEventIndex;
|
|
255 |
|
|
256 |
typedef enum
|
|
257 |
{
|
|
258 |
vendorSpecificConfig_idle,
|
|
259 |
vendorSpecificConfig_btCoexMode,
|
|
260 |
vendorSpecificConfig_btCoexEnabled,
|
|
261 |
} vendorSpecificConfigEnum;
|
|
262 |
|
|
263 |
|
|
264 |
typedef struct
|
|
265 |
{
|
|
266 |
void* pFrame[MAX_XFER_WAITING_PACKETS]; /* Hold the last sent frame to TnetDrv */
|
|
267 |
TUint32 uCurrSend; /* Hold the frame index that is going to be sent (0/1) */
|
|
268 |
TUint32 uCurrHandle; /* Hold the frame index that is going to be handled (0/1) */
|
|
269 |
TUint32 uHeaderToDataOffset[MAX_XFER_WAITING_PACKETS]; /* Gap between Header and Data due to security alignment */
|
|
270 |
TBool bIsQosHeader[MAX_XFER_WAITING_PACKETS]; /* determine whether we have 24 or 26 bytes of header */
|
|
271 |
} TTxAlign;
|
|
272 |
|
|
273 |
|
|
274 |
struct TIFirmwareStructure
|
|
275 |
{
|
|
276 |
const TUint8* pFw;
|
|
277 |
TUint32 fwLength;
|
|
278 |
const TUint8* pNvs;
|
|
279 |
TUint32 nvsLength;
|
|
280 |
};
|
|
281 |
|
|
282 |
|
|
283 |
typedef struct
|
|
284 |
{
|
|
285 |
TUint8 eleId;
|
|
286 |
TUint8 eleLen;
|
|
287 |
} TDot11InfoElemHdr;
|
|
288 |
|
|
289 |
|
|
290 |
typedef struct
|
|
291 |
{
|
|
292 |
TDot11InfoElemHdr hdr;
|
|
293 |
TUint8 info[MAX_INFO_ELEMENT_LEN];
|
|
294 |
|
|
295 |
} TInformationElement;
|
|
296 |
|
|
297 |
|
|
298 |
struct TOsContext
|
|
299 |
{
|
|
300 |
MWlanOsa* hOsa;
|
|
301 |
WlanSpia* hSpia;
|
|
302 |
WlanHpa* hHpa;
|
|
303 |
};
|
|
304 |
|
|
305 |
/* Use the next macros to get MWlanOsa /WlanSpia / WlanHpa from hOS */
|
|
306 |
#define GET_OSA(hOS) (((TOsContext*)(hOS))->hOsa)
|
|
307 |
#define GET_SPIA(hOS) (((TOsContext*)(hOS))->hSpia)
|
|
308 |
#define GET_HPA(hOS) (((TOsContext*)(hOS))->hHpa)
|
|
309 |
|
|
310 |
|
|
311 |
struct TwdCtrl
|
|
312 |
{
|
|
313 |
/* OS Module (contains both OSA and SPIA)*/
|
|
314 |
TOsContext tOsContext;
|
|
315 |
|
|
316 |
/* HAL handles */
|
|
317 |
TI_HANDLE hApp;
|
|
318 |
TI_HANDLE hReport;
|
|
319 |
TI_HANDLE hTWD;
|
|
320 |
TI_HANDLE hContext;
|
|
321 |
TI_HANDLE hTimer;
|
|
322 |
TI_HANDLE hTxnQ;
|
|
323 |
|
|
324 |
/* The read MIB buffer to be copied to from HAL Cmd MBOX */
|
|
325 |
TUint8 readMIBBuf [MAX_CMD_PARAMS];
|
|
326 |
/* Current read MIB ID */
|
|
327 |
WHA::TMib currentReadMibID;
|
|
328 |
/* Scan parameters */
|
|
329 |
TScanParams scanParams;
|
|
330 |
/* TX power level table */
|
|
331 |
TInt8 txPowerLevelTable [RADIO_BAND_NUM_OF_BANDS][NUM_POWER_LEVELS];
|
|
332 |
/* Current radio band */
|
|
333 |
WHA::TBand radioBand;
|
|
334 |
/* PLT specific test that is running right now */
|
|
335 |
ETestCmdID ePlt;
|
|
336 |
/* Array of configured privacy keys */
|
|
337 |
TSecurityKeys privacyKey [TIWLANWHA_MAX_PRIVACY_KEY_INDEX];
|
|
338 |
/* User configured sleep mode */
|
|
339 |
WHA::TSleepMode sleepMode;
|
|
340 |
/* Send response flag */
|
|
341 |
TBool bResponse;
|
|
342 |
/* Tx frame parameters. used for security alignment */
|
|
343 |
TTxAlign TxAlign;
|
|
344 |
/* Twd init parameters . used for setting the defaults for TWD */
|
|
345 |
TTwdInitParams twdInitParams;
|
|
346 |
/* Report init parameters */
|
|
347 |
TReportInitParams report_init;
|
|
348 |
/* mac address */
|
|
349 |
TMacAddr pMacAddr;
|
|
350 |
/* Add Scan parameters */
|
|
351 |
TScanParams iScanParams;
|
|
352 |
|
|
353 |
/* Save the last security mode configuration */
|
|
354 |
ECipherSuite ePairwiseKeyMode;
|
|
355 |
ECipherSuite eGroupKeyMode;
|
|
356 |
|
|
357 |
/* Save BSS type for Tx packets */
|
|
358 |
WHA::TOperationMode bssType;
|
|
359 |
|
|
360 |
/***************************************************************************/
|
|
361 |
|
|
362 |
|
|
363 |
} ;
|
|
364 |
|
|
365 |
|
|
366 |
/***************************** HT Definitions ******************************/
|
|
367 |
|
|
368 |
#define MCS_TABLE 10
|
|
369 |
|
|
370 |
/* MCS Rate for WHA */
|
|
371 |
|
|
372 |
#define WHA_MCS_0 BIT_0
|
|
373 |
#define WHA_MCS_1 BIT_1
|
|
374 |
#define WHA_MCS_2 BIT_2
|
|
375 |
#define WHA_MCS_3 BIT_3
|
|
376 |
#define WHA_MCS_4 BIT_4
|
|
377 |
#define WHA_MCS_5 BIT_5
|
|
378 |
#define WHA_MCS_6 BIT_6
|
|
379 |
#define WHA_MCS_7 BIT_7
|
|
380 |
|
|
381 |
struct TApCapabilities
|
|
382 |
{
|
|
383 |
TBool iHTSupport; /* 0 - HT disable, 1 - HT Enable */
|
|
384 |
|
|
385 |
TMacAddr iMacAddr; /* The MAC address of the peer station. This field is valid only in IBSS mode;
|
|
386 |
in BSS mode, the host driver sets this field to 0xFFFFFFFFFFFF */
|
|
387 |
|
|
388 |
TUint8 iRxStbc; /* STBC reception support: 0 - Not Supported, 1 - Supported for one spatial stream,
|
|
389 |
2 – Supported for one and two spatial streams, 3 – Supported for one, two and three spatial streams */
|
|
390 |
|
|
391 |
TUint8 iHtMaxAmpdu; /* maximum A-MPDU size: 0 – 8191 octets. 1 – 16383 octets. 2 – 32767 octets. 3 – 65535 octets. */
|
|
392 |
|
|
393 |
TUint32 iHtCapabilities; /* bit mask for HT capabilities: */
|
|
394 |
|
|
395 |
TUint8 iHtMcsSet[MCS_TABLE]; /* A bit mask that defines the supported MCSs.
|
|
396 |
The least significant bit of the byte[0] corresponds to MCS 0,
|
|
397 |
the least significant bit of byte[1] corresponds to MCS 8 and so on */
|
|
398 |
|
|
399 |
TUint8 iHtAmpduSpacing; /* the A-MPDU spacing: 0 – no restriction.
|
|
400 |
• 1 – ¼ microseconds.
|
|
401 |
• 2 – ½ microseconds.
|
|
402 |
• 3 – 1 microsecond.
|
|
403 |
• 4 – 2 microseconds.
|
|
404 |
• 5 – 4 microseconds.
|
|
405 |
• 6 – 8 microseconds.
|
|
406 |
• 7 – 16 microseconds. */
|
|
407 |
|
|
408 |
TUint8 iHtMcsFeedback; /* the MCS feedback capability: 0 – no MCS feedback. 1 – reserved.
|
|
409 |
2 – unsolicited MCS feedback only.
|
|
410 |
3 – both solicited and unsolicted MCS feedback.*/
|
|
411 |
|
|
412 |
TUint32 iBeamFormingCapabilities; /* Transmit Beam Forming capabilities. */
|
|
413 |
|
|
414 |
TUint8 iAntennaSelection; /* Antenna selection capabilities. */
|
|
415 |
|
|
416 |
TUint8 Padding[3];
|
|
417 |
};
|
|
418 |
|
|
419 |
|
|
420 |
struct THtInformation
|
|
421 |
{
|
|
422 |
TUint32 iHTInformation; /* HT information bit mask.
|
|
423 |
Bit 0 Non-Greenfield HT STAs present in the BSS.
|
|
424 |
Bit 1 Transmit burst limited.
|
|
425 |
Bit 2 PCO active.
|
|
426 |
Bit 3 RIFS Permitted.
|
|
427 |
Bit 4 Dual CTS protection required.
|
|
428 |
Bit 5 Secondary beacon transmitted
|
|
429 |
Bit 6-31 Reserved. */
|
|
430 |
|
|
431 |
|
|
432 |
TUint8 iHtMcsSet[MCS_TABLE]; /* A bit mask that defines the supported MCSs.
|
|
433 |
The least significant bit of the byte[0] corresponds to MCS 0,
|
|
434 |
the least significant bit of byte[1] corresponds to MCS 8 and so on */
|
|
435 |
|
|
436 |
TUint8 iHtProtection; /* the HT protection mode:
|
|
437 |
0 – operation mode 0. 1 – operation mode 1 (non-member protection mode).
|
|
438 |
2 – operation mode 2. 3 – operation mode 3 (mixed mode). */
|
|
439 |
|
|
440 |
TUint8 iHtSecChannelOffset; /* the secondary channel offset:
|
|
441 |
0 – no secondary channel. 1 – secondary channel is above the primary channel.
|
|
442 |
3 - secondary channel is below the primary channel. */
|
|
443 |
|
|
444 |
TUint8 iHtChannelWidth; /* the channel width:
|
|
445 |
0 – only 20 MHz channel width supported or used.
|
|
446 |
1 – both 40 MHz and 20 MHz channel width supported or used. */
|
|
447 |
|
|
448 |
TUint8 Padding[3];
|
|
449 |
};
|
|
450 |
|
|
451 |
|
|
452 |
|
|
453 |
struct TBABitMask
|
|
454 |
{
|
|
455 |
TUint8 iTxTidBASupport; /* A bit-map containing the block ACK usage status for the tx direction */
|
|
456 |
|
|
457 |
TUint8 iRxTidBASupport; /* A bit-map containing the block ACK usage status the rx direction */
|
|
458 |
|
|
459 |
TUint8 Padding[2];
|
|
460 |
};
|
|
461 |
|
|
462 |
|
|
463 |
#define GENERAL_RADIO_PARAM_LEN 58
|
|
464 |
|
|
465 |
#define STATIC_RADIO_PARAM_LEN 17
|
|
466 |
#define STATIC_RADIO_PARAM_OFFSET 58
|
|
467 |
|
|
468 |
#define DYNAMIC_RADIO_PARAM_LEN 65
|
|
469 |
#define FEM0_DYNAMIC_RADIO_PARAM_OFFSET 76
|
|
470 |
#define FEM1_DYNAMIC_RADIO_PARAM_OFFSET 142
|
|
471 |
|
|
472 |
|
|
473 |
|
|
474 |
typedef struct
|
|
475 |
{
|
|
476 |
IniFileGeneralParam tGeneralParams;
|
|
477 |
TStatRadioParams tStatRadioParams;
|
|
478 |
TDynRadioParams tDynRadioParams[NUMBER_OF_FEM_TYPES_E];
|
|
479 |
|
|
480 |
}TAutoRadioIniParams;
|
|
481 |
|
|
482 |
|
|
483 |
typedef struct
|
|
484 |
{
|
|
485 |
TUint8 len; //maximum length is 14
|
|
486 |
TInt8 upperLimit;
|
|
487 |
TInt8 values[14]; //this is the maximum length (in rows) of the error table
|
|
488 |
}TSmartReflexErrTable;
|
|
489 |
|
|
490 |
typedef struct
|
|
491 |
{
|
|
492 |
TUint8 SmartReflexState;
|
|
493 |
TSmartReflexErrTable tErrorTable[3];
|
|
494 |
}TSmartReflexConfigParams;
|
|
495 |
|
|
496 |
typedef struct
|
|
497 |
{
|
|
498 |
TSmartReflexErrTable errorTable;
|
|
499 |
unsigned short senN_P;
|
|
500 |
unsigned short senNRN;
|
|
501 |
unsigned short senPRN;
|
|
502 |
unsigned short senN_P_Gain;
|
|
503 |
}TSmartReflexDebugParams;
|
|
504 |
|
|
505 |
|
|
506 |
#endif /* _TIWhaDef_ */
|