mib.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /*
  2. ** Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/include/mgmt/mib.h#1
  3. */
  4. /*! \file mib.h
  5. \brief This file contains the IEEE 802.11 family related MIB definition
  6. for MediaTek 802.11 Wireless LAN Adapters.
  7. */
  8. /*
  9. ** Log: mib.h
  10. *
  11. * 11 08 2010 wh.su
  12. * [WCXRP00000171] [MT6620 Wi-Fi][Driver] Add message check code same behavior as mt5921
  13. * add the message check code from mt5921.
  14. *
  15. * 07 24 2010 wh.su
  16. *
  17. * .support the Wi-Fi RSN
  18. *
  19. * 07 08 2010 cp.wu
  20. *
  21. * [WPD00003833] [MT6620 and MT5931] Driver migration - move to new repository.
  22. *
  23. * 06 07 2010 cp.wu
  24. * [WPD00003833][MT6620 and MT5931] Driver migration
  25. * add aa_fsm.h, ais_fsm.h, bss.h, mib.h and scan.h.
  26. *
  27. * 02 04 2010 kevin.huang
  28. * [BORA00000603][WIFISYS] [New Feature] AAA Module Support
  29. * Add AAA Module Support, Revise Net Type to Net Type Index for array lookup
  30. *
  31. * Nov 23 2009 mtk01461
  32. * [BORA00000018] Integrate WIFI part into BORA for the 1st time
  33. *
  34. */
  35. #ifndef _MIB_H
  36. #define _MIB_H
  37. /*******************************************************************************
  38. * C O M P I L E R F L A G S
  39. ********************************************************************************
  40. */
  41. /*******************************************************************************
  42. * E X T E R N A L R E F E R E N C E S
  43. ********************************************************************************
  44. */
  45. /*******************************************************************************
  46. * C O N S T A N T S
  47. ********************************************************************************
  48. */
  49. /*******************************************************************************
  50. * D A T A T Y P E S
  51. ********************************************************************************
  52. */
  53. /* Entry in SMT AuthenticationAlgorithms Table: dot11AuthenticationAlgorithmsEntry */
  54. typedef struct _DOT11_AUTHENTICATION_ALGORITHMS_ENTRY {
  55. BOOLEAN dot11AuthenticationAlgorithmsEnable; /* dot11AuthenticationAlgorithmsEntry 3 */
  56. } DOT11_AUTHENTICATION_ALGORITHMS_ENTRY, *P_DOT11_AUTHENTICATION_ALGORITHMS_ENTRY;
  57. /* Entry in SMT dot11RSNAConfigPairwiseCiphersTalbe Table: dot11RSNAConfigPairwiseCiphersEntry */
  58. typedef struct _DOT11_RSNA_CONFIG_PAIRWISE_CIPHERS_ENTRY {
  59. UINT_32 dot11RSNAConfigPairwiseCipher; /* dot11RSNAConfigPairwiseCiphersEntry 2 */
  60. BOOLEAN dot11RSNAConfigPairwiseCipherEnabled; /* dot11RSNAConfigPairwiseCiphersEntry 3 */
  61. } DOT11_RSNA_CONFIG_PAIRWISE_CIPHERS_ENTRY, *P_DOT11_RSNA_CONFIG_PAIRWISE_CIPHERS_ENTRY;
  62. /* Entry in SMT dot11RSNAConfigAuthenticationSuitesTalbe Table: dot11RSNAConfigAuthenticationSuitesEntry */
  63. typedef struct _DOT11_RSNA_CONFIG_AUTHENTICATION_SUITES_ENTRY {
  64. UINT_32 dot11RSNAConfigAuthenticationSuite; /* dot11RSNAConfigAuthenticationSuitesEntry 2 */
  65. BOOLEAN dot11RSNAConfigAuthenticationSuiteEnabled; /* dot11RSNAConfigAuthenticationSuitesEntry 3 */
  66. } DOT11_RSNA_CONFIG_AUTHENTICATION_SUITES_ENTRY, *P_DOT11_RSNA_CONFIG_AUTHENTICATION_SUITES_ENTRY;
  67. /* ----- IEEE 802.11 MIB Major sections ----- */
  68. typedef struct _IEEE_802_11_MIB_T {
  69. /* dot11PrivacyTable (dot11smt 5) */
  70. UINT_8 dot11WEPDefaultKeyID; /* dot11PrivacyEntry 2 */
  71. BOOLEAN dot11TranmitKeyAvailable;
  72. UINT_32 dot11WEPICVErrorCount; /* dot11PrivacyEntry 5 */
  73. UINT_32 dot11WEPExcludedCount; /* dot11PrivacyEntry 6 */
  74. /* dot11RSNAConfigTable (dot11smt 8) */
  75. UINT_32 dot11RSNAConfigGroupCipher; /* dot11RSNAConfigEntry 4 */
  76. /* dot11RSNAConfigPairwiseCiphersTable (dot11smt 9) */
  77. DOT11_RSNA_CONFIG_PAIRWISE_CIPHERS_ENTRY dot11RSNAConfigPairwiseCiphersTable[MAX_NUM_SUPPORTED_CIPHER_SUITES];
  78. /* dot11RSNAConfigAuthenticationSuitesTable (dot11smt 10) */
  79. DOT11_RSNA_CONFIG_AUTHENTICATION_SUITES_ENTRY
  80. dot11RSNAConfigAuthenticationSuitesTable[MAX_NUM_SUPPORTED_AKM_SUITES];
  81. #if 0 /* SUPPORT_WAPI */
  82. BOOLEAN fgWapiKeyInstalled;
  83. PARAM_WPI_KEY_T rWapiPairwiseKey[2];
  84. BOOLEAN fgPairwiseKeyUsed[2];
  85. UINT_8 ucWpiActivedPWKey; /* Must be 0 or 1, by wapi spec */
  86. PARAM_WPI_KEY_T rWapiGroupKey[2];
  87. BOOLEAN fgGroupKeyUsed[2];
  88. #endif
  89. } IEEE_802_11_MIB_T, *P_IEEE_802_11_MIB_T;
  90. /* ------------------ IEEE 802.11 non HT PHY characteristics ---------------- */
  91. typedef const struct _NON_HT_PHY_ATTRIBUTE_T {
  92. UINT_16 u2SupportedRateSet;
  93. BOOLEAN fgIsShortPreambleOptionImplemented;
  94. BOOLEAN fgIsShortSlotTimeOptionImplemented;
  95. } NON_HT_PHY_ATTRIBUTE_T, *P_NON_HT_PHY_ATTRIBUTE_T;
  96. typedef const struct _NON_HT_ADHOC_MODE_ATTRIBUTE_T {
  97. ENUM_PHY_TYPE_INDEX_T ePhyTypeIndex;
  98. UINT_16 u2BSSBasicRateSet;
  99. } NON_HT_ADHOC_MODE_ATTRIBUTE_T, *P_NON_HT_ADHOC_MODE_ATTRIBUTE_T;
  100. typedef NON_HT_ADHOC_MODE_ATTRIBUTE_T NON_HT_AP_MODE_ATTRIBUTE_T;
  101. /*******************************************************************************
  102. * P U B L I C D A T A
  103. ********************************************************************************
  104. */
  105. extern NON_HT_PHY_ATTRIBUTE_T rNonHTPhyAttributes[];
  106. extern NON_HT_ADHOC_MODE_ATTRIBUTE_T rNonHTAdHocModeAttributes[];
  107. extern NON_HT_AP_MODE_ATTRIBUTE_T rNonHTApModeAttributes[];
  108. /*******************************************************************************
  109. * P R I V A T E D A T A
  110. ********************************************************************************
  111. */
  112. /*******************************************************************************
  113. * M A C R O S
  114. ********************************************************************************
  115. */
  116. /*******************************************************************************
  117. * F U N C T I O N D E C L A R A T I O N S
  118. ********************************************************************************
  119. */
  120. /*******************************************************************************
  121. * F U N C T I O N S
  122. ********************************************************************************
  123. */
  124. #endif /* _MIB_H */