support different wifi bt chip auto compatible
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / combo_mt66xx / mt6620 / wlan / include / mgmt / wapi.h
1 /*
2 ** $Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/include/mgmt/wapi.h#1 $
3 */
4
5 /*! \file  wapi.h
6     \brief  The wapi related define, macro and structure are described here.
7 */
8
9
10
11 /*
12 ** $Log: wapi.h $
13  *
14  * 07 20 2010 wh.su
15  * 
16  * .
17  *
18  * 01 27 2010 wh.su
19  * [BORA00000476][Wi-Fi][firmware] Add the security module initialize code
20  * add and fixed some security function.
21  *
22  * Dec 8 2009 mtk01088
23  * [BORA00000476] [Wi-Fi][firmware] Add the security module initialize code
24  * change the wapi function name and adding the generate wapi ie function
25  *
26  * Dec 7 2009 mtk01088
27  * [BORA00000476] [Wi-Fi][firmware] Add the security module initialize code
28  * adding some wapi structure define
29  *
30  * Nov 23 2009 mtk01088
31  * [BORA00000476] [Wi-Fi][firmware] Add the security module initialize code
32  *
33 **  \main\maintrunk.MT5921\1 2009-10-09 17:06:29 GMT mtk01088
34 **
35 */
36
37 #ifndef _WAPI_H
38 #define _WAPI_H
39
40 #if CFG_SUPPORT_WAPI
41
42 /*******************************************************************************
43 *                         C O M P I L E R   F L A G S
44 ********************************************************************************
45 */
46
47 /*******************************************************************************
48 *                    E X T E R N A L   R E F E R E N C E S
49 ********************************************************************************
50 */
51
52 /*******************************************************************************
53 *                              C O N S T A N T S
54 ********************************************************************************
55 */
56
57 /*******************************************************************************
58 *                             D A T A   T Y P E S
59 ********************************************************************************
60 */
61
62 /*******************************************************************************
63 *                            P U B L I C   D A T A
64 ********************************************************************************
65 */
66
67 /*******************************************************************************
68 *                           P R I V A T E   D A T A
69 ********************************************************************************
70 */
71
72 /*******************************************************************************
73 *                                 M A C R O S
74 ********************************************************************************
75 */
76 #define WAPI_CIPHER_SUITE_WPI           0x01721400 /* WPI_SMS4 */
77 #define WAPI_AKM_SUITE_802_1X           0x01721400 /* WAI */
78 #define WAPI_AKM_SUITE_PSK              0x02721400 /* WAI_PSK */
79
80 #define ELEM_ID_WAPI                    68 /* WAPI IE */
81
82 #define WAPI_IE(fp)                     ((P_WAPI_INFO_ELEM_T) fp)
83
84
85 /*******************************************************************************
86 *                  F U N C T I O N   D E C L A R A T I O N S
87 ********************************************************************************
88 */
89
90 VOID
91 wapiGenerateWAPIIE(
92     IN P_ADAPTER_T          prAdapter,
93     IN P_MSDU_INFO_T        prMsduInfo
94     );
95
96 BOOLEAN
97 wapiParseWapiIE (
98     IN  P_WAPI_INFO_ELEM_T  prInfoElem,
99     OUT P_WAPI_INFO_T       prWapiInfo
100     );
101
102 BOOLEAN
103 wapiPerformPolicySelection(
104     IN P_ADAPTER_T          prAdapter,
105     IN P_BSS_DESC_T         prBss
106     );
107
108 //BOOLEAN
109 //wapiUpdateTxKeyIdx (
110 //    IN  P_STA_RECORD_T     prStaRec,
111 //    IN  UINT_8             ucWlanIdx
112 //    );
113
114 /*******************************************************************************
115 *                              F U N C T I O N S
116 ********************************************************************************
117 */
118 #endif
119 #endif /* _WAPI_H */
120