mib.h 6.2 KB

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