diff options
Diffstat (limited to 'drivers/net/wireless/rtl8192ce/hal/rtl8192c/pci/rtl8192ce_recv.c')
-rwxr-xr-x | drivers/net/wireless/rtl8192ce/hal/rtl8192c/pci/rtl8192ce_recv.c | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtl8192ce/hal/rtl8192c/pci/rtl8192ce_recv.c b/drivers/net/wireless/rtl8192ce/hal/rtl8192c/pci/rtl8192ce_recv.c new file mode 100755 index 000000000000..6e2326453a02 --- /dev/null +++ b/drivers/net/wireless/rtl8192ce/hal/rtl8192c/pci/rtl8192ce_recv.c @@ -0,0 +1,75 @@ +/****************************************************************************** + * + * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA + * + * + ******************************************************************************/ +#define _RTL8192CE_RECV_C_ +#include <drv_conf.h> +#include <osdep_service.h> +#include <drv_types.h> +#include <recv_osdep.h> +#include <mlme_osdep.h> +#include <ip.h> +#include <if_ether.h> +#include <ethernet.h> + +#include <pci_ops.h> + +#if defined (PLATFORM_LINUX) && defined (PLATFORM_WINDOWS) + +#error "Shall be Linux or Windows, but not both!\n" + +#endif + +#include <wifi.h> +#include <circ_buf.h> + +#include <rtl8192c_hal.h> + + +s32 rtl8192ce_init_recv_priv(_adapter * padapter) +{ + struct recv_priv *precvpriv = &padapter->recvpriv; + s32 ret = _SUCCESS; + +_func_enter_; + +#ifdef PLATFORM_LINUX + tasklet_init(&precvpriv->recv_tasklet, + (void(*)(unsigned long))rtl8192ce_recv_tasklet, + (unsigned long)padapter); + + tasklet_init(&precvpriv->irq_prepare_beacon_tasklet, + (void(*)(unsigned long))rtl8192ce_prepare_bcn_tasklet, + (unsigned long)padapter); +#endif + +_func_exit_; + + return ret; +} + +void rtl8192ce_free_recv_priv(_adapter * padapter) +{ + //struct recv_priv *precvpriv = &padapter->recvpriv; + +_func_enter_; + +_func_exit_; +} + + |