rtl8188eu: Convert typedef for _list to struct list_head

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-25 09:49:25 -05:00
parent 6717ae7e4f
commit 3d755766c9
23 changed files with 103 additions and 154 deletions

View file

@ -1408,7 +1408,7 @@ static int rtw_wx_set_wap(struct net_device *dev,
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
struct sockaddr *temp = (struct sockaddr *)awrq;
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
_list *phead;
struct list_head *phead;
u8 *dst_bssid, *src_bssid;
struct __queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
@ -1757,7 +1757,7 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a,
union iwreq_data *wrqu, char *extra)
{
unsigned long irqL;
_list *plist, *phead;
struct list_head *plist, *phead;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct __queue *queue = &(pmlmepriv->scanned_queue);
@ -1860,7 +1860,7 @@ static int rtw_wx_set_essid(struct net_device *dev,
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct __queue *queue = &pmlmepriv->scanned_queue;
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
_list *phead;
struct list_head *phead;
s8 status = true;
struct wlan_network *pnetwork = NULL;
enum ndis_802_11_auth_mode authmode;
@ -3120,7 +3120,7 @@ static int rtw_get_ap_info(struct net_device *dev,
int bssid_match, ret = 0;
u32 cnt=0, wpa_ielen;
unsigned long irqL;
_list *plist, *phead;
struct list_head *plist, *phead;
unsigned char *pbuf;
u8 bssid[ETH_ALEN];
char data[32];
@ -3768,7 +3768,7 @@ static int rtw_p2p_get_wps_configmethod(struct net_device *dev,
u8 peerMACStr[ 17 ] = { 0x00 };
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
unsigned long irqL;
_list *plist, *phead;
struct list_head *plist, *phead;
struct __queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
u8 blnMatch = 0;
@ -3848,7 +3848,7 @@ static int rtw_p2p_get_go_device_address(struct net_device *dev,
u8 peerMACStr[ 17 ] = { 0x00 };
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
unsigned long irqL;
_list *plist, *phead;
struct list_head *plist, *phead;
struct __queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
u8 blnMatch = 0;
@ -3956,7 +3956,7 @@ static int rtw_p2p_get_device_type(struct net_device *dev,
u8 peerMACStr[ 17 ] = { 0x00 };
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
unsigned long irqL;
_list *plist, *phead;
struct list_head *plist, *phead;
struct __queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
u8 blnMatch = 0;
@ -4047,7 +4047,7 @@ static int rtw_p2p_get_device_name(struct net_device *dev,
u8 peerMACStr[ 17 ] = { 0x00 };
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
unsigned long irqL;
_list *plist, *phead;
struct list_head *plist, *phead;
struct __queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
u8 blnMatch = 0;
@ -4133,7 +4133,7 @@ static int rtw_p2p_get_invitation_procedure(struct net_device *dev,
u8 peerMACStr[ 17 ] = { 0x00 };
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
unsigned long irqL;
_list *plist, *phead;
struct list_head *plist, *phead;
struct __queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
u8 blnMatch = 0;
@ -4234,7 +4234,7 @@ static int rtw_p2p_connect(struct net_device *dev,
u8 peerMACStr[ ETH_ALEN * 2 ] = { 0x00 };
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
unsigned long irqL;
_list *plist, *phead;
struct list_head *plist, *phead;
struct __queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
uint uintPeerChannel = 0;
@ -4331,7 +4331,7 @@ static int rtw_p2p_invite_req(struct net_device *dev,
int jj,kk;
u8 peerMACStr[ ETH_ALEN * 2 ] = { 0x00 };
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
_list *plist, *phead;
struct list_head *plist, *phead;
struct __queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
uint uintPeerChannel = 0;
@ -4470,7 +4470,7 @@ static int rtw_p2p_set_persistent(struct net_device *dev,
int jj,kk;
u8 peerMACStr[ ETH_ALEN * 2 ] = { 0x00 };
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
_list *plist, *phead;
struct list_head *plist, *phead;
struct __queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
uint uintPeerChannel = 0;
@ -4525,7 +4525,7 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
int jj,kk;
u8 peerMACStr[ ETH_ALEN * 2 ] = { 0x00 };
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
_list *plist, *phead;
struct list_head *plist, *phead;
struct __queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
uint uintPeerChannel = 0;
@ -5391,7 +5391,7 @@ static int rtw_dbg_port(struct net_device *dev,
case 0x09:
{
int i, j;
_list *plist, *phead;
struct list_head *plist, *phead;
struct recv_reorder_ctrl *preorder_ctrl;
#ifdef CONFIG_AP_MODE
@ -6338,19 +6338,13 @@ static int rtw_set_beacon(struct net_device *dev, struct ieee_param *param, int
else
ret = -EINVAL;
return ret;
}
static int rtw_hostapd_sta_flush(struct net_device *dev)
{
//unsigned long irqL;
//_list *phead, *plist;
int ret=0;
//struct sta_info *psta = NULL;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
//struct sta_priv *pstapriv = &padapter->stapriv;
DBG_88E("%s\n", __func__);
@ -6359,7 +6353,6 @@ static int rtw_hostapd_sta_flush(struct net_device *dev)
ret = rtw_sta_flush(padapter);
return ret;
}
static int rtw_add_sta(struct net_device *dev, struct ieee_param *param)

View file

@ -145,7 +145,7 @@ void _rtw_memset(void *pbuf, int c, u32 sz)
memset(pbuf, c, sz);
}
void _rtw_init_listhead(_list *list)
void _rtw_init_listhead(struct list_head *list)
{
INIT_LIST_HEAD(list);
}
@ -155,7 +155,7 @@ For the following list_xxx operations,
caller must guarantee the atomic context.
Otherwise, there will be racing condition.
*/
u32 rtw_is_list_empty(_list *phead)
u32 rtw_is_list_empty(struct list_head *phead)
{
if (list_empty(phead))
return true;
@ -163,12 +163,12 @@ u32 rtw_is_list_empty(_list *phead)
return false;
}
void rtw_list_insert_head(_list *plist, _list *phead)
void rtw_list_insert_head(struct list_head *plist, struct list_head *phead)
{
list_add(plist, phead);
}
void rtw_list_insert_tail(_list *plist, _list *phead)
void rtw_list_insert_tail(struct list_head *plist, struct list_head *phead)
{
list_add_tail(plist, phead);
}
@ -235,7 +235,7 @@ u32 _rtw_queue_empty(struct __queue *pqueue)
return rtw_is_list_empty(&(pqueue->queue));
}
u32 rtw_end_of_queue_search(_list *head, _list *plist)
u32 rtw_end_of_queue_search(struct list_head *head, struct list_head *plist)
{
if (head == plist)
return true;

View file

@ -226,7 +226,7 @@ static int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb)
struct sta_priv *pstapriv = &padapter->stapriv;
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
unsigned long irqL;
_list *phead, *plist;
struct list_head *phead, *plist;
struct sk_buff *newskb;
struct sta_info *psta = NULL;
s32 res;