mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 14:53:05 +00:00
rtl8188eu: Remove CONFIG_XMIT_ACK and CONFIG_XMIT_ACK_POLLING
The first one was always selected. The second was not selected. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
99db2615c8
commit
5ded2b3ded
10 changed files with 1 additions and 103 deletions
|
@ -295,12 +295,9 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
|
|||
pxmitpriv->viq_cnt = 0;
|
||||
pxmitpriv->voq_cnt = 0;
|
||||
|
||||
#ifdef CONFIG_XMIT_ACK
|
||||
pxmitpriv->ack_tx = false;
|
||||
_rtw_mutex_init(&pxmitpriv->ack_tx_mutex);
|
||||
rtw_sctx_init(&pxmitpriv->ack_tx_ops, 0);
|
||||
#endif
|
||||
|
||||
rtw_hal_init_xmit_priv(padapter);
|
||||
|
||||
exit:
|
||||
|
@ -407,9 +404,7 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv)
|
|||
|
||||
rtw_free_hwxmits(padapter);
|
||||
|
||||
#ifdef CONFIG_XMIT_ACK
|
||||
_rtw_mutex_free(&pxmitpriv->ack_tx_mutex);
|
||||
#endif
|
||||
|
||||
out:
|
||||
|
||||
|
@ -2413,10 +2408,7 @@ static void rtw_init_xmitframe(struct xmit_frame *pxframe)
|
|||
pxframe->agg_num = 1;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_XMIT_ACK
|
||||
pxframe->ack_report = 0;
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4066,59 +4058,6 @@ void rtw_sctx_done(struct submit_ctx **sctx)
|
|||
rtw_sctx_done_err(sctx, RTW_SCTX_DONE_SUCCESS);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_XMIT_ACK
|
||||
|
||||
#ifdef CONFIG_XMIT_ACK_POLLING
|
||||
s32 c2h_evt_hdl(struct adapter *adapter, struct c2h_evt_hdr *c2h_evt, c2h_id_filter filter);
|
||||
|
||||
/**
|
||||
* rtw_ack_tx_polling -
|
||||
* @pxmitpriv: xmit_priv to address ack_tx_ops
|
||||
* @timeout_ms: timeout msec
|
||||
*
|
||||
* Init ack_tx_ops and then do c2h_evt_hdl() and polling ack_tx_ops repeatedly
|
||||
* till tx report or timeout
|
||||
* Returns: _SUCCESS if TX report ok, _FAIL for others
|
||||
*/
|
||||
int rtw_ack_tx_polling(struct xmit_priv *pxmitpriv, u32 timeout_ms)
|
||||
{
|
||||
int ret = _FAIL;
|
||||
struct submit_ctx *pack_tx_ops = &pxmitpriv->ack_tx_ops;
|
||||
struct adapter *adapter = container_of(pxmitpriv, struct adapter, xmitpriv);
|
||||
|
||||
pack_tx_ops->submit_time = rtw_get_current_time();
|
||||
pack_tx_ops->timeout_ms = timeout_ms;
|
||||
pack_tx_ops->status = RTW_SCTX_SUBMITTED;
|
||||
|
||||
do {
|
||||
c2h_evt_hdl(adapter, NULL, rtw_hal_c2h_id_filter_ccx(adapter));
|
||||
if (pack_tx_ops->status != RTW_SCTX_SUBMITTED)
|
||||
break;
|
||||
|
||||
if (adapter->bDriverStopped) {
|
||||
pack_tx_ops->status = RTW_SCTX_DONE_DRV_STOP;
|
||||
break;
|
||||
}
|
||||
if (adapter->bSurpriseRemoved) {
|
||||
pack_tx_ops->status = RTW_SCTX_DONE_DEV_REMOVE;
|
||||
break;
|
||||
}
|
||||
|
||||
rtw_msleep_os(10);
|
||||
} while (rtw_get_passing_time_ms(pack_tx_ops->submit_time) < timeout_ms);
|
||||
|
||||
if (pack_tx_ops->status == RTW_SCTX_SUBMITTED) {
|
||||
pack_tx_ops->status = RTW_SCTX_DONE_TIMEOUT;
|
||||
DBG_871X("%s timeout\n", __func__);
|
||||
}
|
||||
|
||||
if (pack_tx_ops->status == RTW_SCTX_DONE_SUCCESS)
|
||||
ret = _SUCCESS;
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DETECT_C2H_BY_POLLING
|
||||
s32 c2h_evt_hdl(struct adapter *adapter, struct c2h_evt_hdr *c2h_evt, c2h_id_filter filter);
|
||||
#endif
|
||||
|
@ -4178,9 +4117,6 @@ int rtw_ack_tx_wait(struct xmit_priv *pxmitpriv, u32 timeout_ms)
|
|||
ret = _SUCCESS;
|
||||
|
||||
return ret;
|
||||
#else
|
||||
#ifdef CONFIG_XMIT_ACK_POLLING
|
||||
return rtw_ack_tx_polling(pxmitpriv, timeout_ms);
|
||||
#else
|
||||
struct submit_ctx *pack_tx_ops = &pxmitpriv->ack_tx_ops;
|
||||
|
||||
|
@ -4190,7 +4126,6 @@ int rtw_ack_tx_wait(struct xmit_priv *pxmitpriv, u32 timeout_ms)
|
|||
|
||||
return rtw_sctx_wait(pack_tx_ops);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
void rtw_ack_tx_done(struct xmit_priv *pxmitpriv, int status)
|
||||
|
@ -4203,4 +4138,3 @@ void rtw_ack_tx_done(struct xmit_priv *pxmitpriv, int status)
|
|||
DBG_871X("%s ack_tx not set\n", __func__);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_XMIT_ACK */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue