mirror of
https://github.com/aircrack-ng/rtl8188eus.git
synced 2026-01-12 00:51:32 +00:00
remove unused code
This commit is contained in:
@@ -14,9 +14,6 @@
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
#define _RTW_MP_C_
|
#define _RTW_MP_C_
|
||||||
#include <drv_types.h>
|
#include <drv_types.h>
|
||||||
#ifdef PLATFORM_FREEBSD
|
|
||||||
#include <sys/unistd.h> /* for RFHIGHPID */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../hal/phydm/phydm_precomp.h"
|
#include "../hal/phydm/phydm_precomp.h"
|
||||||
#if defined(CONFIG_RTL8723B) || defined(CONFIG_RTL8821A)
|
#if defined(CONFIG_RTL8723B) || defined(CONFIG_RTL8821A)
|
||||||
@@ -163,64 +160,6 @@ static void _init_mp_priv_(struct mp_priv *pmp_priv)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PLATFORM_WINDOWS
|
|
||||||
#if 0
|
|
||||||
void mp_wi_callback(
|
|
||||||
IN NDIS_WORK_ITEM *pwk_item,
|
|
||||||
IN PVOID cntx
|
|
||||||
)
|
|
||||||
{
|
|
||||||
_adapter *padapter = (_adapter *)cntx;
|
|
||||||
struct mp_priv *pmppriv = &padapter->mppriv;
|
|
||||||
struct mp_wi_cntx *pmp_wi_cntx = &pmppriv->wi_cntx;
|
|
||||||
|
|
||||||
/* Execute specified action. */
|
|
||||||
if (pmp_wi_cntx->curractfunc != NULL) {
|
|
||||||
LARGE_INTEGER cur_time;
|
|
||||||
ULONGLONG start_time, end_time;
|
|
||||||
NdisGetCurrentSystemTime(&cur_time); /* driver version */
|
|
||||||
start_time = cur_time.QuadPart / 10; /* The return value is in microsecond */
|
|
||||||
|
|
||||||
pmp_wi_cntx->curractfunc(padapter);
|
|
||||||
|
|
||||||
NdisGetCurrentSystemTime(&cur_time); /* driver version */
|
|
||||||
end_time = cur_time.QuadPart / 10; /* The return value is in microsecond */
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
NdisAcquireSpinLock(&(pmp_wi_cntx->mp_wi_lock));
|
|
||||||
pmp_wi_cntx->bmp_wi_progress = _FALSE;
|
|
||||||
NdisReleaseSpinLock(&(pmp_wi_cntx->mp_wi_lock));
|
|
||||||
|
|
||||||
if (pmp_wi_cntx->bmpdrv_unload)
|
|
||||||
NdisSetEvent(&(pmp_wi_cntx->mp_wi_evt));
|
|
||||||
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int init_mp_priv_by_os(struct mp_priv *pmp_priv)
|
|
||||||
{
|
|
||||||
struct mp_wi_cntx *pmp_wi_cntx;
|
|
||||||
|
|
||||||
if (pmp_priv == NULL)
|
|
||||||
return _FAIL;
|
|
||||||
|
|
||||||
pmp_priv->rx_testcnt = 0;
|
|
||||||
pmp_priv->rx_testcnt1 = 0;
|
|
||||||
pmp_priv->rx_testcnt2 = 0;
|
|
||||||
|
|
||||||
pmp_priv->tx_testcnt = 0;
|
|
||||||
pmp_priv->tx_testcnt1 = 0;
|
|
||||||
|
|
||||||
pmp_wi_cntx = &pmp_priv->wi_cntx
|
|
||||||
pmp_wi_cntx->bmpdrv_unload = _FALSE;
|
|
||||||
pmp_wi_cntx->bmp_wi_progress = _FALSE;
|
|
||||||
pmp_wi_cntx->curractfunc = NULL;
|
|
||||||
|
|
||||||
return _SUCCESS;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PLATFORM_LINUX
|
#ifdef PLATFORM_LINUX
|
||||||
static int init_mp_priv_by_os(struct mp_priv *pmp_priv)
|
static int init_mp_priv_by_os(struct mp_priv *pmp_priv)
|
||||||
{
|
{
|
||||||
@@ -1940,17 +1879,6 @@ void SetPacketTx(PADAPTER padapter)
|
|||||||
pmp_priv->tx.PktTxThread = NULL;
|
pmp_priv->tx.PktTxThread = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef PLATFORM_FREEBSD
|
|
||||||
{
|
|
||||||
struct proc *p;
|
|
||||||
struct thread *td;
|
|
||||||
pmp_priv->tx.PktTxThread = kproc_kthread_add(mp_xmit_packet_thread, pmp_priv,
|
|
||||||
&p, &td, RFHIGHPID, 0, "MPXmitThread", "MPXmitThread");
|
|
||||||
|
|
||||||
if (pmp_priv->tx.PktTxThread < 0)
|
|
||||||
RTW_INFO("Create PktTx Thread Fail !!!!!\n");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Rtw_MPSetMacTxEDCA(padapter);
|
Rtw_MPSetMacTxEDCA(padapter);
|
||||||
exit:
|
exit:
|
||||||
|
|||||||
Reference in New Issue
Block a user