Go to the documentation of this file.
26 #ifndef __RTL871X_SECURITY_H_
27 #define __RTL871X_SECURITY_H_
32 #define _NO_PRIVACY_ 0x0
35 #define _TKIP_WTMIC_ 0x3
39 #define _WPA_IE_ID_ 0xdd
40 #define _WPA2_IE_ID_ 0x30
42 #ifndef Ndis802_11AuthModeWPA2
43 #define Ndis802_11AuthModeWPA2 (Ndis802_11AuthModeWPANone + 1)
46 #ifndef Ndis802_11AuthModeWPA2PSK
47 #define Ndis802_11AuthModeWPA2PSK (Ndis802_11AuthModeWPANone + 2)
52 #if defined(__BIG_ENDIAN)
144 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst) \
146 switch (psecuritypriv->AuthAlgrthm) { \
150 encry_algo = (u8)psecuritypriv->PrivacyAlgrthm; \
154 encry_algo = (u8)psecuritypriv->XGrpPrivacy; \
156 encry_algo = (u8)psta->XPrivacy; \
160 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\
182 #define GET_TKIP_PN(iv, txpn) \
184 txpn._byte_.TSC0 = iv[2];\
185 txpn._byte_.TSC1 = iv[0];\
186 txpn._byte_.TSC2 = iv[4];\
187 txpn._byte_.TSC3 = iv[5];\
188 txpn._byte_.TSC4 = iv[6];\
189 txpn._byte_.TSC5 = iv[7];\
192 #define ROL32(A, n) (((A) << (n)) | (((A)>>(32-(n))) & ((1UL << (n)) - 1)))
193 #define ROR32(A, n) ROL32((A), 32 - (n))