mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Remove dead code associated with WAPI
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
7c593a903d
commit
acda213bd2
16 changed files with 5 additions and 841 deletions
|
@ -634,14 +634,8 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
|
|||
|
||||
#ifdef CONFIG_LPS
|
||||
/* If EAPOL , ARP , OR DHCP packet, driver must be in active mode. */
|
||||
#ifdef CONFIG_WAPI_SUPPORT
|
||||
if ( (pattrib->ether_type == 0x88B4) || (pattrib->ether_type == 0x0806) || (pattrib->ether_type == 0x888e) || (pattrib->dhcp_pkt == 1) )
|
||||
#else
|
||||
if ( (pattrib->ether_type == 0x0806) || (pattrib->ether_type == 0x888e) || (pattrib->dhcp_pkt == 1) )
|
||||
#endif
|
||||
{
|
||||
rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_SPECIAL_PACKET, 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
bmcast = IS_MCAST(pattrib->ra);
|
||||
|
@ -729,11 +723,6 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
|
|||
{
|
||||
GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast);
|
||||
|
||||
#ifdef CONFIG_WAPI_SUPPORT
|
||||
if (pattrib->ether_type == 0x88B4)
|
||||
pattrib->encrypt=_NO_PRIVACY_;
|
||||
#endif
|
||||
|
||||
switch (psecuritypriv->dot11AuthAlgrthm)
|
||||
{
|
||||
case dot11AuthAlgrthm_Open:
|
||||
|
@ -783,14 +772,6 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
|
|||
pattrib->iv_len = 8;
|
||||
pattrib->icv_len = 8;
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_WAPI_SUPPORT
|
||||
case _SMS4_:
|
||||
pattrib->iv_len = 18;
|
||||
pattrib->icv_len = 16;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
pattrib->iv_len = 0;
|
||||
pattrib->icv_len = 0;
|
||||
|
@ -813,11 +794,6 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
|
|||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("update_attrib: bswenc=false\n"));
|
||||
}
|
||||
|
||||
#ifdef CONFIG_WAPI_SUPPORT
|
||||
if (pattrib->encrypt == _SMS4_)
|
||||
pattrib->bswenc = false;
|
||||
#endif
|
||||
|
||||
rtw_set_tx_chksum_offload(pkt, pattrib);
|
||||
|
||||
update_attrib_phy_info(pattrib, psta);
|
||||
|
@ -988,12 +964,8 @@ _func_enter_;
|
|||
case _AES_:
|
||||
rtw_aes_encrypt(padapter, (u8 * )pxmitframe);
|
||||
break;
|
||||
#ifdef CONFIG_WAPI_SUPPORT
|
||||
case _SMS4_:
|
||||
rtw_sms4_encrypt(padapter, (u8 * )pxmitframe);
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
@ -1331,11 +1303,6 @@ _func_enter_;
|
|||
else
|
||||
AES_IV(pattrib->iv, psta->dot11txpn, 0);
|
||||
break;
|
||||
#ifdef CONFIG_WAPI_SUPPORT
|
||||
case _SMS4_:
|
||||
rtw_wapi_get_iv(padapter,pattrib->ra,pattrib->iv);
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2456,16 +2423,6 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
|
|||
|
||||
res = update_attrib(padapter, *ppkt, &pxmitframe->attrib);
|
||||
|
||||
#ifdef CONFIG_WAPI_SUPPORT
|
||||
if (pxmitframe->attrib.ether_type != 0x88B4)
|
||||
{
|
||||
if (rtw_wapi_drop_for_key_absent(padapter, pxmitframe->attrib.ra))
|
||||
{
|
||||
WAPI_TRACE(WAPI_RX,"drop for key absend when tx\n");
|
||||
res = _FAIL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (res == _FAIL) {
|
||||
RT_TRACE(_module_xmit_osdep_c_, _drv_err_, ("rtw_xmit: update attrib fail\n"));
|
||||
#ifdef DBG_TX_DROP_FRAME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue