import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / connectivity / combo / drv_wlan / mt6630 / wlan / include / mgmt / auth.h
1 /*
2 ** $Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/include/mgmt/auth.h#1 $
3 */
4
5 /*! \file auth.h
6 \brief This file contains the authentication REQ/RESP of
7 IEEE 802.11 family for MediaTek 802.11 Wireless LAN Adapters.
8 */
9
10
11
12 /*
13 ** $Log: auth.h $
14 **
15 ** 01 17 2013 cm.chang
16 ** [BORA00002149] [MT6630 Wi-Fi] Initial software development
17 ** Use ucBssIndex to replace eNetworkTypeIndex
18 **
19 ** 09 17 2012 cm.chang
20 ** [BORA00002149] [MT6630 Wi-Fi] Initial software development
21 ** Duplicate source from MT6620 v2.3 driver branch
22 ** (Davinci label: MT6620_WIFI_Driver_V2_3_120913_1942_As_MT6630_Base)
23 *
24 * 04 21 2011 terry.wu
25 * [WCXRP00000674] [MT6620 Wi-Fi][Driver] Refine AAA authSendAuthFrame
26 * Add network type parameter to authSendAuthFrame.
27 *
28 * 07 08 2010 cp.wu
29 *
30 * [WPD00003833] [MT6620 and MT5931] Driver migration - move to new repository.
31 *
32 * 06 14 2010 cp.wu
33 * [WPD00003833][MT6620 and MT5931] Driver migration
34 * add management dispatching function table.
35 *
36 * 06 11 2010 cp.wu
37 * [WPD00003833][MT6620 and MT5931] Driver migration
38 * auth.c is migrated.
39 *
40 * 06 10 2010 cp.wu
41 * [WPD00003833][MT6620 and MT5931] Driver migration
42 * add buildable & linkable ais_fsm.c
43 *
44 * related reference are still waiting to be resolved
45 *
46 */
47
48 #ifndef _AUTH_H
49 #define _AUTH_H
50
51 /*******************************************************************************
52 * C O M P I L E R F L A G S
53 ********************************************************************************
54 */
55
56 /*******************************************************************************
57 * E X T E R N A L R E F E R E N C E S
58 ********************************************************************************
59 */
60
61 /*******************************************************************************
62 * C O N S T A N T S
63 ********************************************************************************
64 */
65
66 /*******************************************************************************
67 * D A T A T Y P E S
68 ********************************************************************************
69 */
70
71 /*******************************************************************************
72 * P U B L I C D A T A
73 ********************************************************************************
74 */
75
76 /*******************************************************************************
77 * P R I V A T E D A T A
78 ********************************************************************************
79 */
80
81 /*******************************************************************************
82 * M A C R O S
83 ********************************************************************************
84 */
85
86 /*******************************************************************************
87 * F U N C T I O N D E C L A R A T I O N S
88 ********************************************************************************
89 */
90 /*----------------------------------------------------------------------------*/
91 /* Routines in auth.c */
92 /*----------------------------------------------------------------------------*/
93 VOID authAddIEChallengeText(IN P_ADAPTER_T prAdapter, IN OUT P_MSDU_INFO_T prMsduInfo);
94
95 #if !CFG_SUPPORT_AAA
96 WLAN_STATUS
97 authSendAuthFrame(IN P_ADAPTER_T prAdapter,
98 IN P_STA_RECORD_T prStaRec, IN UINT_16 u2TransactionSeqNum);
99 #else
100 WLAN_STATUS
101 authSendAuthFrame(IN P_ADAPTER_T prAdapter,
102 IN P_STA_RECORD_T prStaRec,
103 IN UINT_8 uBssIndex,
104 IN P_SW_RFB_T prFalseAuthSwRfb,
105 IN UINT_16 u2TransactionSeqNum, IN UINT_16 u2StatusCode);
106 #endif /* CFG_SUPPORT_AAA */
107
108 WLAN_STATUS
109 authCheckTxAuthFrame(IN P_ADAPTER_T prAdapter,
110 IN P_MSDU_INFO_T prMsduInfo, IN UINT_16 u2TransactionSeqNum);
111
112 WLAN_STATUS authCheckRxAuthFrameTransSeq(IN P_ADAPTER_T prAdapter, IN P_SW_RFB_T prSwRfb);
113
114 WLAN_STATUS
115 authCheckRxAuthFrameStatus(IN P_ADAPTER_T prAdapter,
116 IN P_SW_RFB_T prSwRfb,
117 IN UINT_16 u2TransactionSeqNum, OUT PUINT_16 pu2StatusCode);
118
119 VOID authHandleIEChallengeText(P_ADAPTER_T prAdapter, P_SW_RFB_T prSwRfb, P_IE_HDR_T prIEHdr);
120
121 WLAN_STATUS authProcessRxAuth2_Auth4Frame(IN P_ADAPTER_T prAdapter, IN P_SW_RFB_T prSwRfb);
122
123 WLAN_STATUS
124 authSendDeauthFrame(IN P_ADAPTER_T prAdapter,
125 IN P_BSS_INFO_T prBssInfo,
126 IN P_STA_RECORD_T prStaRec,
127 IN P_SW_RFB_T prClassErrSwRfb,
128 IN UINT_16 u2ReasonCode, IN PFN_TX_DONE_HANDLER pfTxDoneHandler);
129
130 WLAN_STATUS
131 authProcessRxDeauthFrame(IN P_SW_RFB_T prSwRfb, IN UINT_8 aucBSSID[], OUT PUINT_16 pu2ReasonCode);
132
133 WLAN_STATUS
134 authProcessRxAuth1Frame(IN P_ADAPTER_T prAdapter,
135 IN P_SW_RFB_T prSwRfb,
136 IN UINT_8 aucExpectedBSSID[],
137 IN UINT_16 u2ExpectedAuthAlgNum,
138 IN UINT_16 u2ExpectedTransSeqNum, OUT PUINT_16 pu2ReturnStatusCode);
139
140 /*******************************************************************************
141 * F U N C T I O N S
142 ********************************************************************************
143 */
144
145 #endif /* _AUTH_H */