return _SUCCESS;
}
-static struct xmit_frame *dequeue_one_xmitframe(struct tx_servq *ptxservq, struct __queue *pframe_queue)
+static struct xmit_frame *dequeue_one_xmitframe(struct __queue *pframe_queue)
{
struct list_head *xmitframe_plist, *xmitframe_phead;
struct xmit_frame *pxmitframe;
xmitframe_plist = xmitframe_phead->next;
pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list);
list_del_init(&pxmitframe->list);
- ptxservq->qcnt--;
return pxmitframe;
}
pframe_queue = &ptxservq->sta_pending;
- pxmitframe = dequeue_one_xmitframe(ptxservq, pframe_queue);
+ pxmitframe = dequeue_one_xmitframe(pframe_queue);
if (pxmitframe) {
phwxmit->accnt--;
+ ptxservq->qcnt--;
/* Remove sta node when there are no pending packets. */
if (list_empty(&pframe_queue->queue))