mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Fix a number of sparse warnings
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
96ff2341a9
commit
bf88fed9a4
33 changed files with 340 additions and 318 deletions
|
@ -1053,5 +1053,17 @@ extern int new_bcn_max;
|
|||
extern u8 REALTEK_96B_IE[];
|
||||
extern unsigned char WPA_TKIP_CIPHER[4];
|
||||
extern unsigned char RSN_TKIP_CIPHER[4];
|
||||
extern char *rtw_initmac;
|
||||
#ifdef CONFIG_TX_MCAST2UNI
|
||||
extern int rtw_mc2u_disable;
|
||||
#endif
|
||||
#ifdef CONFIG_80211N_HT
|
||||
extern int rtw_ht_enable;
|
||||
extern int rtw_bw_mode;
|
||||
extern int rtw_ampdu_enable;/* for enable tx_ampdu */
|
||||
#endif
|
||||
|
||||
int pm_netdev_open(struct net_device *pnetdev, u8 bnormal);
|
||||
void netdev_br_init(struct net_device *netdev);
|
||||
|
||||
#endif /* __HAL_DATA_H__ */
|
||||
|
|
|
@ -82,12 +82,12 @@ typedef struct _RT_8188E_FIRMWARE_HDR {
|
|||
/* 8-byte alinment required */
|
||||
|
||||
/* --- LONG WORD 0 ---- */
|
||||
u16 Signature; /* 92C0: test chip; 92C, 88C0: test chip; 88C1: MP A-cut; 92C1: MP A-cut */
|
||||
__le16 Signature; /* 92C0: test chip; 92C, 88C0: test chip; 88C1: MP A-cut; 92C1: MP A-cut */
|
||||
u8 Category; /* AP/NIC and USB/PCI */
|
||||
u8 Function; /* Reserved for different FW function indcation, for further use when driver needs to download different FW in different conditions */
|
||||
u16 Version; /* FW Version */
|
||||
__le16 Version; /* FW Version */
|
||||
u8 Subversion; /* FW Subversion, default 0x00 */
|
||||
u16 Rsvd1;
|
||||
__le16 Rsvd1;
|
||||
|
||||
|
||||
/* --- LONG WORD 1 ---- */
|
||||
|
@ -95,17 +95,17 @@ typedef struct _RT_8188E_FIRMWARE_HDR {
|
|||
u8 Date; /* Release time Date field */
|
||||
u8 Hour; /* Release time Hour field */
|
||||
u8 Minute; /* Release time Minute field */
|
||||
u16 RamCodeSize; /* The size of RAM code */
|
||||
__le16 RamCodeSize; /* The size of RAM code */
|
||||
u8 Foundry;
|
||||
u8 Rsvd2;
|
||||
|
||||
/* --- LONG WORD 2 ---- */
|
||||
u32 SvnIdx; /* The SVN entry index */
|
||||
u32 Rsvd3;
|
||||
__le32 SvnIdx; /* The SVN entry index */
|
||||
__le32 Rsvd3;
|
||||
|
||||
/* --- LONG WORD 3 ---- */
|
||||
u32 Rsvd4;
|
||||
u32 Rsvd5;
|
||||
__le32 Rsvd4;
|
||||
__le32 Rsvd5;
|
||||
} RT_8188E_FIRMWARE_HDR, *PRT_8188E_FIRMWARE_HDR;
|
||||
#endif /* download firmware related data structure */
|
||||
|
||||
|
|
|
@ -68,9 +68,7 @@ enum {
|
|||
|
||||
#ifdef CONFIG_RTW_DEBUG
|
||||
|
||||
#ifndef _OS_INTFS_C_
|
||||
extern uint rtw_drv_log_level;
|
||||
#endif
|
||||
|
||||
#if defined(_dbgdump)
|
||||
|
||||
|
|
|
@ -91,8 +91,8 @@ struct io_queue;
|
|||
|
||||
struct _io_ops {
|
||||
u8(*_read8)(struct intf_hdl *pintfhdl, u32 addr);
|
||||
__le16(*_read16)(struct intf_hdl *pintfhdl, u32 addr);
|
||||
__le32(*_read32)(struct intf_hdl *pintfhdl, u32 addr);
|
||||
u16(*_read16)(struct intf_hdl *pintfhdl, u32 addr);
|
||||
u32(*_read32)(struct intf_hdl *pintfhdl, u32 addr);
|
||||
|
||||
int (*_write8)(struct intf_hdl *pintfhdl, u32 addr, u8 val);
|
||||
int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, __le16 val);
|
||||
|
|
|
@ -159,9 +159,9 @@ struct stainfo_stats {
|
|||
struct session_tracker {
|
||||
_list list; /* session_tracker_queue */
|
||||
u32 local_naddr;
|
||||
u16 local_port;
|
||||
__be16 local_port;
|
||||
u32 remote_naddr;
|
||||
u16 remote_port;
|
||||
__be16 remote_port;
|
||||
u32 set_time;
|
||||
u8 status;
|
||||
};
|
||||
|
|
|
@ -66,8 +66,8 @@
|
|||
|
||||
#ifdef CONFIG_USB_SUPPORT_ASYNC_VDN_REQ
|
||||
int usb_async_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val);
|
||||
int usb_async_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val);
|
||||
int usb_async_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val);
|
||||
int usb_async_write16(struct intf_hdl *pintfhdl, u32 addr, __le16 val);
|
||||
int usb_async_write32(struct intf_hdl *pintfhdl, u32 addr, __le32 val);
|
||||
#endif /* CONFIG_USB_SUPPORT_ASYNC_VDN_REQ */
|
||||
|
||||
unsigned int ffaddr2pipehdl(struct dvobj_priv *pdvobj, u32 addr);
|
||||
|
@ -90,8 +90,8 @@ u8 usb_read8(struct intf_hdl *pintfhdl, u32 addr);
|
|||
u16 usb_read16(struct intf_hdl *pintfhdl, u32 addr);
|
||||
u32 usb_read32(struct intf_hdl *pintfhdl, u32 addr);
|
||||
int usb_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val);
|
||||
int usb_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val);
|
||||
int usb_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val);
|
||||
int usb_write16(struct intf_hdl *pintfhdl, u32 addr, __le16 val);
|
||||
int usb_write32(struct intf_hdl *pintfhdl, u32 addr, __le32 val);
|
||||
int usb_writeN(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata);
|
||||
u32 usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem);
|
||||
void usb_recv_tasklet(void *priv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue