mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Convert typedef for _list to struct list_head
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
6717ae7e4f
commit
3d755766c9
23 changed files with 103 additions and 154 deletions
|
@ -296,7 +296,7 @@ struct ieee_ibss_seq {
|
|||
u16 seq_num;
|
||||
u16 frag_num;
|
||||
unsigned long packet_time;
|
||||
_list list;
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
struct rtw_ieee80211_hdr {
|
||||
|
|
|
@ -74,7 +74,6 @@
|
|||
spinlock_t lock;
|
||||
};
|
||||
|
||||
typedef struct list_head _list;
|
||||
typedef struct net_device * _nic_hdl;
|
||||
|
||||
#define thread_exit() complete_and_exit(NULL, 0)
|
||||
|
@ -110,12 +109,12 @@ static inline unsigned char *skb_end_pointer(const struct sk_buff *skb)
|
|||
}
|
||||
#endif
|
||||
|
||||
__inline static _list *get_next(_list *list)
|
||||
__inline static struct list_head *get_next(struct list_head *list)
|
||||
{
|
||||
return list->next;
|
||||
}
|
||||
|
||||
__inline static _list *get_list_head(struct __queue *queue)
|
||||
__inline static struct list_head *get_list_head(struct __queue *queue)
|
||||
{
|
||||
return (&(queue->queue));
|
||||
}
|
||||
|
@ -176,7 +175,7 @@ __inline static void _exit_critical_mutex(struct mutex *pmutex, unsigned long *p
|
|||
#endif
|
||||
}
|
||||
|
||||
__inline static void rtw_list_delete(_list *plist)
|
||||
__inline static void rtw_list_delete(struct list_head *plist)
|
||||
{
|
||||
list_del_init(plist);
|
||||
}
|
||||
|
@ -365,11 +364,11 @@ extern void _rtw_memcpy(void* dec, void* sour, u32 sz);
|
|||
extern int _rtw_memcmp(void *dst, void *src, u32 sz);
|
||||
extern void _rtw_memset(void *pbuf, int c, u32 sz);
|
||||
|
||||
extern void _rtw_init_listhead(_list *list);
|
||||
extern u32 rtw_is_list_empty(_list *phead);
|
||||
extern void rtw_list_insert_head(_list *plist, _list *phead);
|
||||
extern void rtw_list_insert_tail(_list *plist, _list *phead);
|
||||
extern void rtw_list_delete(_list *plist);
|
||||
extern void _rtw_init_listhead(struct list_head *list);
|
||||
extern u32 rtw_is_list_empty(struct list_head *phead);
|
||||
extern void rtw_list_insert_head(struct list_head *plist, struct list_head *phead);
|
||||
extern void rtw_list_insert_tail(struct list_head *plist, struct list_head *phead);
|
||||
extern void rtw_list_delete(struct list_head *plist);
|
||||
|
||||
extern void _rtw_init_sema(struct semaphore *sema, int init_val);
|
||||
extern void _rtw_free_sema(struct semaphore *sema);
|
||||
|
@ -382,7 +381,7 @@ extern void _rtw_spinlock_free(spinlock_t *plock);
|
|||
|
||||
extern void _rtw_init_queue(struct __queue *pqueue);
|
||||
extern u32 _rtw_queue_empty(struct __queue *pqueue);
|
||||
extern u32 rtw_end_of_queue_search(_list *queue, _list *pelement);
|
||||
extern u32 rtw_end_of_queue_search(struct list_head *queue, struct list_head *pelement);
|
||||
|
||||
extern u32 rtw_get_current_time(void);
|
||||
extern u32 rtw_systime_to_ms(u32 systime);
|
||||
|
|
|
@ -46,7 +46,7 @@ struct cmd_obj {
|
|||
u32 cmdsz;
|
||||
u8 *rsp;
|
||||
u32 rspsz;
|
||||
_list list;
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
struct cmd_priv {
|
||||
|
|
|
@ -148,7 +148,7 @@ struct _io_ops {
|
|||
};
|
||||
|
||||
struct io_req {
|
||||
_list list;
|
||||
struct list_head list;
|
||||
u32 addr;
|
||||
volatile u32 val;
|
||||
u32 command;
|
||||
|
@ -290,9 +290,9 @@ Below is the data structure used by _io_handler
|
|||
|
||||
struct io_queue {
|
||||
spinlock_t lock;
|
||||
_list free_ioreqs;
|
||||
_list pending; //The io_req list that will be served in the single protocol read/write.
|
||||
_list processing;
|
||||
struct list_head free_ioreqs;
|
||||
struct list_head pending; //The io_req list that will be served in the single protocol read/write.
|
||||
struct list_head processing;
|
||||
u8 *free_ioreqs_buf; // 4-byte aligned
|
||||
u8 *pallocated_free_ioreqs_buf;
|
||||
struct intf_hdl intf;
|
||||
|
|
|
@ -299,7 +299,7 @@ struct mlme_priv {
|
|||
u8 *nic_hdl;
|
||||
|
||||
u8 not_indic_disco;
|
||||
_list *pscanned;
|
||||
struct list_head *pscanned;
|
||||
struct __queue free_bss_pool;
|
||||
struct __queue scanned_queue;
|
||||
u8 *free_bss_buf;
|
||||
|
|
|
@ -105,7 +105,7 @@ typedef enum _ANTENNA_PATH{
|
|||
|
||||
struct mp_xmit_frame
|
||||
{
|
||||
_list list;
|
||||
struct list_head list;
|
||||
|
||||
struct pkt_attrib attrib;
|
||||
|
||||
|
|
|
@ -252,7 +252,7 @@ struct sta_recv_priv {
|
|||
|
||||
struct recv_buf
|
||||
{
|
||||
_list list;
|
||||
struct list_head list;
|
||||
|
||||
spinlock_t recvbuf_lock;
|
||||
|
||||
|
@ -296,7 +296,7 @@ struct recv_buf
|
|||
*/
|
||||
struct recv_frame_hdr
|
||||
{
|
||||
_list list;
|
||||
struct list_head list;
|
||||
struct sk_buff *pkt;
|
||||
struct sk_buff *pkt_newalloc;
|
||||
|
||||
|
@ -327,7 +327,7 @@ struct recv_frame_hdr
|
|||
union recv_frame{
|
||||
|
||||
union{
|
||||
_list list;
|
||||
struct list_head list;
|
||||
struct recv_frame_hdr hdr;
|
||||
uint mem[RECVFRAME_HDR_ALIGN>>2];
|
||||
}u;
|
||||
|
|
|
@ -207,14 +207,10 @@ void rtw_sctx_done(struct submit_ctx **sctx);
|
|||
|
||||
struct xmit_buf
|
||||
{
|
||||
_list list;
|
||||
|
||||
struct list_head list;
|
||||
_adapter *padapter;
|
||||
|
||||
u8 *pallocated_buf;
|
||||
|
||||
u8 *pbuf;
|
||||
|
||||
void *priv_data;
|
||||
|
||||
u16 ext_tag; // 0: Normal xmitbuf, 1: extension xmitbuf.
|
||||
|
@ -231,7 +227,7 @@ struct xmit_buf
|
|||
|
||||
struct xmit_frame
|
||||
{
|
||||
_list list;
|
||||
struct list_head list;
|
||||
struct pkt_attrib attrib;
|
||||
struct sk_buff *pkt;
|
||||
int frame_tag;
|
||||
|
@ -245,7 +241,7 @@ struct xmit_frame
|
|||
};
|
||||
|
||||
struct tx_servq {
|
||||
_list tx_pending;
|
||||
struct list_head tx_pending;
|
||||
struct __queue sta_pending;
|
||||
int qcnt;
|
||||
};
|
||||
|
@ -263,8 +259,8 @@ struct sta_xmit_priv
|
|||
struct tx_servq bk_q; //priority == 1,2
|
||||
struct tx_servq vi_q; //priority == 4,5
|
||||
struct tx_servq vo_q; //priority == 6,7
|
||||
_list legacy_dz;
|
||||
_list apsd;
|
||||
struct list_head legacy_dz;
|
||||
struct list_head apsd;
|
||||
|
||||
u16 txseq_tid[16];
|
||||
};
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
//if mode ==0, then the sta is allowed once the addr is hit.
|
||||
//if mode ==1, then the sta is rejected once the addr is non-hit.
|
||||
struct rtw_wlan_acl_node {
|
||||
_list list;
|
||||
struct list_head list;
|
||||
u8 addr[ETH_ALEN];
|
||||
u8 valid;
|
||||
};
|
||||
|
@ -87,8 +87,8 @@ struct stainfo_stats {
|
|||
struct sta_info {
|
||||
|
||||
spinlock_t lock;
|
||||
_list list; //free_sta_queue
|
||||
_list hash_list; //sta_hash
|
||||
struct list_head list; //free_sta_queue
|
||||
struct list_head hash_list; //sta_hash
|
||||
|
||||
struct sta_xmit_priv sta_xmitpriv;
|
||||
struct sta_recv_priv sta_recvpriv;
|
||||
|
@ -151,8 +151,8 @@ struct sta_info {
|
|||
|
||||
#ifdef CONFIG_AP_MODE
|
||||
|
||||
_list asoc_list;
|
||||
_list auth_list;
|
||||
struct list_head asoc_list;
|
||||
struct list_head auth_list;
|
||||
|
||||
unsigned int expire_to;
|
||||
unsigned int auth_seq;
|
||||
|
@ -337,7 +337,7 @@ struct sta_priv {
|
|||
struct __queue free_sta_queue;
|
||||
|
||||
spinlock_t sta_hash_lock;
|
||||
_list sta_hash[NUM_STA];
|
||||
struct list_head sta_hash[NUM_STA];
|
||||
int asoc_sta_count;
|
||||
struct __queue sleep_q;
|
||||
struct __queue wakeup_q;
|
||||
|
@ -346,8 +346,8 @@ struct sta_priv {
|
|||
|
||||
|
||||
#ifdef CONFIG_AP_MODE
|
||||
_list asoc_list;
|
||||
_list auth_list;
|
||||
struct list_head asoc_list;
|
||||
struct list_head auth_list;
|
||||
spinlock_t asoc_list_lock;
|
||||
spinlock_t auth_list_lock;
|
||||
u8 asoc_list_cnt;
|
||||
|
|
|
@ -274,7 +274,7 @@ static inline uint get_wlan_bssid_ex_sz(struct wlan_bssid_ex *bss)
|
|||
}
|
||||
|
||||
struct wlan_network {
|
||||
_list list;
|
||||
struct list_head list;
|
||||
int network_type; //refer to ieee80211.h for WIRELESS_11A/B/G
|
||||
int fixed; // set to fixed when not to be removed as site-surveying
|
||||
unsigned long last_scanned; //timestamp for the network
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue