1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-10-19 09:01:10 +02:00

the code is dirty, I am trying to do cleanup it. (#153)

* fix the frame size is larger than 1024 bytes

* fix unused-variable warnning

* fix unused-value warnning

* fix unused-label warnning

* fix unused-function warnning

* fix uninitialized: maybe bug

* disable CONFIG_DEBUG
This commit is contained in:
Chen Minqiang
2016-10-01 10:35:44 -05:00
committed by Harshavardhana
parent 3771dc2fea
commit 070e46b9cb
66 changed files with 675 additions and 630 deletions

View File

@@ -489,7 +489,7 @@ struct dvobj_priv
};
#ifdef PLATFORM_LINUX
static struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
{
/* todo: get interface type from dvobj and the return the dev accordingly */
#ifdef RTW_DVOBJ_CHIP_HW_TYPE

View File

@@ -115,8 +115,8 @@ u16 rtw_recv_select_queue(struct sk_buff *skb);
void rtw_proc_init_one(struct net_device *dev);
void rtw_proc_remove_one(struct net_device *dev);
#else //!CONFIG_PROC_DEBUG
static void rtw_proc_init_one(struct net_device *dev){}
static void rtw_proc_remove_one(struct net_device *dev){}
static inline void rtw_proc_init_one(struct net_device *dev){}
static inline void rtw_proc_remove_one(struct net_device *dev){}
#endif //!CONFIG_PROC_DEBUG
#endif //PLATFORM_LINUX

View File

@@ -79,8 +79,8 @@ int wifi_set_power(int on, unsigned long msec);
int wifi_get_mac_addr(unsigned char *buf);
void *wifi_get_country_code(char *ccode);
#else
static int rtw_android_wifictrl_func_add(void) { return 0; }
static void rtw_android_wifictrl_func_del(void) {}
static inline int rtw_android_wifictrl_func_add(void) { return 0; }
static inline void rtw_android_wifictrl_func_del(void) {}
#endif /* defined(RTW_ENABLE_WIFI_CONTROL_FUNC) */
#endif //__RTW_ANDROID_H__

View File

@@ -24,9 +24,9 @@
#define CL_IPV6_PASS 1
#define MACADDRLEN 6
#define _DEBUG_ERR DBG_8192C
#define _DEBUG_INFO //DBG_8192C
#define _DEBUG_INFO DBG_8192C
#define DEBUG_WARN DBG_8192C
#define DEBUG_INFO //DBG_8192C
#define DEBUG_INFO DBG_8192C
#define DEBUG_ERR DBG_8192C
//#define GET_MY_HWADDR ((GET_MIB(priv))->dot11OperationEntry.hwaddr)
#define GET_MY_HWADDR(padapter) ((padapter)->eeprompriv.mac_addr)

View File

@@ -71,21 +71,21 @@
#define RX_CMD_QUEUE 1
#define RX_MAX_QUEUE 2
static u8 SNAP_ETH_TYPE_IPX[2] = {0x81, 0x37};
static const u8 SNAP_ETH_TYPE_IPX[2] = {0x81, 0x37};
static u8 SNAP_ETH_TYPE_APPLETALK_AARP[2] = {0x80, 0xf3};
static u8 SNAP_ETH_TYPE_APPLETALK_DDP[2] = {0x80, 0x9b};
static u8 SNAP_ETH_TYPE_TDLS[2] = {0x89, 0x0d};
static u8 SNAP_HDR_APPLETALK_DDP[3] = {0x08, 0x00, 0x07}; // Datagram Delivery Protocol
static const u8 SNAP_ETH_TYPE_APPLETALK_AARP[2] = {0x80, 0xf3};
static const u8 SNAP_ETH_TYPE_APPLETALK_DDP[2] = {0x80, 0x9b};
static const u8 SNAP_ETH_TYPE_TDLS[2] = {0x89, 0x0d};
static const u8 SNAP_HDR_APPLETALK_DDP[3] = {0x08, 0x00, 0x07}; // Datagram Delivery Protocol
static u8 oui_8021h[] = {0x00, 0x00, 0xf8};
static u8 oui_rfc1042[]= {0x00,0x00,0x00};
static const u8 oui_8021h[] = {0x00, 0x00, 0xf8};
static const u8 oui_rfc1042[]= {0x00,0x00,0x00};
#define MAX_SUBFRAME_COUNT 64
static u8 rtw_rfc1042_header[] =
static const u8 rtw_rfc1042_header[] =
{ 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 };
/* Bridge-Tunnel header (for EtherTypes ETH_P_AARP and ETH_P_IPX) */
static u8 rtw_bridge_tunnel_header[] =
static const u8 rtw_bridge_tunnel_header[] =
{ 0xaa, 0xaa, 0x03, 0x00, 0x00, 0xf8 };
//for Rx reordering buffer control