Skip to content

Commit

Permalink
Minor cleanup. Finish merging code, for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimocoder committed Feb 1, 2020
1 parent e68310c commit 7240269
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 51 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ CONFIG_RTL8821A = y
CONFIG_RTL8814A = y
######################### Interface ###########################
CONFIG_USB_HCI = y
########################### Android ###########################
CONFIG_SIGNAL_DISPLAY_DBM = y
########################## Features ###########################
CONFIG_NET_NS = y
CONFIG_MP_INCLUDED = y
Expand Down
4 changes: 0 additions & 4 deletions core/rtw_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ [email protected]
#include <drv_types.h>
#include <hal_data.h>

#if defined(PLATFORM_LINUX) && defined (PLATFORM_WINDOWS)
#error "Shall be Linux or Windows, but not both!\n"
#endif

#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_PLATFORM_RTL8197D)
#define rtw_le16_to_cpu(val) val
#define rtw_le32_to_cpu(val) val
Expand Down
43 changes: 0 additions & 43 deletions core/rtw_mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,41 +164,7 @@ 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;
Expand Down Expand Up @@ -741,15 +707,6 @@ MPT_DeInitAdapter(
#if defined(CONFIG_RTL8723B)
phy_set_bb_reg(pAdapter, 0xA01, BIT0, 1); /* /suggestion by jerry for MP Rx. */
#endif
#if 0 /* for Windows */
PlatformFreeWorkItem(&(pMptCtx->MptWorkItem));

while (pMptCtx->bMptWorkItemInProgress) {
if (NdisWaitEvent(&(pMptCtx->MptWorkItemEvent), 50))
break;
}
NdisFreeSpinLock(&(pMptCtx->MptWorkItemSpinLock));
#endif
}

static u8 mpt_ProStartTest(PADAPTER padapter)
Expand Down
4 changes: 0 additions & 4 deletions os_dep/linux/usb_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
#error "CONFIG_USB_HCI shall be on!\n"
#endif

#if defined(PLATFORM_LINUX) && defined (PLATFORM_WINDOWS)
#error "Shall be Linux or Windows, but not both!\n"
#endif

#ifdef CONFIG_80211N_HT
extern int rtw_ht_enable;
extern int rtw_bw_mode;
Expand Down

0 comments on commit 7240269

Please sign in to comment.