mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 14:03:05 +00:00
rtl8188eu: Remove CONFIG_XMIT_THREAD_MODE
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
3bc76eea48
commit
bc08957f00
7 changed files with 0 additions and 232 deletions
128
core/rtw_xmit.c
128
core/rtw_xmit.c
|
@ -3223,134 +3223,6 @@ void xmit_delivery_enabled_frames(struct adapter *padapter, struct sta_info *pst
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_XMIT_THREAD_MODE
|
||||
void enqueue_pending_xmitbuf(
|
||||
struct xmit_priv *pxmitpriv,
|
||||
struct xmit_buf *pxmitbuf)
|
||||
{
|
||||
_queue *pqueue;
|
||||
struct adapter *pri_adapter = pxmitpriv->adapter;
|
||||
|
||||
pqueue = &pxmitpriv->pending_xmitbuf_queue;
|
||||
|
||||
spin_lock_bh(&pqueue->lock, &irql);
|
||||
rtw_list_delete(&pxmitbuf->list);
|
||||
rtw_list_insert_tail(&pxmitbuf->list, get_list_head(pqueue));
|
||||
spin_unlock_bh(&pqueue->lock, &irql);
|
||||
|
||||
_rtw_up_sema(&(pri_adapter->xmitpriv.xmit_sema));
|
||||
}
|
||||
|
||||
struct xmit_buf* dequeue_pending_xmitbuf(
|
||||
struct xmit_priv *pxmitpriv)
|
||||
{
|
||||
struct xmit_buf *pxmitbuf;
|
||||
_queue *pqueue;
|
||||
|
||||
|
||||
pxmitbuf = NULL;
|
||||
pqueue = &pxmitpriv->pending_xmitbuf_queue;
|
||||
|
||||
spin_lock_bh(&pqueue->lock, &irql);
|
||||
|
||||
if (_rtw_queue_empty(pqueue) == false)
|
||||
{
|
||||
_list *plist, *phead;
|
||||
|
||||
phead = get_list_head(pqueue);
|
||||
plist = get_next(phead);
|
||||
pxmitbuf = LIST_CONTAINOR(plist, struct xmit_buf, list);
|
||||
rtw_list_delete(&pxmitbuf->list);
|
||||
}
|
||||
|
||||
spin_unlock_bh(&pqueue->lock, &irql);
|
||||
|
||||
return pxmitbuf;
|
||||
}
|
||||
|
||||
struct xmit_buf* dequeue_pending_xmitbuf_under_survey(
|
||||
struct xmit_priv *pxmitpriv)
|
||||
{
|
||||
struct xmit_buf *pxmitbuf;
|
||||
struct xmit_frame *pxmitframe;
|
||||
_queue *pqueue;
|
||||
|
||||
|
||||
pxmitbuf = NULL;
|
||||
pqueue = &pxmitpriv->pending_xmitbuf_queue;
|
||||
|
||||
spin_lock_bh(&pqueue->lock, &irql);
|
||||
|
||||
if (_rtw_queue_empty(pqueue) == false)
|
||||
{
|
||||
_list *plist, *phead;
|
||||
u8 type;
|
||||
|
||||
phead = get_list_head(pqueue);
|
||||
plist = phead;
|
||||
do {
|
||||
plist = get_next(plist);
|
||||
if (plist == phead) break;
|
||||
|
||||
pxmitbuf = LIST_CONTAINOR(plist, struct xmit_buf, list);
|
||||
|
||||
pxmitframe = (struct xmit_frame*)pxmitbuf->priv_data;
|
||||
if(pxmitframe)
|
||||
type = GetFrameSubType(pxmitbuf->pbuf + TXDESC_SIZE + pxmitframe->pkt_offset * PACKET_OFFSET_SZ);
|
||||
else
|
||||
DBG_871X("%s, !!!ERROR!!! For USB, TODO ITEM \n", __FUNCTION__);
|
||||
|
||||
if ((type == WIFI_PROBEREQ) ||
|
||||
(type == WIFI_DATA_NULL) ||
|
||||
(type == WIFI_QOS_DATA_NULL))
|
||||
{
|
||||
rtw_list_delete(&pxmitbuf->list);
|
||||
break;
|
||||
}
|
||||
pxmitbuf = NULL;
|
||||
} while (1);
|
||||
}
|
||||
|
||||
spin_unlock_bh(&pqueue->lock, &irql);
|
||||
|
||||
return pxmitbuf;
|
||||
}
|
||||
|
||||
sint check_pending_xmitbuf(
|
||||
struct xmit_priv *pxmitpriv)
|
||||
{
|
||||
_queue *pqueue;
|
||||
|
||||
pqueue = &pxmitpriv->pending_xmitbuf_queue;
|
||||
|
||||
if(_rtw_queue_empty(pqueue) == false)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
thread_return rtw_xmit_thread(thread_context context)
|
||||
{
|
||||
s32 err;
|
||||
struct adapter *padapter;
|
||||
|
||||
|
||||
err = _SUCCESS;
|
||||
padapter = (PADAPTER)context;
|
||||
|
||||
thread_enter("RTW_XMIT_THREAD");
|
||||
|
||||
do {
|
||||
err = rtw_hal_xmit_thread_handler(padapter);
|
||||
flush_signals_thread();
|
||||
} while (_SUCCESS == err);
|
||||
|
||||
_rtw_up_sema(&padapter->xmitpriv.terminate_xmitthread_sema);
|
||||
|
||||
thread_exit();
|
||||
}
|
||||
#endif
|
||||
|
||||
void rtw_sctx_init(struct submit_ctx *sctx, int timeout_ms)
|
||||
{
|
||||
sctx->timeout_ms = timeout_ms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue