mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 22:13:41 +00:00
rtl8188eu: Convert typedef for _nic_hdl to struct net_device *
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
3d755766c9
commit
ee237545ff
7 changed files with 9 additions and 11 deletions
|
@ -301,11 +301,11 @@ struct _ADAPTER{
|
|||
void *recvThread;
|
||||
void (*intf_start)(_adapter * adapter);
|
||||
void (*intf_stop)(_adapter * adapter);
|
||||
_nic_hdl pnetdev;
|
||||
struct net_device *pnetdev;
|
||||
|
||||
// used by rtw_rereg_nd_name related function
|
||||
struct rereg_nd_name_data {
|
||||
_nic_hdl old_pnetdev;
|
||||
struct net_device *old_pnetdev;
|
||||
char old_ifname[IFNAMSIZ];
|
||||
u8 old_ips_mode;
|
||||
u8 old_bRegUseLed;
|
||||
|
|
|
@ -74,8 +74,6 @@
|
|||
spinlock_t lock;
|
||||
};
|
||||
|
||||
typedef struct net_device * _nic_hdl;
|
||||
|
||||
#define thread_exit() complete_and_exit(NULL, 0)
|
||||
|
||||
typedef void timer_hdl_return;
|
||||
|
@ -180,7 +178,7 @@ __inline static void rtw_list_delete(struct list_head *plist)
|
|||
list_del_init(plist);
|
||||
}
|
||||
|
||||
__inline static void _init_timer(struct timer_list *ptimer,_nic_hdl nic_hdl,void *pfunc,void* cntx)
|
||||
__inline static void _init_timer(struct timer_list *ptimer,struct net_device *nic_hdl,void *pfunc,void* cntx)
|
||||
{
|
||||
ptimer->function = pfunc;
|
||||
ptimer->data = (unsigned long)cntx;
|
||||
|
|
|
@ -30,7 +30,7 @@ extern void _rtw_free_recv_priv (struct recv_priv *precvpriv);
|
|||
|
||||
extern s32 rtw_recv_entry(union recv_frame *precv_frame);
|
||||
extern int rtw_recv_indicatepkt(_adapter *adapter, union recv_frame *precv_frame);
|
||||
extern void rtw_recv_returnpacket(_nic_hdl cnxt, struct sk_buff *preturnedpkt);
|
||||
extern void rtw_recv_returnpacket(struct net_device *cnxt, struct sk_buff *preturnedpkt);
|
||||
|
||||
extern void rtw_hostapd_mlme_rx(_adapter *padapter, union recv_frame *precv_frame);
|
||||
extern void rtw_handle_tkip_mic_err(_adapter *padapter,u8 bgroup);
|
||||
|
|
|
@ -116,7 +116,7 @@ extern struct iw_handler_def rtw_handlers_def;
|
|||
#endif
|
||||
|
||||
extern NDIS_STATUS drv_query_info(
|
||||
_nic_hdl MiniportAdapterContext,
|
||||
struct net_device *MiniportAdapterContext,
|
||||
NDIS_OID Oid,
|
||||
void * InformationBuffer,
|
||||
u32 InformationBufferLength,
|
||||
|
@ -125,7 +125,7 @@ extern NDIS_STATUS drv_query_info(
|
|||
);
|
||||
|
||||
extern NDIS_STATUS drv_set_info(
|
||||
_nic_hdl MiniportAdapterContext,
|
||||
struct net_device *MiniportAdapterContext,
|
||||
NDIS_OID Oid,
|
||||
void * InformationBuffer,
|
||||
u32 InformationBufferLength,
|
||||
|
|
|
@ -46,7 +46,7 @@ struct sta_xmit_priv;
|
|||
struct xmit_frame;
|
||||
struct xmit_buf;
|
||||
|
||||
extern int rtw_xmit_entry(struct sk_buff *pkt, _nic_hdl pnetdev);
|
||||
extern int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev);
|
||||
|
||||
void rtw_os_xmit_schedule(_adapter *padapter);
|
||||
|
||||
|
|
|
@ -576,7 +576,7 @@ void rtw_proc_remove_one(struct net_device *dev)
|
|||
}
|
||||
#endif
|
||||
|
||||
static uint loadparam( _adapter *padapter, _nic_hdl pnetdev)
|
||||
static uint loadparam( _adapter *padapter, struct net_device *pnetdev)
|
||||
{
|
||||
|
||||
uint status = _SUCCESS;
|
||||
|
|
|
@ -273,7 +273,7 @@ static int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb)
|
|||
}
|
||||
|
||||
|
||||
int rtw_xmit_entry(struct sk_buff *pkt, _nic_hdl pnetdev)
|
||||
int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev)
|
||||
{
|
||||
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
|
||||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||
|
|
Loading…
Reference in a new issue