rtl8188eu: Fix bug introduced in commit ef1472a

The bug caused failure to transfter data for any B/G network.

Reported by Paolo Valleri
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-08-19 13:10:26 -05:00
parent 0306cad214
commit 993b021502

View file

@ -2067,7 +2067,8 @@ int process_recv_indicatepkts(struct adapter *padapter, union recv_frame *prfram
return retval;
}
if ((!padapter->bDriverStopped) && (!padapter)) {
if ((!padapter->bDriverStopped) &&
(!padapter->bSurpriseRemoved)) {
/* indicate this recv_frame */
RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_, ("@@@@ process_recv_indicatepkts- recv_func recv_indicatepkt\n"));
rtw_recv_indicatepkt(padapter, prframe);