rtl8188eu: Remove CHECK_EVENT_SEQ - not defined

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-21 21:40:46 -05:00
parent cc7f562a55
commit 88dda12d3b

View file

@ -9539,13 +9539,9 @@ _func_exit_;
return res; return res;
} }
u8 mlme_evt_hdl(_adapter *padapter, unsigned char *pbuf) u8 mlme_evt_hdl(_adapter *padapter, unsigned char *pbuf)
{ {
u8 evt_code; u8 evt_code;
#ifdef CHECK_EVENT_SEQ
u8 evt_seq;
#endif
u16 evt_sz; u16 evt_sz;
uint *peventbuf; uint *peventbuf;
void (*event_callback)(_adapter *dev, u8 *pbuf); void (*event_callback)(_adapter *dev, u8 *pbuf);
@ -9553,24 +9549,8 @@ u8 mlme_evt_hdl(_adapter *padapter, unsigned char *pbuf)
peventbuf = (uint*)pbuf; peventbuf = (uint*)pbuf;
evt_sz = (u16)(*peventbuf&0xffff); evt_sz = (u16)(*peventbuf&0xffff);
#ifdef CHECK_EVENT_SEQ
evt_seq = (u8)((*peventbuf>>24)&0x7f);
#endif
evt_code = (u8)((*peventbuf>>16)&0xff); evt_code = (u8)((*peventbuf>>16)&0xff);
#ifdef CHECK_EVENT_SEQ
/* checking event sequence... */
if (evt_seq != (ATOMIC_READ(&pevt_priv->event_seq) & 0x7f) )
{
RT_TRACE(_module_rtl871x_cmd_c_,_drv_info_,("Evetn Seq Error! %d vs %d\n", (evt_seq & 0x7f), (ATOMIC_READ(&pevt_priv->event_seq) & 0x7f)));
pevt_priv->event_seq = (evt_seq+1)&0x7f;
goto _abort_event_;
}
#endif
/* checking if event code is valid */ /* checking if event code is valid */
if (evt_code >= MAX_C2HEVT) if (evt_code >= MAX_C2HEVT)
{ {