summaryrefslogtreecommitdiff
path: root/wilink_6_1/TWD/Ctrl/CmdBldDb.h
blob: 6496f3fca509882078233cfe42e5da568e4de8e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
/*
 * CmdBldDb.h
 *
 * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.      
 * All rights reserved.                                                  
 *                                                                       
 * Redistribution and use in source and binary forms, with or without    
 * modification, are permitted provided that the following conditions    
 * are met:                                                              
 *                                                                       
 *  * Redistributions of source code must retain the above copyright     
 *    notice, this list of conditions and the following disclaimer.      
 *  * Redistributions in binary form must reproduce the above copyright  
 *    notice, this list of conditions and the following disclaimer in    
 *    the documentation and/or other materials provided with the         
 *    distribution.                                                      
 *  * Neither the name Texas Instruments nor the names of its            
 *    contributors may be used to endorse or promote products derived    
 *    from this software without specific prior written permission.      
 *                                                                       
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS   
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT     
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT      
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT   
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */


/** \file  CmdBldDb.h 
 *  \brief Command builder database
 *
 *  \see   CmdBld.h 
 */

#ifndef CMDBLDDB_H
#define CMDBLDDB_H


#include "TWDriverInternal.h"
#include "public_infoele.h"


/* 
 * Dot11 params
 * ------------
 */
typedef struct
{
    TI_UINT16                  RtsThreshold;
    TI_UINT8                   CtsToSelf;
    TRxTimeOut                 rxTimeOut;
    TI_UINT16                  FragmentThreshold;
    TI_UINT8                   ListenInterval;
    TI_UINT16                  Capabilities;
    TI_UINT32                  MaxTxMsduLifetime;
    TI_UINT32                  MaxRxMsduLifetime;
    TI_UINT8                   calibrationChannel2_4;
    TI_UINT8                   calibrationChannel5_0;
    TI_UINT16                  Aid;
    TI_UINT8                   CurrAntenna;
    TI_UINT8                   TxAntenna;
    TI_UINT8                   RxAntenna;
    TI_UINT8                   Hw_TxAntenna;
    TI_UINT8                   Hw_RxAntenna;
    TI_UINT16                  CwMin;
    TI_UINT8                   RateFallback;
    TI_UINT32                  RxConfigOption;
    TI_UINT32                  RxFilterOption;
    TI_BOOL                    WiFiWmmPS;

    /* Data interrupts pacing */
    TI_UINT16                  TxCompletePacingThreshold;
    TI_UINT16                  TxCompletePacingTimeout; 
    TI_UINT16                  RxIntrPacingThreshold;	 
    TI_UINT16                  RxIntrPacingTimeout;	 

    /* ARP IP Addr table */
    TI_UINT32                  arp_IP_ver;
    TI_UINT32                  isArpIpFilteringEnabled;
    TIpAddr                    arp_IP_addr;

    /* Mac addresses filter */
    TI_UINT8                   isMacAddrFilteringnabled;
    TI_UINT8                   numGroupAddrs;
    TMacAddr                   aGroupAddr[MAX_MULTICAST_GROUP_ADDRS];

    TI_UINT32                  FeatureOptions;
    TI_UINT32                  FeatureDataFlowOptions;
    TI_UINT8                   SlotTime;
    TI_UINT8                   preamble;
    TI_UINT8                   RadioBand;
    TI_UINT8                   MacClock;
    TI_UINT8                   ArmClock;
    TI_UINT8                   CurrPowerSaveState;
    ESoftGeminiEnableModes     SoftGeminiEnable;
    TSoftGeminiParams          SoftGeminiParams;
    TFmCoexParams              tFmCoexParams;
    TI_UINT8                   maxSitesFragCollect;
    TI_UINT8                   hwAccessMethod;
    TI_UINT32                  nullTemplateSize;
    TI_UINT32                  disconnTemplateSize;
    TI_UINT32                  beaconTemplateSize;
    TI_UINT32                  probeRequestTemplateSize;
    TI_UINT32                  probeResponseTemplateSize;
    TI_UINT32                  PsPollTemplateSize;
    TI_UINT32                  qosNullDataTemplateSize;
    TI_BOOL                    EnergyDetection;
    TI_UINT8                   PacketDetectionThreshold;
    TI_UINT8                   FcsErrThrsh;
    TI_UINT8                   UseDeviceErrorInterrupt;
    TI_BOOL                    RetryPreemption;
    /* This flag indicate if to discards all broadcast frames */
    TI_BOOL                    RxDisableBroadcast; 
    /* Indicate if the station is joined */
    TI_BOOL                    bJoin;              
    /* Indicate if the station is connected */
    TI_BOOL                    bStaConnected;              
    TI_UINT8                   AntDiversity;
    /* Parameters for roaming triggers configuration */
    TRroamingTriggerParams     roamTriggers;
    /* Power control param */
    EPowerPolicy               minPowerLevel;
    TBcnBrcOptions             BcnBrcOptions;
    TBeaconFilterIeTable       beaconFilterIETable;
    TBeaconFilterInitParams    beaconFilterParams;

    /*Beacon Early Termination (Bet)*/
    TI_UINT8                   BetEnable;
    TI_UINT8                   MaximumConsecutiveET;
    TI_UINT8                   ConsecutivePsPollDeliveryFailureThreshold;

    /* RSSI/SNR triggers */
    RssiSnrTriggerCfg_t        tRssiSnrTrigger[NUM_OF_RSSI_SNR_TRIGGERS];
    RssiSnrAverageWeights_t    tRssiSnrWeights;

    TI_UINT32                  uSlicedScanTimeOut;

    /* HT capabilities */
    TTwdHtCapabilities         tTwdHtCapabilities;

    /* PM Config params */
    TI_UINT32                  uHostClkSettlingTime;	 
    TI_UINT8                   uHostFastWakeupSupport;

    TI_UINT8                   TxPowerDbm;

    /* CoexActivity Table */
    THalCoexActivityTable      tWlanParamsCoexActivityTable;
    
} TWlanParams;


/* 
 * BssInfo params
 * --------------
 */
typedef struct
{
    TI_UINT8                   ReqBssType;
    TI_UINT8                   BssType;
    TI_UINT16                  BeaconInterval;
    TI_UINT8                   DtimInterval; 
    TI_UINT8                   RadioChannel;
    TI_UINT8                   BssId[MAC_ADDR_LEN];
    TSsid                      tSsid;
    /* Policy for recovery */  
    TTxRatePolicy              TxRateClassParams; 
    TI_UINT32                  BasicRateSet;   
    /* The ctrl field in the Join-Command (see StartJoinRequest_t) */
    TI_UINT8                   Ctrl;                                 
    /* ATIM window of IBSS*/
    /* Note that when ATIM window is zero the*/
    /* initiated IBSS does not support powersave*/
    TI_UINT16                  ATimWindow;     
    /* Specifies the PLCP preamble type used*/
    /* 0 for long preamble*/
    /* 1 for short preamble*/
    TI_UINT8                   DefaultPreamble;

    /* 
     * HT setting 
     */
    /* capabilities */
    TI_BOOL   bHtCap;
    TI_UINT32 uHtCapabilites;
    TMacAddr  tMacAddress;
    TI_UINT8  uAmpduMaxLeng;
    TI_UINT8  uAmpduMinSpac;
    /* Information */
    TI_BOOL   bHtInf;
    TI_UINT8  uRifsMode;     
    TI_UINT8  uHtProtection;
    TI_UINT8  uGfProtection;     
    TI_UINT8  uHtTxBurstLimit;
    TI_UINT8  uDualCtsProtection;
    /* BA session */
    TI_BOOL                               bBaInitiator[MAX_NUM_OF_802_1d_TAGS];
    TAxcBaSessionInitiatorResponderPolicy tBaSessionInitiatorPolicy[MAX_NUM_OF_802_1d_TAGS]; 
    TI_BOOL                               bBaResponder[MAX_NUM_OF_802_1d_TAGS];
    TAxcBaSessionInitiatorResponderPolicy tBaSessionResponderPolicy[MAX_NUM_OF_802_1d_TAGS]; 

} TBssInfoParams;


/* 
 * General counters
 * ----------------
 */
typedef struct
{
    TI_UINT32                  FcsErrCnt;

} TGenCounters;


/*
 * queuesParam_T - Queue params for Quality Of Service
 * ------------------------------------------
 */
typedef struct
{
    TQueueTrafficParams        queues[MAX_NUM_OF_AC];
    TI_BOOL                    isQueueConfigured[MAX_NUM_OF_AC];

} TQueuesParams;


typedef struct 
{
    TAcQosParams               ac[MAX_NUM_OF_AC];
    TI_BOOL                    isAcConfigured[MAX_NUM_OF_AC];
	TI_BOOL					   isBurstModeEnabled;
} TAcConfParams;


typedef struct 
{
    TPsRxStreaming             tid[MAX_NUM_OF_802_1d_TAGS];

} TPsRxStreamingParams;


/* 
 * Templates params
 * ----------------
 */
typedef struct
{
    TTemplateParams            Beacon;
    TTemplateParams            ProbeReq24;
    TTemplateParams            ProbeReq50;
    TTemplateParams            ProbeResp;
    TTemplateParams            NullData;
    TTemplateParams            PsPoll;
    TTemplateParams            QosNullData;
    TTemplateParams            KeepAlive[ KLV_MAX_TMPL_NUM ];
    TTemplateParams            Disconn;

} TTemplateListParams;

typedef struct
{
    TI_UINT8                   enaDisFlag;
    TKeepAliveParams           keepAliveParams[ KLV_MAX_TMPL_NUM ];
} TKeepAliveList;

/* Security keys structure for reconfigure phase */
typedef struct
{
    TI_BOOL                    bReconfHwEncEnable;     
    TI_BOOL                    bHwEncDecrEnableValid; 
    TI_UINT8                   uReconfDefaultKeyId;   
    TI_BOOL                    bDefaultKeyIdValid;  
    TSecurityKeys*             pReconfKeys; 
                                   
} TSecurReconf;


/* Rx Data Filters */
typedef struct
{
    TI_UINT8                   uIndex;
    TI_UINT8                   uCommand; 
    filter_e                   eAction;
    TI_UINT8                   uNumFieldPatterns;
    TI_UINT8                   uLenFieldPatterns;
    TI_UINT8                   aFieldPattern[MAX_DATA_FILTER_SIZE];
                                   
} TRxDataFilter;

typedef struct
{
    TI_BOOL                    bEnabled;
    filter_e                   eDefaultAction;
    TRxDataFilter              aRxDataFilter[MAX_DATA_FILTERS];
                                   
} TRxDataFiltersTable;

typedef struct
{
 ACXSmartReflexConfigParams_t     tSmartReflexParams;
 ACXSmartReflexDebugParams_t      tSmartReflexDebugParams;
 ACXSmartReflexState_t            tSmartReflexState;

}TSmartReflexParams ;

typedef struct
{
	RateMangeParams_t rateMngParams;

} TRateMngParams;



/*
 * ----------------------------------------------------------------
 *                  MAIN PARAMETERS STRUCTURE
 * ----------------------------------------------------------------
 */
typedef struct 
{
    TDmaParams                 dma;                 /* Rx/Tx queue parameters   */
    TQueuesParams              queues;              /* Queues params for QOS    */
    TAcConfParams              ac;                  /* AC params for QoS        */
    TPsRxStreamingParams       psStream;            /* PS-Rx-Streaming params   */
    TWlanParams                wlan;                /* Wlan parameters          */
    TBssInfoParams             bss;                 /* Bss information          */
    TFwInfo                    hw;                  /* HW eeprom & versions info*/
    TGenCounters               counters;            /* General counters         */
    TTemplateListParams        templateList;        /* Templates for recovery   */
    TKeepAliveList             klvList;             /* Keep-Alive paramters     */  
    TSecurReconf               keys;                /* Security keys            */
    TRxDataFiltersTable        rxDataFilters;       /* Rx data filters          */
    IniFileGeneralParam        tPlatformGenParams;  /* platfrom gen params from public_radio.h  */
    IniFileRadioParam          tRadioIniParams;     /* Radio ini params from public_radio.h     */
    TSmartReflexParams         tSmartReflex;
	TRateMngParams		       tRateMngParams;      /* rate management params */
} TCmdBldDb;

#endif