diff --git a/core/rtw_xmit.c b/core/rtw_xmit.c index abd693f..f397051 100644 --- a/core/rtw_xmit.c +++ b/core/rtw_xmit.c @@ -1557,18 +1557,12 @@ static struct xmit_frame *dequeue_one_xmitframe(struct xmit_priv *pxmitpriv, str xmitframe_phead = get_list_head(pframe_queue); xmitframe_plist = get_next(xmitframe_phead); - while (!rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) { + if (!rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) { pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list); - xmitframe_plist = get_next(xmitframe_plist); - rtw_list_delete(&pxmitframe->list); - ptxservq->qcnt--; - - break; } - return pxmitframe; }