mirror of
https://github.com/amazingfate/rtl8723ds.git
synced 2026-06-18 18:29:01 +01:00
rtl8723ds: Remove PLATFORM_LINUX symbol - it is the only one supported
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
@@ -2346,7 +2346,6 @@ u8 mac_hidden_wl_func_to_hal_wl_func(u8 func)
|
||||
return wl_func;
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_LINUX
|
||||
#ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE
|
||||
/* #include <rtw_eeprom.h> */
|
||||
|
||||
@@ -2608,5 +2607,3 @@ exit:
|
||||
return ret;
|
||||
}
|
||||
#endif /* CONFIG_EFUSE_CONFIG_FILE */
|
||||
|
||||
#endif /* PLATFORM_LINUX */
|
||||
|
||||
@@ -162,7 +162,6 @@ static void _init_mp_priv_(struct mp_priv *pmp_priv)
|
||||
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_LINUX
|
||||
static int init_mp_priv_by_os(struct mp_priv *pmp_priv)
|
||||
{
|
||||
int i, res;
|
||||
@@ -203,7 +202,6 @@ _exit_init_mp_priv:
|
||||
|
||||
return res;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void mp_init_xmit_attrib(struct mp_tx *pmptx, PADAPTER padapter)
|
||||
{
|
||||
@@ -1757,11 +1755,9 @@ void SetPacketTx(PADAPTER padapter)
|
||||
rtw_mfree(pmp_priv->TXradomBuffer, 4096);
|
||||
|
||||
/* 3 6. start thread */
|
||||
#ifdef PLATFORM_LINUX
|
||||
pmp_priv->tx.PktTxThread = kthread_run(mp_xmit_packet_thread, pmp_priv, "RTW_MP_THREAD");
|
||||
if (IS_ERR(pmp_priv->tx.PktTxThread))
|
||||
RTW_INFO("Create PktTx Thread Fail !!!!!\n");
|
||||
#endif
|
||||
|
||||
Rtw_MPSetMacTxEDCA(padapter);
|
||||
exit:
|
||||
@@ -1909,11 +1905,9 @@ u32 mp_query_psd(PADAPTER pAdapter, u8 *data)
|
||||
u32 psd_data = 0;
|
||||
|
||||
|
||||
#ifdef PLATFORM_LINUX
|
||||
if (!netif_running(pAdapter->pnetdev)) {
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (check_fwstate(&pAdapter->mlmepriv, WIFI_MP_STATE) == _FALSE) {
|
||||
return 0;
|
||||
|
||||
@@ -2325,11 +2325,9 @@ NDIS_STATUS oid_rt_set_power_down_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
u8 bpwrup;
|
||||
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
|
||||
#ifdef PLATFORM_LINUX
|
||||
#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
|
||||
PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
if (poid_par_priv->type_of_oid != SET_OID) {
|
||||
@@ -2342,10 +2340,8 @@ NDIS_STATUS oid_rt_set_power_down_hdl(struct oid_par_priv *poid_par_priv)
|
||||
|
||||
bpwrup = *(u8 *)poid_par_priv->information_buf;
|
||||
/* CALL the power_down function */
|
||||
#ifdef PLATFORM_LINUX
|
||||
#if defined(CONFIG_RTL8712) /* Linux MP insmod unknown symbol */
|
||||
dev_power_down(padapter, bpwrup);
|
||||
#endif
|
||||
#endif
|
||||
_irqlevel_changed_(&oldirql, RAISE);
|
||||
|
||||
|
||||
@@ -2400,7 +2400,6 @@ exit:
|
||||
|
||||
|
||||
#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
|
||||
#ifdef PLATFORM_LINUX
|
||||
static void recvframe_expand_pkt(
|
||||
PADAPTER padapter,
|
||||
union recv_frame *prframe)
|
||||
@@ -2456,7 +2455,6 @@ static void recvframe_expand_pkt(
|
||||
#else
|
||||
#warning "recvframe_expand_pkt not implement, defrag may crash system"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* perform defrag */
|
||||
union recv_frame *recvframe_defrag(_adapter *adapter, _queue *defrag_q);
|
||||
|
||||
+2
-2
@@ -264,7 +264,7 @@ void sreset_stop_adapter(_adapter *padapter)
|
||||
rtw_cancel_all_timer(padapter);
|
||||
|
||||
/* TODO: OS and HCI independent */
|
||||
#if defined(PLATFORM_LINUX) && defined(CONFIG_USB_HCI)
|
||||
#if defined(CONFIG_USB_HCI)
|
||||
tasklet_kill(&pxmitpriv->xmit_tasklet);
|
||||
#endif
|
||||
|
||||
@@ -292,7 +292,7 @@ void sreset_start_adapter(_adapter *padapter)
|
||||
sreset_restore_network_status(padapter);
|
||||
|
||||
/* TODO: OS and HCI independent */
|
||||
#if defined(PLATFORM_LINUX) && defined(CONFIG_USB_HCI)
|
||||
#if defined(CONFIG_USB_HCI)
|
||||
tasklet_hi_schedule(&pxmitpriv->xmit_tasklet);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -4966,9 +4966,7 @@ void rtw_sctx_init(struct submit_ctx *sctx, int timeout_ms)
|
||||
{
|
||||
sctx->timeout_ms = timeout_ms;
|
||||
sctx->submit_time = rtw_get_current_time();
|
||||
#ifdef PLATFORM_LINUX /* TODO: add condition wating interface for other os */
|
||||
init_completion(&sctx->done);
|
||||
#endif
|
||||
sctx->status = RTW_SCTX_SUBMITTED;
|
||||
}
|
||||
|
||||
@@ -4978,7 +4976,6 @@ int rtw_sctx_wait(struct submit_ctx *sctx, const char *msg)
|
||||
unsigned long expire;
|
||||
int status = 0;
|
||||
|
||||
#ifdef PLATFORM_LINUX
|
||||
expire = sctx->timeout_ms ? msecs_to_jiffies(sctx->timeout_ms) : MAX_SCHEDULE_TIMEOUT;
|
||||
if (!wait_for_completion_timeout(&sctx->done, expire)) {
|
||||
/* timeout, do something?? */
|
||||
@@ -4986,7 +4983,6 @@ int rtw_sctx_wait(struct submit_ctx *sctx, const char *msg)
|
||||
RTW_INFO("%s timeout: %s\n", __func__, msg);
|
||||
} else
|
||||
status = sctx->status;
|
||||
#endif
|
||||
|
||||
if (status == RTW_SCTX_DONE_SUCCESS)
|
||||
ret = _SUCCESS;
|
||||
@@ -5015,9 +5011,7 @@ void rtw_sctx_done_err(struct submit_ctx **sctx, int status)
|
||||
if (rtw_sctx_chk_waring_status(status))
|
||||
RTW_INFO("%s status:%d\n", __func__, status);
|
||||
(*sctx)->status = status;
|
||||
#ifdef PLATFORM_LINUX
|
||||
complete(&((*sctx)->done));
|
||||
#endif
|
||||
*sctx = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user