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