From 993b021502d04830e7f932e28068b7ec11376519 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Mon, 19 Aug 2013 13:10:26 -0500 Subject: [PATCH] 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 --- core/rtw_recv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/rtw_recv.c b/core/rtw_recv.c index 6c3e00c..07c92cd 100644 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -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);