#ifndef __RTL871X_SECURITY_H_
#define __RTL871X_SECURITY_H_
#include "osdep_service.h"
#include "drv_types.h"
#define _NO_PRIVACY_ …
#define _WEP40_ …
#define _TKIP_ …
#define _TKIP_WTMIC_ …
#define _AES_ …
#define _WEP104_ …
#define _WPA_IE_ID_ …
#define _WPA2_IE_ID_ …
#ifndef Ndis802_11AuthModeWPA2
#define Ndis802_11AuthModeWPA2 …
#endif
#ifndef Ndis802_11AuthModeWPA2PSK
#define Ndis802_11AuthModeWPA2PSK …
#endif
pn48;
Keytype;
struct RT_PMKID_LIST { … };
struct security_priv { … };
#define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst) …
#define SET_ICE_IV_LEN(iv_len, icv_len, encrypt) …
#define GET_TKIP_PN(iv, txpn) …
#define ROL32(A, n) …
#define ROR32(A, n) …
struct mic_data { … };
void seccalctkipmic(
u8 *key,
u8 *header,
u8 *data,
u32 data_len,
u8 *Miccode,
u8 priority);
void r8712_secmicsetkey(struct mic_data *pmicdata, u8 *key);
void r8712_secmicappend(struct mic_data *pmicdata, u8 *src, u32 nBytes);
void r8712_secgetmic(struct mic_data *pmicdata, u8 *dst);
u32 r8712_aes_encrypt(struct _adapter *padapter, u8 *pxmitframe);
u32 r8712_tkip_encrypt(struct _adapter *padapter, u8 *pxmitframe);
void r8712_wep_encrypt(struct _adapter *padapter, u8 *pxmitframe);
void r8712_aes_decrypt(struct _adapter *padapter, u8 *precvframe);
void r8712_tkip_decrypt(struct _adapter *padapter, u8 *precvframe);
void r8712_wep_decrypt(struct _adapter *padapter, u8 *precvframe);
void r8712_use_tkipkey_handler(struct timer_list *t);
#endif