Update build system, documentation and delete temp files
[wave300.git] / wireless / shared_mbss_mac / mhi_mib_id.h
blob0f6a9eb71f1b2493de3e841844a45f2ebe716708
1 /******************************************************************************
3 Copyright (c) 2012
4 Lantiq Deutschland GmbH
6 For licensing information, see the file 'LICENSE' in the root folder of
7 this software module.
9 ******************************************************************************/
10 /****************************************************************************
11 ****************************************************************************
13 ** COMPONENT: Managed Object Definitions
15 ** MODULE: $File: //bwp/enet/demo153_sw/develop/src/shared/mhi_mib_id.h $
17 ** VERSION: $Revision: #8 $
19 ** DATED: $Date: 2004/02/20 $
21 ** AUTHOR: S Sondergaard
23 ** DESCRIPTION: External interface for managed objects
25 ****************************************************************************
31 ****************************************************************************/
33 #ifndef __MHI_MIB_ID_INCLUDED
34 #define __MHI_MIB_ID_INCLUDED
36 #define MTLK_PACK_ON
37 #include "mtlkpack.h"
39 /***************************************************************************/
40 /*** Include File Dependencies ***/
41 /***************************************************************************/
43 /***************************************************************************/
44 /*** Global data ***/
45 /***************************************************************************/
47 /*----Macro Definitions-----------------------------------------------------*/
48 /* Keep up to date with hi_motab.h */
51 /* MIB key length validations */
52 #define MIB_WEP_KEY_INVALID_LENGTH 0 /* WEP key is not set */
53 #define MIB_WEP_KEY_WEP1_LENGTH 5 /* WEP key type 1 is 40 bits (5 bytes) */
54 #define MIB_WEP_KEY_WEP2_LENGTH 13 /* WEP key type 2 is 104 bits (13 bytes) */
55 /* define other values for other keys here */
57 #define NO_RATE 0xFFFF
59 #define FORCED_RATE_LEGACY_MASK 0x0001
60 #define FORCED_RATE_HT_MASK 0x0002
62 /***************************************************************************/
63 /*** RSN MIB Objects ***/
64 /***************************************************************************/
66 /* RSN Control */
67 #define RSNMIB_DEFAULT_REPLAY_WINDOW (16)
69 typedef struct _RSNMIB_CONTROL
71 uint8 u8IsRsnEnabled; //dot11RSNAActivated
72 uint8 u8IsTsnEnabled;
73 uint8 reserved[2];
74 } __MTLK_PACKED RSNMIB_CONTROL;
76 /* Pairwise alert thresholds */
77 typedef struct _RSNMIB_PAIRWISE_ALERT_THRESHOLDS
79 uint16 u16TkipIcvErrorThreshold;
80 uint16 u16TkipMicFailureThreshold;
81 uint16 u16TkipReplayThreshold;
82 uint16 u16CcmpMicFailureThreshold;
83 uint16 u16CcmpReplayThreshold;
84 uint16 u16NumTxThreshold;
85 } __MTLK_PACKED RSNMIB_PAIRWISE_ALERT_THRESHOLDS;
87 /* Group alert thresholds */
88 typedef struct _RSNMIB_GROUP_ALERT_THRESHOLDS
90 uint16 u16TkipIcvErrorThreshold;
91 uint16 u16TkipMicFailureThreshold;
92 uint16 u16CcmpMicFailureThreshold;
93 uint16 u16NumTxThreshold;
94 } __MTLK_PACKED RSNMIB_GROUP_ALERT_THRESHOLDS;
96 /* RSN security parameters in RSN IE format */
97 #define MIB_RSN_PARAMETERS_LENGTH (40)
98 /*--------------------------------------------------------------------------
99 * Managed Object Type Definitions
101 * Description: WME Parameters
102 *--------------------------------------------------------------------------*/
103 /* Constant definitions for WME */
105 #define MAX_USER_PRIORITIES 4
108 typedef struct _MIB_WME_TABLE
110 uint8 au8CWmin[MTLK_PAD4(MAX_USER_PRIORITIES)]; /* Log CW min */
111 uint16 au16Cwmax[MTLK_PAD4(MAX_USER_PRIORITIES)]; /* Log CW max */
112 uint8 au8AIFS[MTLK_PAD4(MAX_USER_PRIORITIES)];
113 uint16 au16TXOPlimit[MTLK_PAD4(MAX_USER_PRIORITIES)];
114 uint16 auMSDULifeTime[MTLK_PAD4(MAX_USER_PRIORITIES)];
115 uint8 auAdmissionControl[MTLK_PAD4(MAX_USER_PRIORITIES)];
116 } __MTLK_PACKED MIB_WME_TABLE;
120 typedef struct _FM_WME_OUI_AND_VER
122 uint8 au8OUI[3];
123 uint8 u8OUItype;
124 uint8 u8OUIsubType;
125 uint8 u8Version;
126 uint8 u8QosInfoField;
127 uint8 u8Reserved;
128 } __MTLK_PACKED FM_WME_OUI_AND_VER;
130 typedef struct _FM_WME_QOS_INFO_FIELD
132 uint8 parameterSetCount :4;
133 uint8 reserved :3;
134 uint8 au8OUI :1;
135 } __MTLK_PACKED FM_WME_QOS_INFO_FIELD;
137 typedef struct _PRE_ACTIVATE_MIB_TYPE
139 uint8 u8Reserved[3] ; // for 32 bit alignment
140 uint8 u8NetworkMode ; // MIB_NETWORK_MODE uses NETWORK_MODES_E values
141 uint8 u8UpperLowerChannel ; // MIB_UPPER_LOWER_CHANNEL_BONDING
142 uint8 u8SpectrumMode ; // MIB_SPECTRUM_MODE
143 uint8 u8ShortSlotTimeOptionEnabled11g ; // MIB_SHORT_SLOT_TIME_OPTION_ENABLED_11G
144 uint8 u8ShortPreambleOptionImplemented; // MIB_SHORT_PREAMBLE_OPTION_IMPLEMENTED
145 uint32 u32BSSOperationalRateSet ; // MIB_OPERATIONAL_RATE_SET
146 uint32 u32BSSbasicRateSet ; // MIB_BSS_BASIC_RATE_SET
147 uint32 u32BSSSupportedRateSet ; // MIB_BSS_SUPPORTED_RATE_SET
148 uint32 u32BSSExtendedRateSet ; // MIB_BSS_EXTENDED_RATE_SET
150 } __MTLK_PACKED PRE_ACTIVATE_MIB_TYPE;
152 typedef enum _NETWORK_MODES
154 NETWORK_11B_ONLY,
155 NETWORK_11G_ONLY,
156 NETWORK_11N_2_4_ONLY,
157 NETWORK_11BG_MIXED,
158 NETWORK_11GN_MIXED,
159 NETWORK_11BGN_MIXED,
160 NETWORK_11A_ONLY,
161 NETWORK_11N_5_ONLY,
162 NETWORK_11AN_MIXED,
163 NUM_OF_NETWORK_MODES
164 } NETWORK_MODES_E;
166 /*--------------------------------------------------------------------------
167 * Managed Object definitions
169 * Description: The representation of unsigned 8-bits value
171 *--------------------------------------------------------------------------*/
172 typedef uint8 MIB_UINT8;
174 /*--------------------------------------------------------------------------
175 * Managed Object definitions
177 * Description: The representation of unsigned 16-bits value
179 *--------------------------------------------------------------------------*/
180 typedef uint16 MIB_UINT16;
182 /*--------------------------------------------------------------------------
183 * Managed Object definitions
185 * Description: The representation of unsigned 32-bits value
187 *--------------------------------------------------------------------------*/
188 typedef uint32 MIB_UINT32;
190 /*--------------------------------------------------------------------------
191 * Managed Object definitions
193 * Description: The representation of unsigned 64-bits value
195 *--------------------------------------------------------------------------*/
196 #ifdef __ghs
197 typedef struct _MIB_UINT64
199 uint32 ui32Low;
200 uint32 ui32High;
201 } MIB_UINT64;
202 #else
203 typedef uint64 MIB_UINT64;
204 #endif
207 /*--------------------------------------------------------------------------
208 * Managed Object definitions
210 * Description: TPC Object definitions
212 * Representation:
214 *--------------------------------------------------------------------------*/
215 #define TPC_FREQ_STR_NUM (4)
216 #define TPC_FREQ_POINT_NUM (5)
218 typedef struct _TPC_FREQ
220 uint8 chID;
221 uint8 BackoffMultiplier;
222 uint8 MaxTxPowerIndex;
223 uint8 Backoff;
224 // These are occupy 4 bytes
225 uint16 X_axis[ MTLK_PAD2( TPC_FREQ_POINT_NUM ) ];
226 // Array is assigned to 4-byte boundary
227 uint8 Y_axis[ MTLK_PAD4( TPC_FREQ_POINT_NUM ) ];
228 } __MTLK_PACKED TPC_FREQ;
231 typedef struct _List_Of_Tpc
233 TPC_FREQ sTPCerFreq [TPC_FREQ_STR_NUM];
234 } __MTLK_PACKED List_Of_Tpc;
235 /*--------------------------------------------------------------------------
236 * Managed Object Type Definitions
238 * Description: EEPROM Version ID, Number of points in TPC_FREQ structure
240 * Representation: MIB_MANUFACTURER_ID
242 *--------------------------------------------------------------------------*/
243 typedef struct __EEPROM_VERSION_TYPE
245 uint16 u16EEPROMVersion;
246 uint8 u8NumberOfPoints5GHz;
247 uint8 u8NumberOfPoints2GHz;
248 } __MTLK_PACKED EEPROM_VERSION_TYPE;
251 /*--------------------------------------------------------------------------
252 * Managed Object definitions
254 * Description: The name of the manufacturer
256 * Representation: MIB_MANUFACTURER_ID
258 *--------------------------------------------------------------------------*/
259 /* Max length of manufacturer id (including terminating null) */
260 #define MIB_MANUFACTURER_ID_LENGTH 16
262 typedef struct _MIB_MAN_ID
264 char acName[MTLK_PAD4(MIB_MANUFACTURER_ID_LENGTH)];
265 } __MTLK_PACKED MIB_MAN_ID;
269 /*--------------------------------------------------------------------------
270 * Managed Object Type Definitions
272 * Description: The name/id of the product
274 * Representation: MIB_MANUFACTURER_ID
276 *--------------------------------------------------------------------------*/
277 /* Max length of manufacturer id (including terminating null) */
278 #define MIB_PRODUCT_ID_LENGTH 16
280 typedef struct _MIB_PROD_ID
282 char acName[MTLK_PAD4(MIB_PRODUCT_ID_LENGTH)];
283 } __MTLK_PACKED MIB_PROD_ID;
285 /*--------------------------------------------------------------------------
286 * Managed Object Type Definition
288 * Description: ESS ID
290 * Representation: MIB_ESSID
292 *--------------------------------------------------------------------------*/
293 /* Maximum length of ESSID */
294 #define MIB_ESSID_LENGTH 32
296 typedef struct _MIB_ESS_ID
298 /* ESSID is a counted string.
299 * A zero length implies broadcast address for scanning */
300 uint8 u8Length;
301 uint8 reserved[3];
302 char acESSID[MTLK_PAD4(MIB_ESSID_LENGTH + 1)]; /* + 1 allows zero termination for debug output */
303 } __MTLK_PACKED MIB_ESS_ID;
305 /*--------------------------------------------------------------------------
306 * Managed Object Type Definition
308 * Description: Set of uint8 integers.
310 * Used to represent sets (e.g. authentication algorithms) of small integers.
311 *--------------------------------------------------------------------------*/
312 #define MIB_SET_LENGTH 32
314 typedef struct _MIB_SET_OF_U8
316 uint8 u8Nelements; /* Number of elements in set */
317 uint8 reserved[3];
318 uint8 au8Elements[MTLK_PAD4(MIB_SET_LENGTH)];
319 } __MTLK_PACKED MIB_SET_OF_U8;
322 /*--------------------------------------------------------------------------
323 * Managed Object Type Definition
325 * Description: List of uint8 integers.
327 * Used to represent lists of small integers.
328 *--------------------------------------------------------------------------*/
329 #define MIB_LIST_LENGTH 32
331 typedef struct _MIB_LIST_OF_U8
333 uint8 au8Elements[MTLK_PAD4(MIB_LIST_LENGTH)];
334 } __MTLK_PACKED MIB_LIST_OF_U8;
336 /*--------------------------------------------------------------------------
337 * Managed Object Type Definition
339 * Description: Default WEP Keys
341 * Contains the default WEP keys
342 *--------------------------------------------------------------------------*/
343 /* The WEP secret key is either 40bits or 104bits */
344 /* In each case, a 24bit IV is appended to create 64 or 128bit RC4 key */
345 /* but that is stored in a separate structure */
346 #define MIB_WEP_KEY_MAX_LENGTH 13
348 typedef struct _MIB_WEP_KEY
350 uint8 u8KeyLength; /* Note: Length is used to infer type */
351 uint8 reserved[3];
352 uint8 au8KeyData[MTLK_PAD4(MIB_WEP_KEY_MAX_LENGTH)];
353 } __MTLK_PACKED MIB_WEP_KEY;
356 #define MIB_WEP_N_DEFAULT_KEYS 4
358 typedef struct _MIB_WEP_DEF_KEYS
360 MIB_WEP_KEY sKey[MTLK_PAD4(MIB_WEP_N_DEFAULT_KEYS)];
361 } __MTLK_PACKED MIB_WEP_DEF_KEYS;
363 #define BSS_BASIC_RATE_FLAG 0x80;
366 * MAC related managed objects as specified in IEEE 802.11
367 * For detailed descriptions see IEEE 802.11,
368 * For other information (type etc) see hi_motab.h
371 #define MAC_MO_BASE 0x0000
373 #define MIB_KALISH_THE_INVALID_ID 0x0000
375 #define MIB_STATION_ID 0x0001
376 /* Reserved: 0x0002 */
377 #define MIB_DESIRED_ESSID 0x0003
378 //#define MIB_PROTOCOL_TYPE 0x0004 <-- removed 13/8/2007.
380 #define MIB_PRIVACY_OPTION 0x0005
382 #define MIB_AUTHENTICATION_TYPE 0x0006
383 #define MIB_AUTHENTICATION_PREFERENCE 0x0007
384 #define MIB_AUTHENTICATION_OPEN_SYSTEM 0
385 #define MIB_AUTHENTICATION_SHARED_KEY 1
386 #define MIB_AUTHENTICATION_AUTO 2 // STA connects to AP according to AP's algorithm
388 #define MIB_PRIVACY_INVOKED 0x0008
389 #define MIB_EXCLUDE_UNENCRYPTED 0x0009
391 /* Reserved: 0x0010 */
392 /* Reserved: 0x0011 */
394 #define MIB_LISTEN_INTERVAL 0x0012
395 /* Reserved: 0x0013 */
396 /* Reserved: 0x0014 */
397 /* Reserved: 0x0015 */
398 #define MIB_DTIM_PERIOD 0x0016
399 #define MIB_ATIM_WINDOW 0x0017
400 #define MIB_MEDIUM_OCC_LIMIT 0x0018
401 #define MIB_MEDIUM_OCC_LIMIT_MAX 1000
403 #define MIB_SHORT_RETRY_LIMIT 0x0019
404 #define MIB_LONG_RETRY_LIMIT 0x0020
406 #define MIB_GROUP_0_ADDRESS 0x0021
407 #define MIB_GROUP_1_ADDRESS 0x0022
408 #define MIB_GROUP_2_ADDRESS 0x0023
409 /* Reserved: 0x0024 */
411 #define MIB_FRAGMENT_THRESHOLD 0x0025
412 #define MIB_RTS_THRESHOLD 0x0026
413 #define MIB_MANUFACTURER_ID 0x0027
414 #define MIB_PRODUCT_ID 0x0028
415 #define MIB_RTS_ENABLED 0x0029
416 /* Reserved: 0x0030 */
417 /* Reserved: 0x0031 */
418 /* Reserved: 0x0032 */
419 /* Reserved 0x0033 */
421 /* Reserved: 0x0034 */
423 /* Reserved: 0x0035 */
425 #define MIB_TX_MSDU_LIFETIME 0x0036
426 #define MIB_RX_MSDU_LIFETIME 0x0037
427 #define MIB_BEACON_PERIOD 0x0038
428 #define MIB_DEFAULT_BEACON_PERIOD 100 /* TU */
430 /* Reserved: 0x0039 */
432 #define MIB_IEEE_ADDRESS 0x0040
433 #define MIB_ESSID 0x0041
435 #define MIB_BSSID 0x0042
437 #define MIB_ACTING_AS_AP 0x0043
439 /* Make default channel scan time, beacon time * 1.33 */
440 #define MIB_DEFAULT_SCAN_MAX_CHANNEL_TIME (MIB_DEFAULT_BEACON_PERIOD + (MIB_DEFAULT_BEACON_PERIOD / 3))
442 #define MIB_REG_DOMAIN_AU (0x44)
443 #define MIB_REG_DOMAIN_BR (0x45)
444 #define MIB_REG_DOMAIN_CN (0x46)
447 #define MIB_SCAN_TYPE 0x0049
448 #define MIB_ST_ACTIVE 0 /* Active - sends probes */
449 #define MIB_ST_PASSIVE 1 /* Passive - scan for beacons */
451 #define MIB_REG_DOMAIN_APAC 0x50
453 #define MIB_POWER_SAVING_CONTROL_MODE 0x0052
454 #define MIB_PSCM_CAM 0 /* Constant awake mode - ACTIVE */
455 #define MIB_PSCM_PS 1 /* Power-saving */
456 #define MIB_PSCM_INVALID 2 /* Initial setting for code */
458 /* Reserved: 0x0053 */
459 /* Reserved: 0x0054 */
462 #define MIB_STATION_AID 0x0055
463 #define MIB_HIBERNATION_CONTROL_MODE 0x0056
464 #define MIB_HCM_DISABLED 0 /* No Hibernation */
465 #define MIB_HCM_STANDARD 1 /* Standard operation */
466 #define MIB_HCM_SMART 2 /* Smart operation */
468 #define MIB_REQUIRE_IBSS_AUTHENTICATION 0x0057
470 #define MIB_WEP_DEFAULT_KEYS 0x0060
471 #define MIB_WEP_DEFAULT_KEYID 0x0061
473 #define MIB_WEP_KEY_MAPPINGS 0x0062
474 #define MIB_WEP_KEY_MAPPING_LENGTH 0x0063
475 #define MIB_WEP_ICV_ERROR_COUNT 0x0064
476 #define MIB_WEP_EXCLUDED_COUNT 0x0065
477 #define MIB_WEP_UNDECRYPTABLE_COUNT 0x0066
479 #define MIB_TWO_ANTENNA_TRANSMISSION_ENABLE 0x0067
482 #define MIB_CFP_POLLABLE 0x0070
483 #define MIB_NOT_CF_POLLABLE 0 /* STA is not CF pollable */
484 #define MIB_CF_POLLABLE_WITH_TX_ONLY 1 /* STA is CF pollable, do no poll (unless TXing) */
485 #define MIB_FULLY_CF_POLLABLE 2 /* STA is fully CF pollable */
486 #define MIB_CF_POLLABLE_DO_NOT_POLL 3 /* STA may RX dtat during CFP but does not wich to be polled */
488 #define MIB_CFP_PERIOD 0x0071
489 #define MIB_CFP_MAX_DURATION 0x0072
491 #define MIB_AUTH_RESP_TIMEOUT 0x0078
492 /* #define MIB_MANDATORY_RATE_SET 0x007C */
493 #define MIB_JOIN_FAILURE_TIMEOUT 0x0080
494 #define MIB_ASSOCIATE_FAILURE_TIMEOUT 0x0081
495 #define MIB_REASSOCIATE_FAILURE_TIMEOUT 0x0082
498 /* Statistics */
499 #define STAT_MO_BASE 0x0100
501 #define MIB_TX_FRAGMENT_COUNT 0x0101
502 /* Reserved: 0x0102 */
503 /* Reserved: 0x0103 */
504 #define MIB_MULTICAST_TX_COUNT 0x0104
505 /* Reserved: 0x0105 */
506 #define MIB_FAILED_TX_COUNT 0x0106
507 #define MIB_RETRY_COUNT 0x0107
508 #define MIB_MULTIPLE_RETRY_COUNT 0x0108
509 #define MIB_PRE_ACTIVATE 0x0109
510 #define MIB_RTS_FAILURE 0x0110
511 #define MIB_ACK_FAILURE 0x0111
512 #define MIB_RX_FRAGMENT_COUNT 0x0112
513 /* Reserved: 0x0113 */
514 #define MIB_MULTICAST_RX_COUNT 0x0114
515 /* Reserved: 0x0115 */
516 /* Reserved: 0x0116 */
517 #define MIB_FCS_ERROR_RX_COUNT 0x0117
518 /* Reserved: 0x0118 */
519 /* Reserved: 0x0119 */
520 /* Reserved: 0x0120 */
521 #define MIB_FRAME_DUPLICATE_COUNT 0x0121
523 /* PHY Managed Objects */
524 #define PHY_MO_BASE 0x200
526 #define MIB_PHY_TYPE 0x0200
527 #define MIB_PHY_TYPE_FHSS 1 /* hopping radio */
528 #define MIB_PHY_TYPE_DSS 2 /* direct sequence radio */
529 #define MIB_PHY_TYPE_IR 3 /* Infrared */
530 #define MIB_PHY_TYPE_OFDM 4 /* OFDM for 80211.b */
532 #define MIB_CURRENT_REG_DOMAIN 0x0201
533 #define MIB_REG_DOMAINS_SUPPORTED 0x0202
534 #define MIB_REG_DOMAIN_FCC 0x10
535 #define MIB_REG_DOMAIN_DOC 0x20
536 #define MIB_REG_DOMAIN_ETSI 0x30
537 #define MIB_REG_DOMAIN_SPAIN 0x31
538 #define MIB_REG_DOMAIN_FRANCE 0x32
539 #define MIB_REG_DOMAIN_UAE 0x33
540 #define MIB_REG_DOMAIN_GERMANY 0x34
541 #define MIB_REG_DOMAIN_MKK 0x40
542 #define MIB_REG_DOMAIN_IL 0x41
543 #define MIB_REG_DOMAIN_SG 0x42
545 #define MIB_REG_DOMAIN_TEST_ONE 0x50
546 #define MIB_REG_DOMAIN_TEST_FOUR 0x60
549 #define MIB_CHANNEL_SET 0x0203
551 /* #define MIB_CCA_JAM 0x0203 */
554 /* Reserved: 0x0207 */
555 /* Reserved: 0x0208 */
557 #define MIB_SUPPORTED_TX_ANTENNAS 0x0209
558 #define MIB_CURRENT_TX_ANTENNA 0x0210
559 /* This value selects Tx Antenna diversity. This is an enhancement
560 * to 802.11. Other values take range 1..N_ANTENNAS. */
561 #define MIB_TX_ANT_DIVERSITY 0
563 /* Reserved: 0x0211 */
565 #define MIB_SUPPORTED_RX_ANTENNAS 0x0212
566 #define MIB_DIVERSITY_SUPPORT 0x0213
567 #define MIB_DIVERSITY_FIXED 1
568 #define MIB_DIVERSITY_UNSUPPORTED 2
569 #define MIB_DIVERSITY_CONTROLLABLE 3
571 #define MIB_DIVERSITY_SELECTION_RX 0x0214
572 /* This value selects Rx Antenna diversity. This is an enhancement
573 * to 802.11. Other values take range 1..N_ANTENNAS. */
574 #define MIB_RX_ANT_DIVERSITY 0
575 #define MIB_RX_ANT_1 1
576 #define MIB_RX_ANT_2 2
578 #define MIB_CURRENT_CHANNEL_NUMBER 0x0215
579 #define MIB_RESTRICTED_CHANNEL_NUMBER 0x0216
580 #define MIB_ANY_CHANNEL 0
582 #define MIB_CURRENT_SET 0x0217
583 #define MIB_CURRENT_PATTERN 0x0218
584 #define MIB_CURRENT_INDEX 0x0219
585 /* Reserved: 0x0220 */
586 #define MIB_HOP_DWELL_PERIOD 0x0221
587 #define MIB_CURRENT_TX_POWER_LEVEL 0x0222
588 #define MIB_NUMBER_SUPPORTED_POWER_LEVELS 0x0223
589 #define MIB_TX_POWER 0x0224
590 #define MIB_TEMP_TYPE 0x0228
591 #define MIB_TEMP_COMMERCIAL 1 /* 0..40 deg. C */
592 #define MIB_TEMP_MILITARY1 2 /* -20..55 deg. C */
593 #define MIB_TEMP_MILITARY2 3 /* -30..70 deg. C */
596 #define MIB_MPDU_MAX_LENGTH 0x0230
597 #define MIB_MAX_DWELL_TIME 0x0231
598 /* Reserved: 0x0232 */
599 /* Reserved: 0x0233 */
600 /* Added by eyal.be for phy metrics */
602 #define MIB_RSSI_ALPHA_FILTER 0x0234
603 #define MIB_NOISE_ALPHA_FILTER 0x0235
604 #define MIB_RF_NOISE_ALPHA_FILTER 0x0236
605 #define MIB_RF_FREQ_LONG_ALPHA_FILTER 0x0237
606 #define MIB_RF_FREQ_SHORT_ALPHA_FILTER 0x0238
608 /* 802.11h - new MIB */
610 #define MIB_SM_ENABLE 0x0240
611 #define MIB_SM_MITIGATION_FACTOR 0x0241 // This should be added to MIB. Because could be changed during normal BSS operation.
612 #define MIB_SM_POWER_CAPABILITY_MAX 0x0242
613 #define MIB_SM_POWER_CAPABILITY_MIN 0x0243
614 #define MIB_COUNTRY 0x0246 // These two elements should be added to the MIB. In the AP they are used to constructe the
615 #define MIB_USER_POWER_SELECTION 0x0247
617 /* other MIB */
618 #define MIB_SWRESET_ON_ASSERT 0x0250 // indicates that MAC should perform SW reset on assert
619 #define MIB_DISCONNECT_ON_NACKS_ENABLE 0x0251 // indicates that MAC Consecutive NACK model for disconnecting station that left BSS should be enabled
620 #define MIB_DISCONNECT_ON_NACKS_WEIGHT 0x0252 // indicates the weight level on which the MAC Consecutive NACK model should disconnect a station
622 /* Direct Multicast*/
623 #define MIB_ENABLE_DMCAST 0x0261 // Direct mutlicast enabled (uint16, TRUE/FALSE)
624 #define MIB_DMCATS_RATE 0x0262 // Direct mutlicast rate (uin16, rate index)
625 #define MIB_MCAST_CB_DECISION 0x0263 // Multicast CB/nCB mode
628 #define MIB_SAQUERY_RETRY_TIMEOUT 0x0264
629 #define MIB_SAQUERY_MAX_TIMEOUT 0x0265
631 #define MIB_MAX_SIZE_COUNTRY_ELEMENT_SUBBAND_TRIPLETS (32)
633 typedef struct _MIB_COUNTRY_ELEMENT_TRIPLET
635 uint8 u8FirstChannelNumber;
636 uint8 u8NumberOfChannels;
637 uint8 u8MaximumTransmitPowerLevel;
638 uint8 u8Reserved;
639 } __MTLK_PACKED MIB_COUNTRY_ELEMENT_TRIPLET;
641 typedef struct _MIB_DMCAST_TYPE
643 uint16 bEnable;
644 IEEE_ADDR sMcastAddress;
645 } __MTLK_PACKED MIB_DMCAST_TYPE;
648 #define MIB_COUNTRY_STRING_LENGTH (3)
650 typedef struct _MIB_COUNTRY_ELEMENT_INFO
652 uint8 countryString[MTLK_PAD4(MIB_COUNTRY_STRING_LENGTH)];
653 uint32 numOfSubBandTriplets;
654 MIB_COUNTRY_ELEMENT_TRIPLET Table[MIB_MAX_SIZE_COUNTRY_ELEMENT_SUBBAND_TRIPLETS];
655 } __MTLK_PACKED MIB_COUNTRY_ELEMENT_INFO;
658 /*----PRIVATE MANAGED OBJECTS-----------------------------------------------
659 * The following managed objects are not part of the 802.11 specification,
660 * but are required for the operation of the MAC software.
661 *--------------------------------------------------------------------------*/
662 #define MIB_PRIVATE_BASE 0x1000
664 /*--------------------------------------------------------------------------
665 * Managed Object: MIB_MAC_ENABLED
667 * Description: Enable state of mac. False (zero) prior to a
668 * MIB_R_ENABLE_MAC request. True (non-zero) after.
670 * Representation: uint16 u16Nbytes
672 * Access: r at any time
673 *--------------------------------------------------------------------------*/
674 #define MIB_MAC_ENABLED 0x1003
676 /* Reserved: 0x1004 */
677 /* Reserved: 0x1005 */
678 /* Reserved: 0x1006 */
679 /* Reserved: 0x1007 */
680 /* Reserved: 0x1008 */
681 /* Reserved: 0x1008 */
682 /* Reserved: 0x1009 */
683 /* Reserved: 0x100A */
684 /* Reserved: 0x100B */
686 /*--------------------------------------------------------------------------
687 * Managed Object: MIB_EEPROM_VERSION
689 * Description: EEPROM version number
690 * Representation: uint16
692 * Access: w
693 *--------------------------------------------------------------------------*/
694 #define MIB_EEPROM_VERSION 0x100C
696 /*--------------------------------------------------------------------------
697 * Managed Object: MIB_SW_VERSION
699 * Description: Software version number
700 * Representation: uint16. Decimal fixed-point 2-places
701 * e.g. 123 represents V1.23.
703 * Access: r - At any time
704 *--------------------------------------------------------------------------*/
705 #define MIB_SW_VERSION 0x100D
707 /*--------------------------------------------------------------------------
708 * Managed Object: MIB_ASIC_VER
710 * Description: ASIC ID and version number
711 * Representation: uint16
713 * Access: r - At any time
714 *--------------------------------------------------------------------------*/
715 #define MIB_ASIC_VER 0x100E
716 /* Reserved: 0x100F */
717 /* Reserved: 0x1010 */
718 /* Reserved: 0x1011 */
719 /* Reserved: 0x1012 */
722 /*--------------------------------------------------------------------------
723 * Managed Object: MIB_INFRASTRUCTURE
725 * Description: ESS infrastructure indicator
726 * TRUE => infrastructure network
727 * FALSE => ad-hoc network.
728 * Representation:
730 * Access: rw - Prior to Adopt Configuration
731 * r - Thereafter
732 *--------------------------------------------------------------------------*/
734 #define MIB_INFRASTRUCTURE 0x1013
736 /*--------------------------------------------------------------------------
737 * Managed Object: MIB_RX_MODE
739 * Description: Receive packet address filter mode.
741 * Representation: uint16 (see below). One of the MIB_RXM_* values.
743 * Access: rw - Prior to Adopt Configuration
744 * r - Thereafter
745 *--------------------------------------------------------------------------*/
746 #define MIB_RXM_ADDRESSED 0 /* Packets addressed to me + broadcast */
747 #define MIB_RXM_MULTICAST 1 /* Packets addressed to me + multicast */
748 #define MIB_RXM_ALL 2 /* All Rx packets (promiscuous) */
749 #define MIB_RX_MODE 0x1014
751 /* Reserved: 0x1015 */
752 /* Reserved: 0x1016 */
754 /*--------------------------------------------------------------------------
755 * Managed Object: MIB_START_NET_TIMEOUT
757 * Description: Time for which an station attempting to start
758 * its own BSS will look for a suitable channel.
760 * Representation: uint16 S
762 * Access: rw - Prior to Adopt Configuration
763 * r - Thereafter
764 *--------------------------------------------------------------------------*/
765 #define MIB_START_NET_TIMEOUT 0x1017
768 /*--------------------------------------------------------------------------
769 * Managed Object: MIB_BEACON_TIMEOUT
771 * Description: Time after the last beacon RXed for the current BSS which
772 * a station will look for another BSS.
774 * Representation: uint16 S
776 * Access: rw - Prior to Adopt Configuration
777 * r - Thereafter
778 *--------------------------------------------------------------------------*/
779 #define MIB_BEACON_TIMEOUT 0x1018
782 /* Reserved: 0x1019 */
784 /*--------------------------------------------------------------------------
785 * Managed Object: MIB_PLATFORM
787 * Description: Specifies the platform (including radio type) on which
788 * the MAC is operating. Used to index a platform configuration
789 * table which contains settings for radio registers and other
790 * useful information
792 * Representation: uint16
794 * Access: rw - Prior to Adopt Configuration
795 * r - Thereafter
796 *--------------------------------------------------------------------------*/
797 #define MIB_PLATFORM 0x101A
800 /* Reserved: 0x101B */
801 /* Reserved: 0x101C */
802 /* Reserved: 0x101D */
803 /* Reserved: 0x101E */
804 /* Reserved: 0x101F */
805 /* Reserved: 0x1020 */
807 /*--------------------------------------------------------------------------
808 * Managed Object: MIB_BSS_STATE
810 * Description: Represents the current state of membership of a BSS.
812 * Representation: uint16
814 * Access: r - read only
815 *--------------------------------------------------------------------------*/
817 #define MIB_BSS_STATE 0x1021
819 /* Mac is not enabled */
820 #define MIB_BSS_IDLE 0
822 /* Scanning to join or start a network */
823 #define MIB_BSS_SCANNING 1
825 /* Scanning to rejoin an existing network */
826 #define MIB_BSS_REJOINING 2
828 /* Are in sync with a BSS and have adopted BSS-wide parameters. */
829 #define MIB_BSS_ADOPTED 3
831 /* Have started my own network - but have not yet seen a beacon from
832 * another station.
834 #define MIB_BSS_STARTED 4
837 * The BSS actions are complete and successful. The station is in sync with the BSS.
838 * In an IBSS, the station has seen at least one beacon from another station
839 * in the same BSS. For an infrastructure station, it is authenticated and
840 * associated.
842 #define MIB_BSS_SUCCESSFUL 5
844 /* Failed to join or start a network. The station must be reset to leave this state. */
845 #define MIB_BSS_FAILED 6
847 #define MIB_BSS_AUTHENTICATING 7 /* Am authenticating with an AP */
848 #define MIB_BSS_ASSOCIATING 8 /* Am associating with an AP */
850 /* Reserved: 0x1022 */
852 /*--------------------------------------------------------------------------
853 * Managed Object: MIB_DB_TIMEOUT
855 * Description: The timeout applied to station entries in the database.
857 * Representation: uint16
859 * Access: RW adopt
860 *--------------------------------------------------------------------------*/
861 #define MIB_DB_TIMEOUT 0x1023
862 /* Reserved: 0x1024 */
863 /* Reserved: 0x1025 */
865 /*--------------------------------------------------------------------------
866 * Managed Object: MIB_RECEIVE_DTIMS
868 * Description: Controls whether the station should wake out of power-
869 * saving in order to receive DTIMS.
871 * Representation: uint8 boolean
873 * Access: RW
874 *--------------------------------------------------------------------------*/
875 #define MIB_RECEIVE_DTIMS 0x1026
877 /* Reserved: 0x1027 */
878 /* Reserved: 0x1028 */
880 /*--------------------------------------------------------------------------
881 * Managed Object: MIB_DESIRED_BSSID
883 * Description: Specifies a specific BSSID which a station is required
884 * to join, or the broadcast BSSID (any BSSID).
886 * Representation: IEEE_ADDDR
888 * Access: RW_ADOPT
889 *-------------------------------------------------------------------------*/
890 #define MIB_DESIRED_BSSID 0x1029
892 /*--------------------------------------------------------------------------
893 * Managed Object: MIB_REQUIRE_PCF
895 * Description: Specifies require PCF if an infra BSS SCAN
898 * Representation: bool
900 * Access: rw adopt
901 *--------------------------------------------------------------------------*/
902 #define MIB_REQUIRE_PCF 0x102B
905 /*--------------------------------------------------------------------------
906 * Managed Object: MIB_DWELL_TIME
908 * Description: The duration of the dwell.
910 * Representation: uint16 Kus
912 * Access: rw adopt
913 *--------------------------------------------------------------------------*/
914 #define MIB_DWELL_TIME 0x102C
917 /*--------------------------------------------------------------------------
918 * Managed Object: MIB_MSDU_MAX_LENGTH
920 * Description: This is the longest MSDU length which will be accepted
921 * for transmission.
923 * Representation: uint16 bytes payload length
925 * Access: r
926 *--------------------------------------------------------------------------*/
927 #define MIB_MSDU_MAX_LENGTH 0x102D
930 /*--------------------------------------------------------------------------
931 * Managed Object: MIB_PASSIVE_SCAN_DUR
933 * Description: Duration a station will listen for beacons on each channel
934 * during passive scanning.
936 * Representation: uint32 Kus
938 * Access: rw adopt
939 *--------------------------------------------------------------------------*/
940 #define MIB_PASSIVE_SCAN_DUR 0x102E
941 #define MIB_DEFAULT_PASSIVE_SCAN_DUR (MIB_DEFAULT_BEACON_PERIOD + (MIB_DEFAULT_BEACON_PERIOD / 3))
943 /* Reserved: 0x1031 */
944 #ifdef PLATFORM_SETUP
945 /*--------------------------------------------------------------------------
946 * Managed Object: MIB_MODCTL0
947 * MIB_MODCTL1
948 * MIB_DEMCTL0
949 * MIB_DEMCTL1
950 * Description: These contain override settings to the platform
951 * definition values. The entire field in the platdefs.h
952 * file is replaced by this MO value if it is non-zero.
954 * Representation: uint16
956 * Access: rw adopt
957 *--------------------------------------------------------------------------*/
958 #define MIB_MODCTL0 0x1032
959 #define MIB_MODCTL1 0x1033
960 #define MIB_DEMCTL0 0x1034
961 #define MIB_DEMCTL1 0x1035
962 #endif
964 /* Reserved: 0x1036 */
965 /* Reserved: 0x1037 */
966 /* Reserved: 0x1038 */
967 /* Reserved: 0x1039 */
968 /* Reserved: 0x103A */
969 /* Reserved: 0x103B */
971 /* Transmit rate fallback management parameters */
972 /*--------------------------------------------------------------------------
973 * Managed Object: MIB_FALLBACK_TXFAIL_THRESHOLD
975 * Description: Percent tx failures before rate fallback occurs
978 * Representation: uint16 percent
980 * Access: rw
981 *--------------------------------------------------------------------------*/
982 #define MIB_FALLBACK_TXFAIL_THRESHOLD 0x103C
984 /*--------------------------------------------------------------------------
985 * Managed Object: MIB_FALLBACK_POLL
987 * Description: Time between testing the txfail threshold
990 * Representation: uint16 seconds
992 * Access: rw
993 *--------------------------------------------------------------------------*/
994 #define MIB_FALLBACK_POLL 0x103D
996 /*--------------------------------------------------------------------------
997 * Managed Object: MIB_FALLBACK_RECOVERY
999 * Description: Time between trying to recover from a fallback state
1002 * Representation: uint16 seconds
1004 * Access: rw
1005 *--------------------------------------------------------------------------*/
1006 #define MIB_FALLBACK_RECOVERY 0x103E
1008 /*--------------------------------------------------------------------------
1009 * Managed Object: MIB_FALLBACK_FAILURE_RATIO_SMOOTHING_CONSTANT
1011 * Description: constant for smoothing the failure ratio for deciding when to
1012 * fall back to a lower data rate.
1015 * Representation: percentage, 0--100
1017 * Access: rw
1018 *--------------------------------------------------------------------------*/
1019 #define MIB_FALLBACK_FAILURE_RATIO_SMOOTHING_CONSTANT 0x103F
1021 /*--------------------------------------------------------------------------
1022 * Managed Object: MIB_NON_ERP_PROTECTION_CONTROL_11G
1024 * Description: 802.11g. In APs and Ad-hoc Stations, controls whether
1025 * RTS/CTS protection should be used to improve
1026 * interoperability between 802.11g and legacy 802.11b
1027 * systems.
1029 * Representation: uint8 - boolean
1031 * Access: rw
1032 *--------------------------------------------------------------------------*/
1033 #define MIB_PROTECTION_MODE 0x1040
1035 /* Bits 0:2 in several globals, including MIB_PROTECTION_MODE, are used to select
1036 the type of protection applied - OFDM (11G/ERP) and/or HT and/or HT_CB */
1037 #define PROTECT_NOTHING 0x00
1038 #define PROTECT_OFDM_PACKETS 0x01
1039 #define PROTECT_HT_PACKETS 0x02
1040 #define PROTECT_HT_CB_PACKETS 0x04
1041 #define PROTECT_MASK (PROTECT_OFDM_PACKETS|PROTECT_HT_PACKETS|PROTECT_HT_CB_PACKETS)
1043 /* Bits 4:6 in several globals are used to select the type of protection
1044 applied in case of overlapping BSS condition (OFDM and/or HT and/or HT_CB */
1045 #define PROTECT_OVRLP_SHIFT 4
1046 #define PROTECT_OFDM_PACKETS_OVRLP (PROTECT_OFDM_PACKETS <<PROTECT_OVRLP_SHIFT)
1047 #define PROTECT_HT_PACKETS_OVRLP (PROTECT_HT_PACKETS <<PROTECT_OVRLP_SHIFT)
1048 #define PROTECT_HT_CB_PACKETS_OVRLP (PROTECT_HT_CB_PACKETS<<PROTECT_OVRLP_SHIFT)
1049 #define PROTECT_MASK_OVRLP (PROTECT_OFDM_PACKETS_OVRLP|PROTECT_HT_PACKETS_OVRLP|PROTECT_HT_CB_PACKETS_OVRLP)
1051 /* Bits 8:10 in several globals are used to store a copy of bits 4:6 in case of repeated
1052 detection of overlapping events in a single 10 sec observation interval */
1053 #define PROTECT_OVRLP_EXTRA_SHIFT 4
1054 #define PROTECT_HOVRLP_SHIFT (PROTECT_OVRLP_SHIFT+PROTECT_OVRLP_EXTRA_SHIFT)
1055 #define PROTECT_OFDM_PACKETS_HOVRLP (PROTECT_OFDM_PACKETS <<PROTECT_HOVRLP_SHIFT)
1056 #define PROTECT_HT_PACKETS_HOVRLP (PROTECT_HT_PACKETS <<PROTECT_HOVRLP_SHIFT)
1057 #define PROTECT_HT_CB_PACKETS_HOVRLP (PROTECT_HT_CB_PACKETS <<PROTECT_HOVRLP_SHIFT)
1058 #define PROTECT_MASK_HOVRLP (PROTECT_OFDM_PACKETS_HOVRLP|PROTECT_HT_PACKETS_HOVRLP|PROTECT_HT_CB_PACKETS_HOVRLP)
1060 /*--------------------------------------------------------------------------
1061 * Managed Object: MIB_SHORT_PREAMBLE_OPTION_IMPLEMENTED
1063 * Description: 802.11b/g. In APs (and STAs in a IBSS), indicates that
1064 * it has PHY supporting short preamble.
1066 * Representation: uint8 - boolean
1068 * Access: rw
1069 *--------------------------------------------------------------------------*/
1070 #define MIB_SHORT_PREAMBLE_OPTION_IMPLEMENTED 0x1041
1072 /*--------------------------------------------------------------------------
1073 * Managed Object: MIB_PBCC_OPTION_IMPLEMENTED
1075 * Description: 802.11b/g. In APs (and STAs in a IBSS), indicates that
1076 * it has a PHY supporting PBCC coding.
1078 * Representation: uint8 - boolean
1080 * Access: rw
1081 *--------------------------------------------------------------------------*/
1082 #define MIB_PBCC_OPTION_IMPLEMENTED 0x1042
1084 /*--------------------------------------------------------------------------
1085 * Managed Object: MIB_REQ_CCK_OFDM_CODING_CAPS
1087 * Description: 802.11g. In APs (and STAs in a IBSS), indicates that
1088 * it has a PHY supporting CCK-OFDM coding.
1090 * Representation: uint8 - boolean
1092 * Access: rw
1093 *--------------------------------------------------------------------------*/
1094 #define MIB_REQ_CCK_OFDM_CODING_CAP 0x1043
1097 /*--------------------------------------------------------------------------
1098 * Managed Object: MIB_BSS_PHY_CAPS
1100 * Description: 802.11b/g. In STAs(and STAs in a IBSS), stores the BSS PHY capabilities as
1101 * indicated by the AP.
1103 * Representation: uint16 - bit mask
1105 * Access: rw
1106 *--------------------------------------------------------------------------*/
1107 #define MIB_BSS_PHY_CAPS 0x1044
1109 /*--------------------------------------------------------------------------
1110 * Managed Object: MIB_CFP_CAPABILITY_STA
1112 * Description: 802.11b/g. In STAs, stores the BSS PHY capabilities as
1113 * indicated by the AP.
1115 * Representation: uint16 - bit mask
1117 * Access: rw
1118 *--------------------------------------------------------------------------*/
1119 #define MIB_CFP_CAPABILITY_STA 0x1045
1121 /*--------------------------------------------------------------------------
1122 * Managed Object: MIB_CFP_CAPABILITY_AP
1124 * Description: STAs Contention Free Capability
1126 * Representation: uint8 - bit mask
1128 * Access: rw
1129 *--------------------------------------------------------------------------*/
1130 #define MIB_CFP_CAPABILITY_AP 0x1046
1132 /*--------------------------------------------------------------------------
1133 * Managed Object: MIB_PCF_MORE_DATA_LIMIT
1135 * Description:
1137 * Representation: uint32
1139 * Access: rw
1140 *--------------------------------------------------------------------------*/
1141 #define MIB_PCF_MORE_DATA_LIMIT 0x1047
1143 /*--------------------------------------------------------------------------
1144 * Managed Object: MIB_PCF_MORE_DATA_LIMIT
1146 * Description:
1148 * Representation: uint32
1150 * Access: rw
1151 *--------------------------------------------------------------------------*/
1152 #define MIB_PCF_NO_MORE_DATA_LIMIT 0x1048
1154 /*--------------------------------------------------------------------------
1155 * Managed Object: MIB_PCF_ERROR_LIMIT
1157 * Description:
1159 * Representation: uint32
1161 * Access: rw
1162 *--------------------------------------------------------------------------*/
1163 #define MIB_PCF_ERROR_LIMIT 0x1049
1164 /*--------------------------------------------------------------------------
1165 * Managed Object: MIB_USE_LONG_PREAMBLE_FOR_MULTICAST
1167 * Description: 802.11b/g. In APs (and STAs in a IBSS), when TRUE
1168 * forces all multicast packets to be transmitted
1169 * using long preamble. Allow connectivity with all
1170 * legacy 'b' devices that do not support short preamble.
1172 * Representation: uint8 - boolean
1174 * Access: rw
1175 *--------------------------------------------------------------------------*/
1176 #define MIB_USE_LONG_PREAMBLE_FOR_MULTICAST 0x104A
1178 /*--------------------------------------------------------------------------
1179 * Managed Object: MIB_SHORT_SLOT_TIME_OPTION_ENABLED_11G
1181 * Description: When TRUE the STA Short Slot option has been implemented.
1184 * Representation: uint8 - boolean
1186 * Access: rw
1187 *--------------------------------------------------------------------------*/
1188 #define MIB_SHORT_SLOT_TIME_OPTION_ENABLED_11G 0x104B
1190 /*--------------------------------------------------------------------------
1191 * Managed Object: MIB_NON_ERP_ADJACENT_NETWORK_TIMEOUT_11G
1193 * Description: When TRUE the STA Short Slot option has been implemented.
1196 * Representation: uint8 - boolean
1198 * Access: rw
1199 *--------------------------------------------------------------------------*/
1200 #define MIB_NON_ERP_ADJACENT_NETWORK_TIMEOUT_11G 0x104C
1202 /*--------------------------------------------------------------------------
1203 * Managed Object: MIB_RTS_DATA_RATE
1205 * Description: Data rate used for sending RTS.
1207 * Representation: uint8 - boolean
1209 * Access: rw
1210 *--------------------------------------------------------------------------*/
1211 #define MIB_RTS_DATA_RATE 0x104D
1213 /*----WME MANAGED OBJECTS---------------------------------------------------
1214 * Managed objects for 802.11 WME extensions
1215 *--------------------------------------------------------------------------*/
1217 /*--------------------------------------------------------------------------
1218 * Managed Objects: MIB_WME_XXX
1220 * Description: Configuration of WME parameters.
1223 * Representation: various
1225 * Access: rw at an AP r at a STA
1226 *--------------------------------------------------------------------------*/
1227 #define MIB_WME_PARAMETERS 0x1050
1228 #define MIB_WME_DAMPING_FACTORS 0x1051
1229 #define MIB_WME_OUI_AND_VERSION 0x1052
1230 #define MIB_WME_ENABLED 0x1053
1231 #define MIB_WME_APSD_ENABLED 0x1054
1232 #define MIB_WME_TXOP_BUDGET 0x1055
1233 #define MIB_WME_QAP_PARAMETERS 0x1056
1235 /*----RSN MANAGED OBJECTS---------------------------------------------------
1236 * Managed objects for 802.11i RSN management
1237 *--------------------------------------------------------------------------*/
1238 #define MIB_RSN_BASE 0x1100
1240 /*--------------------------------------------------------------------------
1241 * Managed Object: MIB_RSN_CONTROL
1243 * Description: RSN control object
1245 * Representation: RSNMIB_CONTROL structure
1247 * Access: rw
1248 *--------------------------------------------------------------------------*/
1249 #define MIB_RSN_CONTROL 0x1101
1251 /*--------------------------------------------------------------------------
1252 * Managed Object: MIB_RSN_REPLAY_WINDOW
1254 * Description: RSN control object
1256 * Representation: uint8
1258 * Access: rw
1259 *--------------------------------------------------------------------------*/
1260 #define MIB_RSN_REPLAY_WINDOW 0x1102
1262 /*--------------------------------------------------------------------------
1263 * Managed Object: MIB_RSN_PAIRWISE_ALERT_THRESHOLDS
1265 * Description: RSN alert thresholds for pairwise associations
1267 * Representation: RSNMIB_PAIRWISE_ALERT_THRESHOLDS structure
1269 * Access: rw
1270 *--------------------------------------------------------------------------*/
1271 #define MIB_RSN_PAIRWISE_ALERT_THRESHOLDS 0x1103
1273 /*--------------------------------------------------------------------------
1274 * Managed Object: MIB_RSN_GROUP_ALERT_THRESHOLDS
1276 * Description: RSN alert thresholds for the group association
1278 * Representation: RSNMIB_GROUP_ALERT_THRESHOLDS structure
1280 * Access: rw
1281 *--------------------------------------------------------------------------*/
1282 #define MIB_RSN_GROUP_ALERT_THRESHOLDS 0x1104
1285 /*--------------------------------------------------------------------------
1286 * Managed Object: MIB_RSN_SECURITY_PARAMETERS
1288 * Description: RSN security parameters
1290 * Representation: Loaded into RSN Manager
1292 * Access: w
1293 *--------------------------------------------------------------------------*/
1294 #define MIB_RSN_SECURITY_PARAMETERS 0x1105
1298 /*--------------------------------------------------------------------------
1299 * Managed Object: MIB_SOFTWARE_CONFIG
1301 * Description: Enables test scripts to determine which conditionally
1302 * compiled modules have been included
1304 * Representation: uint32 (bitmask)
1306 * Access: r
1307 *--------------------------------------------------------------------------*/
1308 #define MIB_SOFTWARE_CONFIG 0x1150
1310 /* Bitmasks indicate the presence of conditionally compiled features */
1311 #define MIB_SW_CFG_ENET_CFG_AP 0x00000001
1312 #define MIB_SW_CFG_ENET_CFG_STA 0x00000002
1313 #define MIB_SW_CFG_ENET_INC_PCF 0x00000004
1314 #define MIB_SW_CFG_ENET_CFG_RATES_11G 0x00000008
1315 #define MIB_SW_CFG_ENET_INC_CIPHER_SUITE_NONE 0x00000010
1316 #define MIB_SW_CFG_ENET_INC_CIPHER_SUITE_WEP 0x00000020
1317 #define MIB_SW_CFG_ENET_INC_CIPHER_SUITE_TKIP 0x00000040
1318 #define MIB_SW_CFG_ENET_INC_CIPHER_SUITE_CCMP 0x00000080
1319 #define MIB_SW_CFG_ENET_INC_WME 0x00000100
1320 #define MIB_SW_CFG_PLATFORM_WIN32X86 0x00000200
1321 #define MIB_SW_CFG_PLATFORM_FPGA 0x00000400
1322 #define MIB_SW_CFG_PLATFORM_FPGA_TTPCOM_ARM7 0x00000800
1323 #define MIB_SW_CFG_PLATFORM_FPGA_TTPCOM_SINGULLAR 0x00001000
1324 #define MIB_SW_CFG_PLATFORM_COSIM 0x00002000
1325 #define MIB_SW_CFG_ENET_INC_TEST_MC 0x00004000
1326 #define MIB_SW_CFG_ALLOC_SEPARATE_FORWARD_POOL 0x00008000
1327 #define MIB_SW_CFG_CIPHER_SUITE_SHRAM_DMA 0x00010000
1329 /*--------------------------------------------------------------------------
1330 * Managed Object: MIB_CALIBRATION_ALGO_MASK
1332 * Description: Bitmasks of required calibr
1334 * Representation: uint32 (bitmask)tion procedures
1336 * Access: r
1337 *--------------------------------------------------------------------------*/
1338 #define MIB_CALIBRATION_ALGO_MASK (MIB_MT_PHY_CFG + 0x0B) // Offline calibrations bit mask
1339 #define MIB_ONLINE_CALIBRATION_ALGO_MASK (MIB_MT_PHY_CFG + 0x20) // Online calibrations bit mask
1340 #define TPC_BIT_VAL MTLK_BFIELD_INFO(8, 1) // The bit representing the TPC
1341 #define DEFAULT_WAVE300_OFFLINE_CALIB_ALGO_MASK (0x01F9)
1342 #define DEFAULT_WAVE300_ONLINE_CALIB_ALGO_MASK (0x00B1)
1344 #define DEFAULT_AR10_OFFLINE_CALIB_ALGO_MASK (0x3FAE) /* changed according to calibration proc-bit enum for AR10/W400. */
1345 #define DEFAULT_AR10_ONLINE_CALIB_ALGO_MASK (0x2708)
1347 /*--------------------------------------------------------------------------
1348 * Managed Object: MIB_MT_PHY_CFG
1350 * Description: Advanced PHY parameters
1351 *--------------------------------------------------------------------------*/
1352 #define MIB_MT_PHY_CFG 0x1200
1354 #define MIB_SHORT2_REQUIRED (MIB_MT_PHY_CFG + 0x01)
1355 #define MIB_SPECTRUM_MODE (MIB_MT_PHY_CFG + 0x02)
1356 #define MIB_CB_DATABINS_PER_SYMBOL (MIB_MT_PHY_CFG + 0x03)
1357 #define MIB_SERVICE_REQUIRED (MIB_MT_PHY_CFG + 0x04)
1358 #define MIB_ADVANCED_CODING_SUPPORTED (MIB_MT_PHY_CFG + 0x05)
1359 #define MIB_USE_RX_SHORT_CYCLIC_PREFIX (MIB_MT_PHY_CFG + 0x06)
1360 #define MIB_SUPPORTED_RX_CHANNELS (MIB_MT_PHY_CFG + 0x07)
1361 #define MIB_NUM_OF_RFICs (MIB_MT_PHY_CFG + 0x08)
1362 #define MIB_RFIC_OSCIL_FREQ (MIB_MT_PHY_CFG + 0x09)
1363 #define MIB_AFE_CLOCK (MIB_MT_PHY_CFG + 0x0A)
1364 #define MIB_USE_SPACE_TIME_BLOCK_CODE (MIB_MT_PHY_CFG + 0x0C)
1365 /* #define MIB_USE_CHANNEL_BONDING (MIB_MT_PHY_CFG + 0x0D) */
1366 #define MIB_STOP_CAPTURE_AFTER_CRC (MIB_MT_PHY_CFG + 0x0E)
1368 #define MIB_UPPER_LOWER_CHANNEL_BONDING (MIB_MT_PHY_CFG + 0x0F)
1369 #define MIB_FORCE_TPC_0 (MIB_MT_PHY_CFG + 0x10)
1370 #define MIB_FORCE_TPC_1 (MIB_MT_PHY_CFG + 0x11)
1371 #define MIB_FORCE_TPC_2 (MIB_MT_PHY_CFG + 0x15)
1372 #define MIB_TPC_ANT_0 (MIB_MT_PHY_CFG + 0x12)
1373 #define MIB_TPC_ANT_1 (MIB_MT_PHY_CFG + 0x13)
1374 #define MIB_TPC_ANT_2 (MIB_MT_PHY_CFG + 0x14)
1375 /* Reserved - (MIB_MT_PHY_CFG + 0x15) */
1376 #define MIB_USE_11B_DUPLICATE (MIB_MT_PHY_CFG + 0x16)
1377 #define MIB_OVERLAPPING_PROTECTION_ENABLE (MIB_MT_PHY_CFG + 0x17) /* [1] Enable protection also in case of Ovelapping BSS condition (OLBC) in 2.4 GHz */
1378 #define MIB_OFDM_PROTECTION_METHOD (MIB_MT_PHY_CFG + 0x18) /* How to protect OFDM: PROTECTION_NONE / PROTECTION_RTS /PROTECTION_CTS */
1379 #define MIB_HT_PROTECTION_METHOD (MIB_MT_PHY_CFG + 0x19) /* How to protect HT: PROTECTION_NONE / PROTECTION_RTS /PROTECTION_CTS */
1380 #define MIB_USE_TX_SHORT_CYCLIC_PREFIX (MIB_MT_PHY_CFG + 0x20)
1381 #define MIB_USE_SHORT_CYCLIC_PREFIX_RATE_31 (MIB_MT_PHY_CFG + 0x21)
1386 #define MIB_SPECTRUM_20M 0
1387 #define MIB_SPECTRUM_40M 1
1388 /*--------------------------------------------------------------------------
1389 * Managed Object: MIB_MT_SW_CFG
1391 * Description: Advanced SW parameters
1392 *--------------------------------------------------------------------------*/
1393 #define MIB_MT_SW_CFG 0x1300
1394 #define MIB_ENABLE_AUTO_RATE (MIB_MT_SW_CFG + 0x01)
1395 #if defined (ENET_CFG_STA)
1396 #define MIB_HIDDEN_SSID (MIB_MT_SW_CFG + 0x03)
1397 #endif
1398 #define MIB_BEACON_KEEPALIVE_TIMEOUT (MIB_MT_SW_CFG + 0x04)
1400 #define MIB_IS_FORCE_RATE (MIB_MT_SW_CFG + 0x06) // 1=use rate defined in MIB_FORCE_RATE / 0=rate-adapt-enable (was MIB_MIN_RATE)
1401 #define MIB_HT_FORCE_RATE (MIB_MT_SW_CFG + 0x07) // rate to use if MIB_IS_FORCE_RATE & FORCED_RATE_HT_MASK is 1 (15.31) (was MIB_MAX_RATE)
1402 #define MIB_LEGACY_FORCE_RATE (MIB_MT_SW_CFG + 0x09) // rate to use if MIB_IS_FORCE_RATE & FORCED_RATE_LEGACY_MASK is 1 (0.14) (was MIB_MAX_RATE)
1404 #define MIB_AUTO_AGGREGATE (MIB_MT_SW_CFG + 0x08)
1406 #define MIB_RECEIVE_AMPDU_MAX_LENGTH (MIB_MT_SW_CFG + 0x0A)
1408 #define MIB_ACL_MAX_CONNECTIONS (MIB_MT_SW_CFG + 0x20)
1409 #define MIB_ACL_MODE (MIB_MT_SW_CFG + 0x21)
1410 #define MIB_ACL (MIB_MT_SW_CFG + 0x22)
1411 #define MIB_ACL_MASKS (MIB_MT_SW_CFG + 0x24)
1413 #define MIB_POWER_INCREASE_VS_DUTY_CYCLE (MIB_MT_SW_CFG + 0x23)
1415 #define MIB_AP_MAX_PKTS_IN_SP (MIB_MT_SW_CFG + 0x25)
1418 /* ACL Definitions */
1419 #define MAX_ADDRESSES_IN_ACL 32
1421 typedef struct _MIB_ACL_MAX_CONNECTIONS_TYPE
1423 uint8 Network_Index;
1424 uint8 u8MaxAllowedConnections;
1425 uint8 reserved[2];
1426 } __MTLK_PACKED MIB_ACL_MAX_CONNECTIONS_TYPE;
1428 typedef struct _MIB_ACL_MODE_TYPE
1430 uint8 Network_Index;
1431 uint8 u8ACLMode;
1432 uint8 reserved[2];
1433 } __MTLK_PACKED MIB_ACL_MODE_TYPE;
1435 typedef struct _MIB_ACL_TYPE
1437 uint8 Network_Index;
1438 uint8 Num_Of_Entries;
1439 IEEE_ADDR aACL[MAX_ADDRESSES_IN_ACL];
1440 #if ((MAX_ADDRESSES_IN_ACL % 2) == 0)
1441 uint8 reserved[2];
1442 #endif
1443 } __MTLK_PACKED MIB_ACL_TYPE;
1445 typedef struct _MIB_ACL_TYPE_MASKS
1447 uint8 Network_Index;
1448 uint8 Num_Of_Entries;
1449 IEEE_ADDR aACL[MAX_ADDRESSES_IN_ACL];
1450 #if ((MAX_ADDRESSES_IN_ACL % 2) == 0)
1451 uint8 reserved[2];
1452 #endif
1453 } __MTLK_PACKED MIB_ACL_TYPE_MASKS;
1455 /*-- Type definitions -----------------------------------------------------*/
1457 typedef uint16 MIB_ID;
1459 typedef union _MIB_VALUE
1461 MIB_UINT8 u8Uint8; /* Generic tags for test harness */
1462 MIB_UINT16 u16Uint16;
1463 MIB_UINT32 u32Uint32;
1464 MIB_UINT64 u64Uint64;
1465 MIB_LIST_OF_U8 au8ListOfu8;
1466 MIB_SET_OF_U8 sSetOfu8;
1467 MIB_WEP_DEF_KEYS sDefaultWEPKeys;
1468 RSNMIB_CONTROL sRsnControl;
1469 MIB_WME_TABLE sWMEParameters;
1470 FM_WME_OUI_AND_VER sWMEOuiandVer;
1471 MIB_ESS_ID sDesiredESSID;
1472 PRE_ACTIVATE_MIB_TYPE sPreActivateType;
1473 MIB_COUNTRY_ELEMENT_INFO sCountry;
1474 MIB_ACL_MAX_CONNECTIONS_TYPE sMaxConnections;
1475 MIB_ACL_MODE_TYPE sAclMode;
1476 MIB_ACL_TYPE sACL;
1477 MIB_ACL_TYPE_MASKS sACLmasks;
1478 List_Of_Tpc sList_Of_Tpc;
1479 EEPROM_VERSION_TYPE sEepromInfo;
1480 } __MTLK_PACKED MIB_VALUE;
1482 typedef struct _MIB_OBJECT
1484 MIB_ID u16ID;
1485 MIB_VALUE uValue;
1486 } __MTLK_PACKED MIB_OBJECT;
1488 #define MTLK_PACK_OFF
1489 #include "mtlkpack.h"
1491 #endif /* !__MHI_MIB_ID_INCLUDED */