资源简介
8192CU LINUX驱动/******************************************************************************
*
* 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
*
*
******************************************************************************/
/*
* Public General Config
*/
#define AUTOCONF_INCLUDED
#define RTL871X_MODULE_NAME "92CU"
#define DRV_NAME "rtl8192cu"
#define CONFIG_USB_HCI 1
#define CONFIG_RTL8192C 1
#define PLATFORM_LINUX 1
//#define CONFIG_IOCTL_CFG80211 1
#ifdef CONFIG_IOCTL_CFG80211
#define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER
//#define CONFIG_DEBUG_CFG80211 1
#endif
/*
* Internal General Config
*/
//#define CONFIG_PWRCTRL
//#define CONFIG_H2CLBK
#define CONFIG_EMBEDDED_FWIMG 1
//#define CONFIG_FILE_FWIMG
#ifdef CONFIG_WAKE_ON_WLAN
#define CONFIG_WOWLAN 1
#endif //CONFIG_WAKE_ON_WLAN
#define CONFIG_R871X_TEST 1
#define CONFIG_80211N_HT 1
#define CONFIG_RECV_REORDERING_CTRL 1
//#define CONFIG_TCP_CSUM_OFFLOAD_RX 1
//#define CONFIG_DRVEXT_MODULE 1
#ifndef CONFIG_MP_INCLUDED
#define CONFIG_IPS 1
#ifdef CONFIG_IPS
//#define CONFIG_IPS_LEVEL_2 1 //enable this to set default IPS mode to IPS_LEVEL_2
#endif
#define SUPPORT_HW_RFOFF_DETECTED 1
#define CONFIG_LPS 1
#define CONFIG_BT_COEXIST 1
//befor link
#define CONFIG_ANTENNA_D
代码片段和文件信息
/******************************************************************************
*
* 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 _RTW_BR_EXT_C_
#ifdef __KERNEL__
#include
#include
#include
#include
#include
#include
#endif
#if 1 // rtw_wifi_driver
#include
#include
#include “rtw_br_ext.h“
#else // rtw_wifi_driver
#include “./8192cd_cfg.h“
#ifndef __KERNEL__
#include “./sys-support.h“
#endif
#include “./8192cd.h“
#include “./8192cd_headers.h“
#include “./8192cd_br_ext.h“
#include “./8192cd_debug.h“
#endif // rtw_wifi_driver
#ifdef CL_IPV6_PASS
#ifdef __KERNEL__
#include
#include
#include
#include
#endif
#endif
#ifdef CONFIG_BR_EXT
//#define BR_EXT_DEBUG
#define NAT25_IPV4 01
#define NAT25_IPV6 02
#define NAT25_IPX 03
#define NAT25_APPLE 04
#define NAT25_PPPOE 05
#define RTL_RELAY_TAG_LEN (ETH_ALEN)
#define TAG_HDR_LEN 4
#define MAGIC_CODE 0x8186
#define MAGIC_CODE_LEN 2
#define WAIT_TIME_PPPOE 5 // waiting time for pppoe server in sec
/*-----------------------------------------------------------------
How database records network address:
0 1 2 3 4 5 6 7 8 9 10
|----|----|----|----|----|----|----|----|----|----|----|
IPv4 |type| | IP addr |
IPX |type| Net addr | Node addr |
IPX |type| Net addr |Sckt addr|
Apple |type| Network |node|
PPPoE |type| SID | AC MAC |
-----------------------------------------------------------------*/
//Find a tag in pppoe frame and return the pointer
static __inline__ unsigned char *__nat25_find_pppoe_tag(struct pppoe_hdr *ph unsigned short type)
{
unsigned char *cur_ptr *start_ptr;
unsigned short tagLen tagType;
start_ptr = cur_ptr = (unsigned char *)ph->tag;
while((cur_ptr - start_ptr) < ntohs(ph->length)) {
// prevent un-alignment access
tagType = (unsigned short)((cur_ptr[0] << 8) + cur_ptr[1]);
tagLen = (unsigned short)((cur_ptr[2] << 8) + cur_ptr[3]
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6848 2012-04-04 00:42 8192\autoconf_rtl8192c_usb_linux.h
文件 5358 2012-04-04 00:42 8192\autoconf_rtl8192d_usb_linux.h
文件 116 2012-04-04 00:42 8192\clean
文件 26231 2012-04-04 00:42 8192\core\efuse\rtw_efuse.c
文件 46300 2012-04-04 00:42 8192\core\rtw_br_ext.c
文件 63676 2012-04-04 00:42 8192\core\rtw_cmd.c
文件 18582 2012-04-04 00:42 8192\core\rtw_debug.c
文件 10183 2012-04-04 00:42 8192\core\rtw_eeprom.c
文件 33497 2012-04-04 00:42 8192\core\rtw_ieee80211.c
文件 13217 2012-04-04 00:42 8192\core\rtw_io.c
文件 7085 2012-04-04 00:42 8192\core\rtw_ioctl_query.c
文件 30770 2012-04-04 00:42 8192\core\rtw_ioctl_rtl.c
文件 44512 2012-04-04 00:42 8192\core\rtw_ioctl_set.c
文件 7630 2012-04-04 00:42 8192\core\rtw_iol.c
文件 99399 2012-04-04 00:42 8192\core\rtw_mlme.c
文件 335130 2012-04-04 00:42 8192\core\rtw_mlme_ext.c
文件 33807 2012-04-04 00:42 8192\core\rtw_mp.c
文件 88597 2012-04-04 00:42 8192\core\rtw_mp_ioctl.c
文件 99779 2012-04-04 00:42 8192\core\rtw_p2p.c
文件 30451 2012-04-04 00:42 8192\core\rtw_pwrctrl.c
文件 122399 2012-04-04 00:42 8192\core\rtw_recv.c
文件 2486 2012-04-04 00:42 8192\core\rtw_rf.c
文件 83469 2012-04-04 00:42 8192\core\rtw_security.c
文件 16997 2012-04-04 00:42 8192\core\rtw_sta_mgt.c
文件 42663 2012-04-04 00:42 8192\core\rtw_wlan_util.c
文件 115171 2012-04-04 00:42 8192\core\rtw_xmit.c
文件 2942 2012-04-04 00:42 8192\hal\hal_init.c
文件 38838 2012-04-04 00:42 8192\hal\rtl8192c\rtl8192c_cmd.c
文件 141532 2012-04-04 00:42 8192\hal\rtl8192c\rtl8192c_dm.c
文件 95518 2012-04-04 00:42 8192\hal\rtl8192c\rtl8192c_hal_init.c
............此处省略164个文件信息
- 上一篇:EDID 生成器
- 下一篇:arcgis制图符号库,st
yle
相关资源
- Linux Device Driver Development
- 《Linux驱动程序开发》配套光盘.rar
- 华为4g模块 pcie me909s-821 linux驱动
- 官方EC20 Linux驱动源码 GObinet +移植手册
- Realtek瑞昱 rtl8188cus linux驱动
- 华为4G模块Linux驱动
- RTL8188E的Linux驱动源码+移植调试步骤记
- GEC210 Linux驱动源码
- xilinx的fpga+pcie数据采集卡,包括linu
- LINUX设备驱动程序开发pdf+源码
- EPD(EINK)linux驱动EPD Driver for linux k
- i3-2120-华硕主板P8H61-MLX Plus-GTX650-RTL8
- linux设备驱动开发详解
- Linux设备驱动开发详解4.0内核(非扫描
- ME909S-821 Linux驱动及说明
- Linux设备驱动开发详解:基于最新的
- LINUX设备驱动程序 第3版 高清PDF 中文
- 嵌入式linux驱动程序设计从入门到精通
- I.MX6U嵌入式Linux驱动开发指南V1.0.pdf
- Linux驱动学习总结
- 56706-Linux驱动程序开发第2版源码
- Linux 下的exfat文件系统驱动,内核版本
- linux驱动编写ppt
- NI采集卡 linux驱动
- 电量检测芯片max17055linux驱动
- OV5648摄像头linux驱动代码
- Linux嵌入式驱动开发视频(麦可网)
- linux设备驱动详解视频宋宝华百度网盘
- 英特尔集成显卡及核心显卡Intel(R)
- 嵌入式Linux设备驱动开发笔记--赖永诚
评论
共有 条评论