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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
|
/*
* paramOut.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.
*/
/****************************************************************************/
/* */
/* MODULE: paramOut.h */
/* PURPOSE: */
/* */
/****************************************************************************/
#ifndef __PARAM_OUT_H__
#define __PARAM_OUT_H__
#include "tidef.h"
#include "report.h"
#include "context.h"
#include "rate.h"
#include "bssTypes.h"
#include "roamingMngrTypes.h"
#include "scanMngrTypes.h"
#ifdef XCC_MODULE_INCLUDED
#include "paramOutXCC.h"
#else
#define XCC_PARAM_FIELDS
#endif
#include "InternalCmdCodes.h"
#include "commonTypes.h"
#include "coreDefaultParams.h"
#include "rsnApi.h"
#include "TWDriver.h"
#include "tiwlnif.h"
#define DOT11_MAX_DEFAULT_WEP_KEYS 4
#define RX_LEVEL_TABLE_SIZE 15
#define RX_DATA_FILTER_MAX_FIELD_PATTERNS 8
#define RX_DATA_FILTER_FILTER_BOUNDARY 256
/* Soft gemini values */
/* Used by UtilInfoCodeQueryInformation , UtilInfoCodeSetInformation */
#define VAL_TX_POWER_VALUE 100
#define VAL_NETWORK_TYPE 101
#define VAL_AP_TX_POWER_LEVEL 102
/* #define VAL_COUNTRY_CODE 103 */
/* #define VAL_REG_DOMAIN_BAND_24 104 */
/* #define VAL_REG_DOMAIN_BAND_50 105 */
#define VAL_PACKET_BURSTING 106
#define VAL_MIXED_MODE 107
#define VAL_PRIVACY_MODE 108
#define VAL_XCC_SECURITY 109
#define VAL_DEFAULT_KEY_ID 110
#define VAL_AP_SUPPORT_CHANELS 111
typedef struct
{
ERate maxBasic;
ERate maxActive;
} ratePair_t;
typedef enum
{
RTS_CTS_DISABLED = 0,
RTS_CTS_ENABLED = 1
} RtsCtsStatus_e;
/* Parameters Structures Definitions per parameter type */
typedef enum
{
AUTH_LEGACY_OPEN_SYSTEM = 0,
AUTH_LEGACY_SHARED_KEY = 1,
AUTH_LEGACY_AUTO_SWITCH = 2,
AUTH_LEGACY_RESERVED1 = 128,
AUTH_LEGACY_NONE = 255
} legacyAuthType_e;
typedef enum
{
CONNECTION_NONE = 0,
CONNECTION_INFRA = 1,
CONNECTION_IBSS = 2,
CONNECTION_SELF = 3
} connectionType_e;
typedef enum
{
RADIO_IN_STAND_BY = 0,
RADIO_OUT_OF_STAND_BY = 1
}radioStandByState_t;
/**** Regulatory Domain module types ****/
/* Scan Control Table for 2.4-G band type */
typedef struct
{
TI_UINT8 tableString[NUM_OF_CHANNELS_24];
} scanControlTable24_t;
/* Scan Control Table for 5G-band type */
typedef struct
{
TI_UINT8 tableString[A_5G_BAND_NUM_CHANNELS];
} scanControlTable5_t;
/* Scan Control Table type */
typedef struct
{
ERadioBand band;
scanControlTable5_t ScanControlTable5;
scanControlTable24_t ScanControlTable24;
} scanControlTable_t;
/** \enum regulatoryDomain_scanOption_e
* \brief Regulatory Domain Scan Options
*
* \par Description
* Enumerates the scan type to used by regulatory domain queries
*
* \sa
*/
typedef enum
{
ACTIVE_SCANNING = 0, /**< The query is for active scanning (requires transmission on the channel) */
PASSIVE_SCANNING = 1 /**< The query is for passive scanning (no transmission is required) */
} regulatoryDomain_scanOption_e;
typedef struct
{
TI_UINT8* pChannelBitMap;
TI_UINT8 channelCnt;
TI_INT8 txPower;
} regulatoryDomainParam_t;
typedef struct
{
TI_UINT8 minTxPower;
TI_UINT8 maxTxPower;
} powerCapability_t;
/* SoftGemini module init parameters */
typedef struct
{
ESoftGeminiEnableModes SoftGeminiEnable;
TI_UINT32 coexParams[SOFT_GEMINI_PARAMS_MAX];
} SoftGeminiInitParams_t;
typedef enum
{
PHY_UNKNOWN = 0,
PHY_FH = 1,
PHY_DSS = 2,
PHY_UN_USED = 3,
PHY_OFDM = 4,
PHY_HIGH_RATE_DSS = 5,
PHY_ERP = 6
} phyType_e;
typedef enum
{
CLOSE = 0,
OPEN_NOTIFY = 1,
OPEN_EAPOL = 2,
OPEN = 3,
MAX_NUM_OF_RX_PORT_STATUS
} portStatus_e;
typedef enum
{
DRIVER_STATUS_IDLE = 0,
DRIVER_STATUS_RUNNING = 1
} driverStatus_e;
typedef enum
{
OS_ABS_LAYER = 0,
RSN = 1
} eapolDestination_e;
/* enumerator for PRE_AUTH event */
typedef enum
{
RSN_PRE_AUTH_START,
RSN_PRE_AUTH_END
} preAuthStatusEvent_e;
typedef enum
{
STATUS_SCANNING = 0,
STATUS_SCAN_COMPLETE = 1
} scanStatus_e;
typedef enum
{
SCAN_DISABLED = 0, /* TI_FALSE*/
SCAN_ENABLED = 1, /* TI_TRUE*/
SKIP_NEXT_SCAN = 2 /* Skip only one next coming scan, then set this parameter to TI_TRUE*/
} scanEnabledOptions_e;
typedef struct
{
TI_UINT32 RecvOk; /* the number of frames that the NIC receives without errors */
TI_UINT32 DirectedBytesRecv; /* the number of bytes in directed packets that are received without errors */
TI_UINT32 DirectedFramesRecv; /* the number of directed packets that are received without errors */
TI_UINT32 MulticastBytesRecv; /* the number of bytes in multicast/functional packets that are received without errors */
TI_UINT32 MulticastFramesRecv; /* the number of multicast/functional packets that are received without errors */
TI_UINT32 BroadcastBytesRecv; /* the number of bytes in broadcast packets that are received without errors. */
TI_UINT32 BroadcastFramesRecv; /* the number of broadcast packets that are received without errors. */
TI_UINT32 LastSecBytesRecv; /* the number of bytes received without errors during last second */
} rxDataCounters_t;
typedef struct rxDataFilterFieldPattern_t
{
TI_UINT16 offset; /* Offset of the field to compare from the start of the packet*/
TI_UINT8 length; /* Size of the field pattern */
TI_UINT8 flag; /* Bit Mask flag */
TI_UINT8 pattern[RX_DATA_FILTER_MAX_PATTERN_SIZE]; /* expected pattern */
TI_UINT8 mask[RX_DATA_FILTER_MAX_PATTERN_SIZE]; /* bit-masking of the internal field content */
} rxDataFilterFieldPattern_t;
typedef struct
{
void *handler;
void *callback;
}QoS_renegVoiceTspecReq_t;
/* Authentication/encryption capability */
#define MAX_AUTH_ENCR_PAIR 13
typedef struct
{
EExternalAuthMode authenticationMode;
ECipherSuite cipherSuite;
} authEncrPairList_t;
typedef struct
{
TI_UINT32 NoOfPMKIDs;
TI_UINT32 NoOfAuthEncrPairSupported;
authEncrPairList_t authEncrPairs[MAX_AUTH_ENCR_PAIR];
} rsnAuthEncrCapability_t;
typedef struct
{
TI_UINT32 numOfPreAuthBssids;
TMacAddr *listOfPreAuthBssid;
} rsnPreAuthBssidList_t;
typedef struct
{
TI_INT32 rssi;
TI_UINT8 snr;
} signal_t;
typedef struct
{
TI_UINT32 basicRateMask;
TI_UINT32 supportedRateMask;
} rateMask_t;
typedef struct
{
TI_UINT8 *assocRespBuffer;
TI_UINT32 assocRespLen;
TI_UINT8 *assocReqBuffer;
TI_UINT32 assocReqLen;
} assocInformation_t;
typedef struct
{
TMacAddr siteMacAddress;
TI_BOOL priority;
} siteMgr_prioritySite_t;
typedef struct{
TI_UINT32 thresholdCross; /* high or low */
TI_UINT32 thresholdCrossDirection; /* direction of crossing */
} trafficIntensityThresholdCross_t;
/************************************/
/* QOS edcf params */
/************************************/
/*
#define CW_MIN_DEF 15
#define CW_MIN_MAX 31
#define CW_MAX_DEF 1023
*/
#define CW_MIN_DEF 4 /* the power of 2 - cwMin = 2^4-1 = 15 */
#define CW_MIN_MAX 5 /* the power of 2 - cwMax = 2^5-1 = 31 */
#define CW_MAX_DEF 10
#define AIFS_DEF 2
#define NO_RX_TIME_OUT 0
#define NO_RX_ACK_POLICY 0
#define DATA_DCF 0 /* MSDUs are sent completely including retrys - normal legacy traffic */
#define QOS_DATA_EDCF 1 /* MPDUs are sent according to TXOP limits - */
#define RETRY_PREEMPTION_DISABLE 0
#define QOS_CONTROL_TAG_MASK 0x0007
#define QOS_CONTROL_EOSP_MASK 0x0010
typedef enum{
AC_ACTIVE = 0,
AC_NOT_ACTIVE
}acActive;
typedef struct
{
TI_UINT8 *buffer;
TI_UINT16 bufLength;
TI_UINT8 isBeacon; /* If true, Beacon packet is returned, otherwise it is Probe Response */
} BufferParameters_t;
typedef struct{
TI_UINT32 trafficAdmCtrlResponseTimeout;
TI_BOOL trafficAdmCtrlUseFixedMsduSize;
}trafficAdmCtrlInitParams_t;
typedef struct{
TI_BOOL wmeEnable;
TI_BOOL trafficAdmCtrlEnable;
TI_BOOL qosTagZeroConverHeader;
TI_UINT8 PacketBurstEnable;
TI_UINT32 PacketBurstTxOpLimit;
TI_UINT32 TxOpLimit[MAX_NUM_OF_AC];
TI_UINT32 MsduLifeTime[MAX_NUM_OF_AC];
TRxTimeOut rxTimeOut;
TI_UINT8 ShortRetryLimit[MAX_NUM_OF_AC];
TI_UINT8 LongRetryLimit[MAX_NUM_OF_AC];
TI_UINT8 desiredWmeAcPsMode[MAX_NUM_OF_AC]; /* wme per ac power save mode */
EQOverflowPolicy QueueOvFlowPolicy[MAX_NUM_OF_AC];
TI_UINT8 acAckPolicy[MAX_NUM_OF_AC]; /* ack policy per AC */
trafficAdmCtrlInitParams_t trafficAdmCtrlInitParams;
TI_UINT8 desiredPsMode; /* The desired PS mode of the station */
TI_UINT8 desiredMaxSpLen;
TI_BOOL bCwFromUserEnable; /* flag to use CwMin & CwMax user setting: 0 disable user setting (values from beacon) , 1 enable user setting (beacon cw ignore)*/
TI_UINT8 uDesireCwMin; /**< The contention window minimum size (in slots) from ini file */
TI_UINT16 uDesireCwMax; /**< The contention window maximum size (in slots) from ini file */
TI_BOOL bEnableBurstMode;
/* Enable the Burst mode from ini file */
/* 802.11n BA session */
TI_UINT8 aBaPolicy[MAX_NUM_OF_802_1d_TAGS];
TI_UINT16 aBaInactivityTimeout[MAX_NUM_OF_802_1d_TAGS];
}QosMngrInitParams_t;
/*END OF MULTIPLE QUEUES STRUCTURE*/
typedef struct
{
TI_UINT16 bufferSize;
TI_UINT8 *buffer;
TI_BOOL reAssoc;
} TAssocReqBuffer;
typedef struct
{
TMacAddr bssID;
TI_UINT16 channel;
} apChannelPair_t;
typedef struct
{
apChannelPair_t *apChannelPairs;
TI_UINT16 numOfEntries;
} neighbor_AP_t;
typedef struct
{
TI_UINT16 maxChannelDuration; /* One channel max duration time. (time slot 0 - 65000) */
TI_UINT16 minChannelDuration; /* One channel max duration time. (time slot 0 - 65000) */
TI_UINT8 earlyTerminationMode; /**< 0 = Stay until max duration time. 1 = Terminate scan in
* a channel upon a reception of Prob-Res or Beacon. 2 = Terminate scan
* in a channel upon a reception of any frame
*/
TI_UINT8 eTMaxNumOfAPframes; /**< number of AP frames (beacon/probe_resp) to trigger Early termination.
* Applicable only when EarlyTerminationMode = 1
*/
TI_UINT8 numOfProbeReq; /* Number of probe request transmitted on each channel */
} periodicScanParams_t;
typedef struct
{
TI_UINT16 channelNum;
TI_BOOL channelValidity;
ERadioBand band;
} channelValidity_t;
/** \struct channelCapabilityRet_t
* \brief Channel Capability Response
*
* \par Description
* Defines scan capabilities information, which is given as a response to a scan capabilities query.
*
* \sa
*/
typedef struct
{
TI_BOOL channelValidity; /**< Indicates whether the channel is valid for the requested scan type.
* TRUE: channel is valid; FALSE: not valid
*/
TI_UINT8 maxTxPowerDbm; /**< Maximum TX power level allowed on this channel from 1 to 5,
* where 1 is the highest and 5 is the lowest. Units: Dbm/10
*/
} channelCapabilityRet_t;
typedef struct
{
TI_UINT8 *listOfChannels;
TI_UINT8 sizeOfList;
} supportedChannels_t;
/** \struct channelCapabilityReq_t
* \brief Channel Capability Resuest
*
* \par Description
* Defines the regulatory domain scan capability query information
*
* \sa
*/
typedef struct
{
regulatoryDomain_scanOption_e scanOption; /**< Desired scan type (passive or active) */
TI_UINT8 channelNum; /**< Channel on which scan is to be performed */
ERadioBand band; /**< Band on which scan is to be performed */
} channelCapabilityReq_t;
typedef struct
{
TI_UINT32 uChannel;
ERadioBand eBand;
TI_BOOL bDfsChannel;
} TDfsChannel;
typedef struct
{
TTxDataCounters *pTxDataCounters;
TI_UINT8 acID;
} reportTsStatisticsReq_t;
/* SME parameters definition */
typedef enum
{
CONNECT_MODE_AUTO = 0,
CONNECT_MODE_MANUAL
} EConnectMode;
/* Generic IE */
#define RSN_MAX_GENERIC_IE_LENGTH 255
typedef struct
{
TI_UINT8 length;
TI_UINT8 data[255];
} rsnGenericIE_t;
/** \struct paramInfo_t
* \brief General Parameters Structure
*
* \par Description
* This structure holds information for the regulatory domain (and other modules
* that are outside of the scope of this document) queries
*
* \sa
*/
typedef struct{
TI_UINT32 paramType; /**< Parameter identification value */
TI_UINT32 paramLength; /**< Parameter actual length (or the length allocated in content for parameter value) */
/* Actual parameter value */
union
{
/* HAL Control section */
TI_UINT16 halCtrlRtsThreshold;
TI_UINT16 halCtrlFragThreshold;
/* site manager section */
TI_UINT8 siteMgrDesiredChannel;
TMacAddr siteMgrDesiredBSSID;
TSsid siteMgrDesiredSSID;
ScanBssType_e siteMgrDesiredBSSType;
ratePair_t siteMgrDesiredRatePair;
TRates siteMgrDesiredBasicRateSet;
TRates siteMgrDesiredSupportedRateSet;
rateMask_t siteMgrCurrentRateMask;
TI_UINT8 siteMgrCurrentTxRate;
TI_UINT8 siteMgrCurrentRxRate;
EModulationType siteMgrDesiredModulationType;
TI_UINT16 siteMgrDesiredBeaconInterval;
EPreamble siteMgrDesiredPreambleType;
EPreamble siteMgrCurrentPreambleType;
ERadioBand siteMgrRadioBand;
OS_802_11_BSSID_EX *pSiteMgrSelectedSiteInfo;
OS_802_11_BSSID *pSiteMgrPrimarySiteDesc;
EDot11Mode siteMgrDot11Mode;
EDot11Mode siteMgrDot11OperationalMode;
EDraftNumber siteMgrUseDraftNum;
TI_UINT8 siteMgrCurrentChannel;
TSsid siteMgrCurrentSSID;
ScanBssType_e siteMgrCurrentBSSType;
EModulationType siteMgrCurrentModulationType;
ESlotTime siteMgrSlotTime;
signal_t siteMgrCurrentSignal;
TI_UINT8 siteMgrNumberOfSites;
TIWLN_COUNTERS siteMgrTiWlanCounters;
TI_BOOL siteMgrBuiltInTestStatus;
TI_UINT8 siteMgrFwVersion[FW_VERSION_LEN]; /* Firmware version - null terminated string*/
TI_UINT32 siteMgrDisAssocReason;
TI_UINT16 siteMgrSiteCapability;
TI_UINT16 beaconInterval;
TI_UINT8 APTxPower;
TI_BOOL siteMgrQuietScanInProcess;
TI_BOOL siteMgrScanSliceCurrentlyActive;
TI_UINT8 siteMgrRoamingRssiGapThreshold;
TI_UINT8 timeStamp[8];
TI_BOOL siteMgrBeaconRecv;
TI_UINT32 siteMgrDtimPeriod;
TI_INT32 siteMgrCurrentRssi;
TI_UINT8 siteMgrIndexOfDesiredSiteEntry;
TI_UINT8 *pSiteMgrDesiredSiteEntry;
TI_UINT8 siteMgrCurrentTsfTimeStamp[8];
TI_UINT8 siteMgrUsrConfigTxPower;
OS_802_11_CONFIGURATION *pSiteMgrConfiguration;
siteMgr_prioritySite_t siteMgrPrioritySite;
BufferParameters_t siteMgrLastBeacon;
TI_UINT8 siteMgrDesiredBeaconFilterState;
TI_BOOL siteMgrAllowTxPowerCheck;
void *pPrimarySite;
TI_BOOL bPrimarySiteHtSupport;
/* WiFI SimpleConfig */
TWscMode siteMgrWSCMode; /* used to set the WiFi Simple Config mode */
/* SME SM section */
TMacAddr smeDesiredBSSID;
TSsid smeDesiredSSID;
ScanBssType_e smeDesiredBSSType;
TI_BOOL smeRadioOn;
EConnectMode smeConnectionMode;
TIWLN_DOT11_STATUS smeSmConnectionStatus;
/* connection SM section */
TI_UINT32 connSelfTimeout;
/* auth SM section */
TI_UINT32 authResponseTimeout;
/* assoc SM section */
TI_UINT32 assocResponseTimeout;
OS_802_11_ASSOCIATION_INFORMATION assocAssociationInformation;
/* RSN section */
TI_BOOL rsnPrivacyOptionImplemented;
EAuthSuite rsnDesiredAuthType;
OS_802_11_KEY rsnOsKey;
rsnAuthEncrCapability_t *pRsnAuthEncrCapability;
TI_UINT32 rsnNoOfPMKIDs;
OS_802_11_PMKID rsnPMKIDList;
TI_UINT32 rsnWPAPromoteFlags;
TI_UINT32 rsnWPAMixedModeSupport;
TI_UINT32 rsnAuthState; /* supp_1XStates */
ECipherSuite rsnEncryptionStatus;
TI_UINT8 rsnHwEncDecrEnable; /* 0- disable, 1- enable*/
TSecurityKeys *pRsnKey;
TI_UINT8 rsnDefaultKeyID;
EExternalAuthMode rsnExtAuthneticationMode;
TI_BOOL rsnMixedMode;
TI_BOOL rsnPreAuthStatus;
TMacAddr rsnApMac;
OS_802_11_EAP_TYPES eapType;
TI_BOOL wpa_802_1x_AkmExists;
TI_BOOL rsnPortStatus;
rsnGenericIE_t rsnGenericIE;
TI_BOOL rsnExternalMode;
/* Rx Data section */
rxDataCounters_t rxDataCounters;
TI_BOOL rxDataFilterEnableDisable;
TRxDataFilterRequest rxDataFilterRequest;
TI_UINT16 rxGenericEthertype;
/* Tx Data section */
portStatus_e txDataPortStatus;
TTxDataCounters *pTxDataCounters;
TI_UINT32 txPacketsCount;
reportTsStatisticsReq_t tsMetricsCounters;
OS_802_11_THRESHOLD_CROSS_PARAMS txDataMediumUsageThreshold;
TI_UINT8 txDataEncryptionFieldSize;
TI_UINT16 txGenericEthertype;
/* Ctrl Data section */
TI_BOOL ctrlDataPowerSaveEnable;
TI_BOOL ctrlDataPowerSaveForce;
TI_BOOL ctrlDatapowerSaveEnhanceAlgorithm;
erpProtectionType_e ctrlDataIbssProtecionType;
RtsCtsStatus_e ctrlDataRtsCtsStatus;
TI_BOOL ctrlDataProtectionEnabled;
TMacAddr ctrlDataCurrentBSSID;
ScanBssType_e ctrlDataCurrentBssType;
TI_UINT32 ctrlDataCurrentRateMask;
ERate ctrlDataCurrentBasicRate;
EPreamble ctrlDataCurrentPreambleType;
ERate ctrlDataCurrentActiveRate;
TMacAddr ctrlDataDeviceMacAddress;
TStreamTrafficProperties ctrlDataUpOfStream;
TClsfrTableEntry ctrlDataClsfrInsertTable;
EClsfrType ctrlDataClsfrType;
TI_UINT32 ctrlDataTrafficIntensityEventsFlag;
OS_802_11_TRAFFIC_INTENSITY_THRESHOLD_PARAMS ctrlDataTrafficIntensityThresholds;
connectionType_e connType;
/* MLME SM section */
legacyAuthType_e mlmeLegacyAuthType;
legacyAuthType_e authLegacyAuthType;
TI_BOOL mlmeReAssoc;
TI_BOOL rxDataExcludeUnencrypted;
eapolDestination_e rxDataEapolDestination;
portStatus_e rxDataPortStatus;
TI_BOOL txDataCurrentPrivacyInvokedMode;
TI_BOOL txDataEapolEncryptionStatus;
TI_UINT32 txDataPollApPacketsFromACid; /* AC to poll AP packets from */
/* regulatory Domain section */
regulatoryDomainParam_t regulatoryDomainParam;
TI_UINT8 channel;
TCountry* pCountry;
TI_UINT8* pCountryString;
TI_BOOL spectrumManagementEnabled;
TI_BOOL regulatoryDomainEnabled;
powerCapability_t powerCapability;
TI_UINT8* pSupportedChannel;
TI_INT8 powerConstraint;
TI_INT8 desiredTxPower; /* The desired Tx power inforced by the User (Utility),
or The desired Tx power (in Dbm) as forced by teh OS */
TI_INT8 ExternTxPowerPreferred; /*for other extern elements that want
to effect the transmit power*/
TpowerLevelTable_t powerLevelTable;
channelValidity_t channelValidity;
channelCapabilityRet_t channelCapabilityRet;
channelCapabilityReq_t channelCapabilityReq;
supportedChannels_t supportedChannels;
TI_BOOL enableDisable_802_11d;
TI_BOOL enableDisable_802_11h;
TI_BOOL bActivateTempPowerFix;
TI_BOOL bIsCountryFound;
TI_BOOL bIsChannelSupprted;
TDfsChannelRange DFS_ChannelRange;
TDfsChannel tDfsChannel;
ERadioBand eRadioBand;
TI_UINT32 uTimeToCountryExpiryMs;
/* Measurement Manager section */
TI_UINT32 measurementEnableDisableStatus;
TI_UINT16 measurementTrafficThreshold;
TI_UINT16 measurementMaxDuration;
TInterrogateCmdCbParams interogateCmdCBParams;
/* soft Gemini section */
ESoftGeminiEnableModes SoftGeminiEnable;
TI_UINT32 SoftGeminiParamArray[NUM_OF_CONFIG_PARAMS_IN_SG];
TI_UINT32 CoexActivityParamArray[NUM_OF_COEX_ACTIVITY_PARAMS_IN_SG];
/* case XCC MODULE INCLUDED */
XCC_PARAM_FIELDS
/* Application Config Parameters Manager */
TAssocReqBuffer assocReqBuffer;
TAssocReqBuffer assocResBuffer;
roamingMngrConfigParams_t roamingConfigBuffer;
TI_UINT32 roamingTriggerType;
TI_UINT32 roamingConnStatus;
bssList_t* pScanBssList;
TScanPolicy* pScanPolicy;
/* Scan concnetrator application scan (periodic & one-shot) parameters */
TScanParams *pScanParams;
TPeriodicScanParams *pPeriodicScanParams;
TI_UINT32 uBssidListSize;
OS_802_11_BSSID_LIST_EX *pBssidList;
TSsid tScanDesiredSSID;
/* tx data qos related parameters */
TTxDataQosParams txDataQosParams;
/* QOS Manager */
EQosProtocol qosSiteProtocol;
TI_UINT8 qosPacketBurstEnb; /* Packet Burst Enable */
EDot11Mode qosMngrOperationalMode;
TI_UINT8 desiredPsMode;
TI_UINT8 currentPsMode;
TSpecConfigure TspecConfigure;
TPsRxStreaming tPsRxStreaming;
OS_802_11_QOS_RX_TIMEOUT_PARAMS rxTimeOut;
OS_802_11_QOS_PARAMS qosOsParams;
OS_802_11_AC_QOS_PARAMS qosApQosParams;
/* AP Qos Capabilities */
OS_802_11_AP_QOS_CAPABILITIES_PARAMS qosApCapabilities;
/* Qos current AC status */
OS_802_11_AC_UPSD_STATUS_PARAMS qosCurrentAcStatus;
OS_802_11_QOS_DELETE_TSPEC_PARAMS qosDelTspecRequest;
OS_802_11_QOS_TSPEC_PARAMS qosAddTspecRequest;
QoS_renegVoiceTspecReq_t qosRenegotiateTspecRequest;
OS_802_11_QOS_TSPEC_PARAMS qosTspecParameters;
OS_802_11_QOS_DESIRED_PS_MODE qosDesiredPsMode;
/* Power Manager */
PowerMgr_PowerMode_e PowerMode;
EPowerPolicy PowerSavePowerLevel;
EPowerPolicy DefaultPowerLevel;
TPowerMgr_PowerMode powerMngPowerMode;
PowerMgr_Priority_e powerMngPriority;
PowerMgr_PowerMode_e powerMngDozeMode;
TI_BOOL powerMgrKeepAliveEnaDis;
TKeepAliveTemplate *pPowerMgrKeepAliveTemplate;
TKeepAliveConfig *pPowerMgrKeepAliveConfig;
/* txRatePolicy params */
TTxRatePolicy TxRatePolicy;
TIWLN_RADIO_RX_QUALITY RxRadioQuality ;
/* MIB*/
TMib mib;
/* Current BSS params - RSSI/SNR User Trigger */
TUserDefinedQualityTrigger rssiSnrTrigger;
/* debug */
TDebugRegisterReq HwRegister;
RateMangeParams_t RateMng;
RateMangeReadParams_t RateMngParams;
TIpAddr StationIP;
} content;
}paramInfo_t;
/*-----------------------------------------------------*/
/* EEPROM-less support */
/*-----------------------------------------------------*/
#define MAX_CALL_DATA_REG_NUM 30
#define HW_EEPROM_PRESENTED 1
#define HW_EEPROM_NOT_PRESENTED 0
typedef struct
{
TI_UINT16 RegAddress;
TI_UINT16 RegValue;
} PhyRegisters_t;
typedef enum
{
PS_MODE_ELP = 0,
PS_MODE_POWER_DOWN = 1,
PS_MODE_ACTIVE = 2,
PS_MODE_WAKE_TNET = 3
} powerSaveModes_e;
/**************************** Beginning of Init Params ************************************/
typedef struct
{
TI_UINT8 siteMgr_radioRxLevel[RX_LEVEL_TABLE_SIZE];
TI_UINT8 siteMgr_radioLNA[RX_LEVEL_TABLE_SIZE];
TI_UINT8 siteMgr_radioRSSI[RX_LEVEL_TABLE_SIZE];
TI_UINT32 factorRSSI; /* for RADIA only */
}radioValues_t;
typedef struct
{
TI_UINT8 siteMgrDesiredChannel;
TMacAddr siteMgrDesiredBSSID;
TSsid siteMgrDesiredSSID;
ScanBssType_e siteMgrDesiredBSSType;
EDot11Mode siteMgrDesiredDot11Mode;
ERadioBand siteMgrSupportedBand;
EDraftNumber siteMgrUseDraftNum;
TI_UINT32 siteMgrRegstryBasicRate[DOT11_MAX_MODE];
TI_UINT32 siteMgrRegstrySuppRate[DOT11_MAX_MODE];
TI_UINT32 siteMgrRegstryBasicRateMask;
TI_UINT32 siteMgrRegstrySuppRateMask;
rateMask_t siteMgrCurrentDesiredRateMask;
ratePair_t siteMgrDesiredRatePair;
TI_UINT32 siteMgrMatchedBasicRateMask;
TI_UINT32 siteMgrMatchedSuppRateMask;
EModulationType siteMgrDesiredModulationType;
EPreamble siteMgrDesiredPreambleType;
ESlotTime siteMgrDesiredSlotTime;
TI_UINT16 siteMgrDesiredBeaconInterval;
TI_UINT32 siteMgrDesiredAtimWindow;
TI_UINT32 siteMgrFreq2ChannelTable[SITE_MGR_CHANNEL_MAX+1];
TI_UINT8 siteMgrExternalConfiguration;
TI_UINT8 siteMgrPrivacyMode;
TI_BOOL siteMgrWiFiAdhoc;
/* TX Power Control parameters */
TI_UINT32 TxPowerCheckTime;
TI_UINT32 TxPowerControlOn;
TI_INT32 TxPowerRssiThresh;
TI_INT32 TxPowerRssiRestoreThresh;
TI_UINT8 TxPowerRecoverLevel;
TI_UINT8 TxPowerDesiredLevel;
TBeaconFilterInitParams beaconFilterParams; /*contains the desired state*/
TI_UINT8 includeWSCinProbeReq;
} siteMgrInitParams_t;
typedef struct
{
ERadioBand eBand;
TI_UINT8 uChannel;
} TSmeScanChannel;
typedef struct
{
TI_BOOL bRadioOn;
TSsid tDesiredSsid;
TMacAddr tDesiredBssid;
ScanBssType_e eDesiredBssType;
EConnectMode eConnectMode;
} TSmeModifiedInitParams;
typedef struct
{
TI_UINT32 uMinScanDuration;
TI_UINT32 uMaxScanDuration;
TI_UINT32 uProbeReqNum;
TI_INT8 iSnrThreshold;
TI_INT8 iRssiThreshold;
TI_UINT32 uScanIntervals[ PERIODIC_SCAN_MAX_INTERVAL_NUM ];
TI_UINT32 uCycleNum;
TI_UINT32 uChannelNum;
TSmeScanChannel tChannelList[ PERIODIC_SCAN_MAX_CHANNEL_NUM ];
} TSmeInitParams;
typedef struct
{
TI_BOOL RoamingScanning_2_4G_enable;
TI_UINT8 RoamingOperationalMode;
} TRoamScanMngrInitParams;
typedef struct
{
TI_UINT8 parseWSCInBeacons;
} TMlmeInitParams;
typedef struct
{
TI_UINT32 connSelfTimeout;
} connInitParams_t;
typedef struct
{
TI_UINT32 authResponseTimeout;
TI_UINT32 authMaxRetryCount;
} authInitParams_t;
typedef struct
{
TI_UINT32 assocResponseTimeout;
TI_UINT32 assocMaxRetryCount;
} assocInitParams_t;
typedef struct
{
TI_UINT8 highRateThreshold;
TI_UINT8 lowRateThreshold;
TI_BOOL enableEvent;
}tspecsRateParameters_t;
typedef struct
{
TI_BOOL ctrlDataPowerSaveEnhanceAlgorithm;
TI_UINT16 ctrlDataPowerSaveTimeOut;
TI_UINT8 ctrlDataPowerSaveTxThreshold;
TI_UINT8 ctrlDataPowerSaveRxThreshold;
}powerSaveInitParams_t;
typedef struct
{
TI_UINT8 longRetryLimit;
TI_UINT8 shortRetryLimit;
}txRatePolicyParams;
typedef struct
{
TI_BOOL ctrlDataPowerSaveEnable;
TI_BOOL ctrlDataSoftGeminiEnable;
TMacAddr ctrlDataDeviceMacAddress;
powerSaveInitParams_t powerSaveInitParams;
erpProtectionType_e ctrlDataDesiredIbssProtection;
/* 0 = CTS protaction disable ; 1 = Standard CTS protaction */
RtsCtsStatus_e ctrlDataDesiredCtsRtsStatus;
OS_802_11_TRAFFIC_INTENSITY_THRESHOLD_PARAMS ctrlDataTrafficThreshold;
TI_BOOL ctrlDataTrafficThresholdEnabled;
txRatePolicyParams ctrlDataTxRatePolicy;
TI_UINT32 policyEnabledRatesMaskCck;
TI_UINT32 policyEnabledRatesMaskOfdm;
TI_UINT32 policyEnabledRatesMaskOfdmA;
TI_UINT32 policyEnabledRatesMaskOfdmN;
} ctrlDataInitParams_t;
typedef struct
{
/* TxCtrl Parameters */
TI_UINT32 creditCalculationTimeout;
TI_BOOL bCreditCalcTimerEnabled;
/* TxDataQueue Parameters */
TI_BOOL bStopNetStackTx;
TI_UINT32 uTxSendPaceThresh;
TClsfrParams ClsfrInitParam;
} txDataInitParams_t;
typedef enum
{
RADIO_B_G_INDEX = 0,
RADIO_A_B_G_INDEX = 1,
NUM_OF_RADIO_TYPES = 2
} regulatoryDomain_radioIndexType_e;
/* Regulatory Domain module init parameters */
typedef struct
{
TI_UINT32 uTimeOutToResetCountryMs; /* Time after which country code will be reset */
TI_UINT8 multiRegulatoryDomainEnabled; /* 802.11d */
TI_UINT8 spectrumManagementEnabled; /* 802.11h */
TI_UINT8 desiredTxPower;
TI_UINT8 uTemporaryTxPower;
scanControlTable_t desiredScanControlTable;/* for 5 and 2.4 Ghz*/
} regulatoryDomainInitParams_t;
#ifdef XCC_MODULE_INCLUDED
typedef enum
{
XCC_MODE_DISABLED,
XCC_MODE_ENABLED,
XCC_MODE_STANDBY
} XCCMngr_mode_t;
typedef struct
{
XCCMngr_mode_t XCCEnabled;
} XCCMngrParams_t;
#endif
/* Measurement module init parameters */
typedef struct
{
TI_UINT16 trafficIntensityThreshold;
TI_UINT16 maxDurationOnNonServingChannel;
#ifdef XCC_MODULE_INCLUDED
XCCMngr_mode_t XCCEnabled;
#endif
} measurementInitParams_t;
/* Switch Channel Module module init parameters */
typedef struct
{
TI_BOOL dot11SpectrumManagementRequired;
} SwitchChannelInitParams_t;
typedef struct
{
TI_UINT32 qosClassifierTable[MAX_NUM_OF_802_1d_TAGS];
}
clsfrParams_t;
typedef struct
{
PowerMgr_PowerMode_e powerMode;
TI_UINT32 beaconReceiveTime;
TI_UINT8 hangoverPeriod;
TI_UINT8 beaconListenInterval;
TI_UINT8 dtimListenInterval;
TI_UINT8 nConsecutiveBeaconsMissed;
TI_UINT8 EnterTo802_11PsRetries;
TI_UINT8 HwPsPollResponseTimeout;
TI_UINT16 autoModeInterval;
TI_UINT16 autoModeActiveTH;
TI_UINT16 autoModeDozeTH;
PowerMgr_PowerMode_e autoModeDozeMode;
EPowerPolicy defaultPowerLevel;
EPowerPolicy PowerSavePowerLevel;
/* powerMgmtConfig IE */
TI_UINT8 mode;
TI_UINT8 needToSendNullData;
TI_UINT8 numNullPktRetries;
TI_UINT8 hangOverPeriod;
TI_UINT16 NullPktRateModulation;
/* PMConfigStruct */
TI_UINT32 ELPEnable; /* based on "elpType" */
TI_UINT32 WakeOnGPIOenable; /* based on "hwPlatformType" */
TI_UINT32 BaseBandWakeUpTime; /* BBWakeUpTime */
TI_UINT32 PLLlockTime;
/* ACXWakeUpCondition */
TI_UINT8 listenInterval;
/* BET */
TI_UINT32 MaximalFullBeaconReceptionInterval; /* maximal time between full beacon reception */
TI_UINT8 BetEnableThreshold;
TI_UINT8 BetDisableThreshold;
TI_UINT8 BetEnable;
TI_UINT8 MaximumConsecutiveET;
TI_UINT32 PsPollDeliveryFailureRecoveryPeriod;
TI_BOOL reAuthActivePriority;
}PowerMgrInitParams_t;
typedef struct
{
TI_UINT8 FullRecoveryEnable;
TI_BOOL recoveryTriggerEnabled[ MAX_FAILURE_EVENTS ];
} healthMonitorInitParams_t;
typedef struct
{
TI_BOOL ignoreDeauthReason0;
} apConnParams_t;
typedef struct
{
TI_UINT32 uMinimumDurationBetweenOsScans;
TI_UINT32 uDfsPassiveDwellTimeMs;
TI_BOOL bPushMode; /* True means Push mode. False is the default mode, storing scan results in table. */
} TScanCncnInitParams;
typedef struct
{
TI_UINT8 uNullDataKeepAlivePeriod;
TI_UINT8 RoamingOperationalMode;
} TCurrBssInitParams;
typedef struct
{
TI_BOOL rxDataHostPacketProcessing;
TI_BOOL rxDataFiltersEnabled;
filter_e rxDataFiltersDefaultAction;
TRxDataFilterRequest rxDataFilterRequests[MAX_DATA_FILTERS];
TI_UINT32 reAuthActiveTimeout;
}rxDataInitParams_t;
typedef struct
{
TI_UINT32 uWlanDrvThreadPriority; /* Default setting of the WLAN driver task priority */
TI_UINT32 uBusDrvThreadPriority; /* Default setting of the bus driver thread priority */
TI_UINT32 uSdioBlkSizeShift; /* In block-mode: uBlkSize = (1 << uBlkSizeShift) */
}TDrvMainParams;
/* This table is forwarded to the driver upon creation by the OS abstraction layer. */
typedef struct
{
TTwdInitParams twdInitParams;
siteMgrInitParams_t siteMgrInitParams;
connInitParams_t connInitParams;
authInitParams_t authInitParams;
assocInitParams_t assocInitParams;
txDataInitParams_t txDataInitParams;
ctrlDataInitParams_t ctrlDataInitParams;
TRsnInitParams rsnInitParams;
regulatoryDomainInitParams_t regulatoryDomainInitParams;
measurementInitParams_t measurementInitParams;
TSmeModifiedInitParams tSmeModifiedInitParams;
TSmeInitParams tSmeInitParams;
SoftGeminiInitParams_t SoftGeminiInitParams;
QosMngrInitParams_t qosMngrInitParams;
clsfrParams_t clsfrParams;
#ifdef XCC_MODULE_INCLUDED
XCCMngrParams_t XCCMngrParams;
#endif
SwitchChannelInitParams_t SwitchChannelInitParams;
healthMonitorInitParams_t healthMonitorInitParams;
apConnParams_t apConnParams;
PowerMgrInitParams_t PowerMgrInitParams;
TScanCncnInitParams tScanCncnInitParams;
rxDataInitParams_t rxDataInitParams;
TI_BOOL SendINIBufferToUser;
/* Traffic Monitor */
TI_UINT8 trafficMonitorMinIntervalPercentage;
TReportInitParams tReport;
TCurrBssInitParams tCurrBssInitParams;
TContextInitParams tContextInitParams;
TMlmeInitParams tMlmeInitParams;
TDrvMainParams tDrvMainParams;
TRoamScanMngrInitParams tRoamScanMngrInitParams;
} TInitTable;
#endif /* __PARAM_OUT_H__ */
|