mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Remove some unused files and remove code for platforms other than Linux in os_dep/
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
038e7c215b
commit
010390f8d0
14 changed files with 9 additions and 1522 deletions
|
@ -22,13 +22,6 @@
|
|||
#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
|
||||
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("Realtek Wireless Lan Driver");
|
||||
MODULE_AUTHOR("Realtek Semiconductor Corp.");
|
||||
|
@ -38,8 +31,6 @@ MODULE_VERSION(DRIVERVERSION);
|
|||
int rtw_chip_version = 0x00;
|
||||
int rtw_rfintfs = HWPI;
|
||||
int rtw_lbkmode = 0;/* RTL8712_AIR_TRX; */
|
||||
|
||||
|
||||
int rtw_network_mode = Ndis802_11IBSS;/* Ndis802_11Infrastructure; */ /* infra, ad-hoc, auto */
|
||||
/* NDIS_802_11_SSID ssid; */
|
||||
int rtw_channel = 1;/* ad-hoc support requirement */
|
||||
|
@ -303,11 +294,7 @@ char *ifname = "wlan%d";
|
|||
module_param(ifname, charp, 0644);
|
||||
MODULE_PARM_DESC(ifname, "The default name to allocate for first interface");
|
||||
|
||||
#ifdef CONFIG_PLATFORM_ANDROID
|
||||
char *if2name = "p2p%d";
|
||||
#else /* CONFIG_PLATFORM_ANDROID */
|
||||
char *if2name = "wlan%d";
|
||||
#endif /* CONFIG_PLATFORM_ANDROID */
|
||||
char *if2name = "wlan%d";
|
||||
module_param(if2name, charp, 0644);
|
||||
MODULE_PARM_DESC(if2name, "The default name to allocate for second interface");
|
||||
|
||||
|
@ -1818,9 +1805,6 @@ struct dvobj_priv *devobj_init(void)
|
|||
rtw_macid_ctl_init(&pdvobj->macid_ctl);
|
||||
spin_lock_init(&pdvobj->cam_ctl.lock);
|
||||
_rtw_mutex_init(&pdvobj->cam_ctl.sec_cam_access_mutex);
|
||||
#if defined(RTK_129X_PLATFORM) && defined(CONFIG_PCI_HCI)
|
||||
spin_lock_init(&pdvobj->io_reg_lock);
|
||||
#endif
|
||||
#ifdef CONFIG_MBSSID_CAM
|
||||
rtw_mbid_cam_init(pdvobj);
|
||||
#endif
|
||||
|
@ -1886,9 +1870,6 @@ void devobj_deinit(struct dvobj_priv *pdvobj)
|
|||
_rtw_spinlock_free(&pdvobj->cam_ctl.lock);
|
||||
_rtw_mutex_free(&pdvobj->cam_ctl.sec_cam_access_mutex);
|
||||
|
||||
#if defined(RTK_129X_PLATFORM) && defined(CONFIG_PCI_HCI)
|
||||
_rtw_spinlock_free(&pdvobj->io_reg_lock);
|
||||
#endif
|
||||
#ifdef CONFIG_MBSSID_CAM
|
||||
rtw_mbid_cam_deinit(pdvobj);
|
||||
#endif
|
||||
|
|
|
@ -105,22 +105,6 @@ int rtw_os_alloc_recvframe(_adapter *padapter, union recv_frame *precvframe, u8
|
|||
_rtw_memcpy(pkt_copy->data, pdata, skb_len);
|
||||
precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pkt_copy->data;
|
||||
} else {
|
||||
#if 0
|
||||
{
|
||||
rtw_free_recvframe(precvframe_if2, &precvpriv->free_recv_queue);
|
||||
rtw_enqueue_recvbuf_to_head(precvbuf, &precvpriv->recv_buf_pending_queue);
|
||||
|
||||
/* The case of can't allocate skb is serious and may never be recovered,
|
||||
once bDriverStopped is enable, this task should be stopped.*/
|
||||
if (!rtw_is_drv_stopped(secondary_padapter))
|
||||
#ifdef PLATFORM_LINUX
|
||||
tasklet_schedule(&precvpriv->recv_tasklet);
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
|
||||
RTW_INFO("%s:can not allocate memory for skb copy\n", __func__);
|
||||
|
||||
|
@ -655,12 +639,6 @@ static void rtw_os_ksocket_send(_adapter *padapter, union recv_frame *precv_fram
|
|||
|
||||
RTW_INFO("eth, RC-end\n");
|
||||
|
||||
#if 0
|
||||
/* send_sz = ksocket_send(padapter->ksock_send, &padapter->kaddr_send, (skb->data+ETH_HLEN+2), len); */
|
||||
rtw_recv_ksocket_send_cmd(padapter, (skb->data + ETH_HLEN + 2), len);
|
||||
|
||||
/* RTW_INFO("ksocket_send size=%d\n", send_sz); */
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue