staging: rtl8712: remove function get_list_head
get_list_head is an inline that returns &list->head. This patch removes this inline and directly applies &list->head where applicable. Signed-off-by: James A Shackleford <shack@linux.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
849fb0a887
commit
e99a428a1d
|
@ -58,11 +58,6 @@ struct __queue {
|
||||||
spin_lock_init(&((pqueue)->lock)); \
|
spin_lock_init(&((pqueue)->lock)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static inline struct list_head *get_list_head(struct __queue *queue)
|
|
||||||
{
|
|
||||||
return &(queue->queue);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define LIST_CONTAINOR(ptr, type, member) \
|
#define LIST_CONTAINOR(ptr, type, member) \
|
||||||
((type *)((char *)(ptr)-(SIZE_T)(&((type *)0)->member)))
|
((type *)((char *)(ptr)-(SIZE_T)(&((type *)0)->member)))
|
||||||
|
|
||||||
|
|
|
@ -146,8 +146,7 @@ int r8712_free_recvframe(union recv_frame *precvframe,
|
||||||
}
|
}
|
||||||
spin_lock_irqsave(&pfree_recv_queue->lock, irqL);
|
spin_lock_irqsave(&pfree_recv_queue->lock, irqL);
|
||||||
list_del_init(&(precvframe->u.hdr.list));
|
list_del_init(&(precvframe->u.hdr.list));
|
||||||
list_add_tail(&(precvframe->u.hdr.list),
|
list_add_tail(&(precvframe->u.hdr.list), &pfree_recv_queue->queue);
|
||||||
get_list_head(pfree_recv_queue));
|
|
||||||
if (padapter != NULL) {
|
if (padapter != NULL) {
|
||||||
if (pfree_recv_queue == &precvpriv->free_recv_queue)
|
if (pfree_recv_queue == &precvpriv->free_recv_queue)
|
||||||
precvpriv->free_recvframe_cnt++;
|
precvpriv->free_recvframe_cnt++;
|
||||||
|
@ -208,7 +207,7 @@ static union recv_frame *recvframe_defrag(struct _adapter *adapter,
|
||||||
struct __queue *pfree_recv_queue;
|
struct __queue *pfree_recv_queue;
|
||||||
|
|
||||||
pfree_recv_queue = &adapter->recvpriv.free_recv_queue;
|
pfree_recv_queue = &adapter->recvpriv.free_recv_queue;
|
||||||
phead = get_list_head(defrag_q);
|
phead = &defrag_q->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||||
list_del_init(&prframe->u.list);
|
list_del_init(&prframe->u.list);
|
||||||
|
@ -222,7 +221,7 @@ static union recv_frame *recvframe_defrag(struct _adapter *adapter,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
curfragnum++;
|
curfragnum++;
|
||||||
plist = get_list_head(defrag_q);
|
plist = &defrag_q->queue;
|
||||||
plist = plist->next;
|
plist = plist->next;
|
||||||
data = get_recvframe_data(prframe);
|
data = get_recvframe_data(prframe);
|
||||||
while (end_of_queue_search(phead, plist) == false) {
|
while (end_of_queue_search(phead, plist) == false) {
|
||||||
|
@ -296,7 +295,7 @@ union recv_frame *r8712_recvframe_chk_defrag(struct _adapter *padapter,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Then enqueue the 0~(n-1) fragment to the defrag_q */
|
/* Then enqueue the 0~(n-1) fragment to the defrag_q */
|
||||||
phead = get_list_head(pdefrag_q);
|
phead = &pdefrag_q->queue;
|
||||||
list_add_tail(&pfhdr->list, phead);
|
list_add_tail(&pfhdr->list, phead);
|
||||||
prtnframe = NULL;
|
prtnframe = NULL;
|
||||||
} else {
|
} else {
|
||||||
|
@ -311,7 +310,7 @@ union recv_frame *r8712_recvframe_chk_defrag(struct _adapter *padapter,
|
||||||
/* the last fragment frame
|
/* the last fragment frame
|
||||||
* enqueue the last fragment */
|
* enqueue the last fragment */
|
||||||
if (pdefrag_q != NULL) {
|
if (pdefrag_q != NULL) {
|
||||||
phead = get_list_head(pdefrag_q);
|
phead = &pdefrag_q->queue;
|
||||||
list_add_tail(&pfhdr->list, phead);
|
list_add_tail(&pfhdr->list, phead);
|
||||||
/*call recvframe_defrag to defrag*/
|
/*call recvframe_defrag to defrag*/
|
||||||
precv_frame = recvframe_defrag(padapter, pdefrag_q);
|
precv_frame = recvframe_defrag(padapter, pdefrag_q);
|
||||||
|
@ -499,7 +498,7 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl,
|
||||||
&preorder_ctrl->pending_recvframe_queue;
|
&preorder_ctrl->pending_recvframe_queue;
|
||||||
struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
|
struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
|
||||||
|
|
||||||
phead = get_list_head(ppending_recvframe_queue);
|
phead = &ppending_recvframe_queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
while (end_of_queue_search(phead, plist) == false) {
|
while (end_of_queue_search(phead, plist) == false) {
|
||||||
pnextrframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
pnextrframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||||
|
@ -528,7 +527,7 @@ int r8712_recv_indicatepkts_in_order(struct _adapter *padapter,
|
||||||
struct __queue *ppending_recvframe_queue =
|
struct __queue *ppending_recvframe_queue =
|
||||||
&preorder_ctrl->pending_recvframe_queue;
|
&preorder_ctrl->pending_recvframe_queue;
|
||||||
|
|
||||||
phead = get_list_head(ppending_recvframe_queue);
|
phead = &ppending_recvframe_queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
/* Handling some condition for forced indicate case.*/
|
/* Handling some condition for forced indicate case.*/
|
||||||
if (bforced == true) {
|
if (bforced == true) {
|
||||||
|
|
|
@ -166,7 +166,7 @@ static struct xmit_frame *dequeue_one_xmitframe(struct xmit_priv *pxmitpriv,
|
||||||
struct list_head *xmitframe_plist, *xmitframe_phead;
|
struct list_head *xmitframe_plist, *xmitframe_phead;
|
||||||
struct xmit_frame *pxmitframe = NULL;
|
struct xmit_frame *pxmitframe = NULL;
|
||||||
|
|
||||||
xmitframe_phead = get_list_head(pframe_queue);
|
xmitframe_phead = &pframe_queue->queue;
|
||||||
xmitframe_plist = xmitframe_phead->next;
|
xmitframe_plist = xmitframe_phead->next;
|
||||||
if ((end_of_queue_search(xmitframe_phead, xmitframe_plist)) == false) {
|
if ((end_of_queue_search(xmitframe_phead, xmitframe_plist)) == false) {
|
||||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist,
|
pxmitframe = LIST_CONTAINOR(xmitframe_plist,
|
||||||
|
@ -210,7 +210,7 @@ static struct xmit_frame *dequeue_xframe_ex(struct xmit_priv *pxmitpriv,
|
||||||
spin_lock_irqsave(&pxmitpriv->lock, irqL0);
|
spin_lock_irqsave(&pxmitpriv->lock, irqL0);
|
||||||
for (i = 0; i < entry; i++) {
|
for (i = 0; i < entry; i++) {
|
||||||
phwxmit = phwxmit_i + inx[i];
|
phwxmit = phwxmit_i + inx[i];
|
||||||
sta_phead = get_list_head(phwxmit->sta_queue);
|
sta_phead = &phwxmit->sta_queue->queue;
|
||||||
sta_plist = sta_phead->next;
|
sta_plist = sta_phead->next;
|
||||||
while ((end_of_queue_search(sta_phead, sta_plist)) == false) {
|
while ((end_of_queue_search(sta_phead, sta_plist)) == false) {
|
||||||
ptxservq = LIST_CONTAINOR(sta_plist, struct tx_servq,
|
ptxservq = LIST_CONTAINOR(sta_plist, struct tx_servq,
|
||||||
|
|
|
@ -1078,7 +1078,7 @@ static int r8711_wx_set_wap(struct net_device *dev,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
authmode = padapter->securitypriv.ndisauthtype;
|
authmode = padapter->securitypriv.ndisauthtype;
|
||||||
spin_lock_irqsave(&queue->lock, irqL);
|
spin_lock_irqsave(&queue->lock, irqL);
|
||||||
phead = get_list_head(queue);
|
phead = &queue->queue;
|
||||||
pmlmepriv->pscanned = phead->next;
|
pmlmepriv->pscanned = phead->next;
|
||||||
while (1) {
|
while (1) {
|
||||||
if (end_of_queue_search(phead, pmlmepriv->pscanned) == true)
|
if (end_of_queue_search(phead, pmlmepriv->pscanned) == true)
|
||||||
|
@ -1227,7 +1227,7 @@ static int r8711_wx_get_scan(struct net_device *dev,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
spin_lock_irqsave(&queue->lock, irqL);
|
spin_lock_irqsave(&queue->lock, irqL);
|
||||||
phead = get_list_head(queue);
|
phead = &queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
while (1) {
|
while (1) {
|
||||||
if (end_of_queue_search(phead, plist) == true)
|
if (end_of_queue_search(phead, plist) == true)
|
||||||
|
@ -1286,7 +1286,7 @@ static int r8711_wx_set_essid(struct net_device *dev,
|
||||||
ndis_ssid.SsidLength = len;
|
ndis_ssid.SsidLength = len;
|
||||||
memcpy(ndis_ssid.Ssid, extra, len);
|
memcpy(ndis_ssid.Ssid, extra, len);
|
||||||
src_ssid = ndis_ssid.Ssid;
|
src_ssid = ndis_ssid.Ssid;
|
||||||
phead = get_list_head(queue);
|
phead = &queue->queue;
|
||||||
pmlmepriv->pscanned = phead->next;
|
pmlmepriv->pscanned = phead->next;
|
||||||
while (1) {
|
while (1) {
|
||||||
if (end_of_queue_search(phead, pmlmepriv->pscanned))
|
if (end_of_queue_search(phead, pmlmepriv->pscanned))
|
||||||
|
@ -2002,7 +2002,7 @@ static int r871x_get_ap_info(struct net_device *dev,
|
||||||
} else
|
} else
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
spin_lock_irqsave(&(pmlmepriv->scanned_queue.lock), irqL);
|
spin_lock_irqsave(&(pmlmepriv->scanned_queue.lock), irqL);
|
||||||
phead = get_list_head(queue);
|
phead = &queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
while (1) {
|
while (1) {
|
||||||
if (end_of_queue_search(phead, plist) == true)
|
if (end_of_queue_search(phead, plist) == true)
|
||||||
|
|
|
@ -62,7 +62,7 @@ static u8 do_join(struct _adapter *padapter)
|
||||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||||
struct __queue *queue = &(pmlmepriv->scanned_queue);
|
struct __queue *queue = &(pmlmepriv->scanned_queue);
|
||||||
|
|
||||||
phead = get_list_head(queue);
|
phead = &queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
pmlmepriv->cur_network.join_res = -2;
|
pmlmepriv->cur_network.join_res = -2;
|
||||||
pmlmepriv->fw_state |= _FW_UNDER_LINKING;
|
pmlmepriv->fw_state |= _FW_UNDER_LINKING;
|
||||||
|
|
|
@ -133,7 +133,7 @@ static void _free_network_nolock(struct mlme_priv *pmlmepriv,
|
||||||
if (pnetwork->fixed == true)
|
if (pnetwork->fixed == true)
|
||||||
return;
|
return;
|
||||||
list_del_init(&pnetwork->list);
|
list_del_init(&pnetwork->list);
|
||||||
list_add_tail(&pnetwork->list, get_list_head(free_queue));
|
list_add_tail(&pnetwork->list, &free_queue->queue);
|
||||||
pmlmepriv->num_of_scanned--;
|
pmlmepriv->num_of_scanned--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ static struct wlan_network *_r8712_find_network(struct __queue *scanned_queue,
|
||||||
if (is_zero_ether_addr(addr))
|
if (is_zero_ether_addr(addr))
|
||||||
return NULL;
|
return NULL;
|
||||||
spin_lock_irqsave(&scanned_queue->lock, irqL);
|
spin_lock_irqsave(&scanned_queue->lock, irqL);
|
||||||
phead = get_list_head(scanned_queue);
|
phead = &scanned_queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
while (plist != phead) {
|
while (plist != phead) {
|
||||||
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
|
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
|
||||||
|
@ -174,7 +174,7 @@ static void _free_network_queue(struct _adapter *padapter)
|
||||||
struct __queue *scanned_queue = &pmlmepriv->scanned_queue;
|
struct __queue *scanned_queue = &pmlmepriv->scanned_queue;
|
||||||
|
|
||||||
spin_lock_irqsave(&scanned_queue->lock, irqL);
|
spin_lock_irqsave(&scanned_queue->lock, irqL);
|
||||||
phead = get_list_head(scanned_queue);
|
phead = &scanned_queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
while (end_of_queue_search(phead, plist) == false) {
|
while (end_of_queue_search(phead, plist) == false) {
|
||||||
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
|
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
|
||||||
|
@ -315,7 +315,7 @@ struct wlan_network *r8712_get_oldest_wlan_network(
|
||||||
struct wlan_network *pwlan = NULL;
|
struct wlan_network *pwlan = NULL;
|
||||||
struct wlan_network *oldest = NULL;
|
struct wlan_network *oldest = NULL;
|
||||||
|
|
||||||
phead = get_list_head(scanned_queue);
|
phead = &scanned_queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
while (1) {
|
while (1) {
|
||||||
if (end_of_queue_search(phead, plist) == true)
|
if (end_of_queue_search(phead, plist) == true)
|
||||||
|
@ -398,7 +398,7 @@ static void update_scanned_network(struct _adapter *adapter,
|
||||||
struct wlan_network *pnetwork = NULL;
|
struct wlan_network *pnetwork = NULL;
|
||||||
struct wlan_network *oldest = NULL;
|
struct wlan_network *oldest = NULL;
|
||||||
|
|
||||||
phead = get_list_head(queue);
|
phead = &queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
@ -1138,7 +1138,7 @@ int r8712_select_and_join_from_scan(struct mlme_priv *pmlmepriv)
|
||||||
|
|
||||||
adapter = (struct _adapter *)pmlmepriv->nic_hdl;
|
adapter = (struct _adapter *)pmlmepriv->nic_hdl;
|
||||||
queue = &pmlmepriv->scanned_queue;
|
queue = &pmlmepriv->scanned_queue;
|
||||||
phead = get_list_head(queue);
|
phead = &queue->queue;
|
||||||
pmlmepriv->pscanned = phead->next;
|
pmlmepriv->pscanned = phead->next;
|
||||||
while (1) {
|
while (1) {
|
||||||
if (end_of_queue_search(phead, pmlmepriv->pscanned) == true) {
|
if (end_of_queue_search(phead, pmlmepriv->pscanned) == true) {
|
||||||
|
|
|
@ -115,7 +115,7 @@ union recv_frame *r8712_alloc_recvframe(struct __queue *pfree_recv_queue)
|
||||||
if (_queue_empty(pfree_recv_queue) == true)
|
if (_queue_empty(pfree_recv_queue) == true)
|
||||||
precvframe = NULL;
|
precvframe = NULL;
|
||||||
else {
|
else {
|
||||||
phead = get_list_head(pfree_recv_queue);
|
phead = &pfree_recv_queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
precvframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
precvframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||||
list_del_init(&precvframe->u.hdr.list);
|
list_del_init(&precvframe->u.hdr.list);
|
||||||
|
@ -145,7 +145,7 @@ void r8712_free_recvframe_queue(struct __queue *pframequeue,
|
||||||
struct list_head *plist, *phead;
|
struct list_head *plist, *phead;
|
||||||
|
|
||||||
spin_lock(&pframequeue->lock);
|
spin_lock(&pframequeue->lock);
|
||||||
phead = get_list_head(pframequeue);
|
phead = &pframequeue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
while (end_of_queue_search(phead, plist) == false) {
|
while (end_of_queue_search(phead, plist) == false) {
|
||||||
precvframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
precvframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||||
|
|
|
@ -66,8 +66,7 @@ u32 _r8712_init_sta_priv(struct sta_priv *pstapriv)
|
||||||
for (i = 0; i < NUM_STA; i++) {
|
for (i = 0; i < NUM_STA; i++) {
|
||||||
_init_stainfo(psta);
|
_init_stainfo(psta);
|
||||||
INIT_LIST_HEAD(&(pstapriv->sta_hash[i]));
|
INIT_LIST_HEAD(&(pstapriv->sta_hash[i]));
|
||||||
list_add_tail(&psta->list,
|
list_add_tail(&psta->list, &pstapriv->free_sta_queue.queue);
|
||||||
get_list_head(&pstapriv->free_sta_queue));
|
|
||||||
psta++;
|
psta++;
|
||||||
}
|
}
|
||||||
INIT_LIST_HEAD(&pstapriv->asoc_list);
|
INIT_LIST_HEAD(&pstapriv->asoc_list);
|
||||||
|
@ -83,7 +82,7 @@ static void mfree_all_stainfo(struct sta_priv *pstapriv)
|
||||||
struct sta_info *psta = NULL;
|
struct sta_info *psta = NULL;
|
||||||
|
|
||||||
spin_lock_irqsave(&pstapriv->sta_hash_lock, irqL);
|
spin_lock_irqsave(&pstapriv->sta_hash_lock, irqL);
|
||||||
phead = get_list_head(&pstapriv->free_sta_queue);
|
phead = &pstapriv->free_sta_queue.queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
while ((end_of_queue_search(phead, plist)) == false) {
|
while ((end_of_queue_search(phead, plist)) == false) {
|
||||||
psta = LIST_CONTAINOR(plist, struct sta_info, list);
|
psta = LIST_CONTAINOR(plist, struct sta_info, list);
|
||||||
|
@ -208,7 +207,7 @@ void r8712_free_stainfo(struct _adapter *padapter, struct sta_info *psta)
|
||||||
}
|
}
|
||||||
spin_lock(&(pfree_sta_queue->lock));
|
spin_lock(&(pfree_sta_queue->lock));
|
||||||
/* insert into free_sta_queue; 20061114 */
|
/* insert into free_sta_queue; 20061114 */
|
||||||
list_add_tail(&psta->list, get_list_head(pfree_sta_queue));
|
list_add_tail(&psta->list, &pfree_sta_queue->queue);
|
||||||
spin_unlock(&(pfree_sta_queue->lock));
|
spin_unlock(&(pfree_sta_queue->lock));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -747,7 +747,7 @@ struct xmit_buf *r8712_alloc_xmitbuf(struct xmit_priv *pxmitpriv)
|
||||||
if (_queue_empty(pfree_xmitbuf_queue) == true)
|
if (_queue_empty(pfree_xmitbuf_queue) == true)
|
||||||
pxmitbuf = NULL;
|
pxmitbuf = NULL;
|
||||||
else {
|
else {
|
||||||
phead = get_list_head(pfree_xmitbuf_queue);
|
phead = &pfree_xmitbuf_queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
pxmitbuf = LIST_CONTAINOR(plist, struct xmit_buf, list);
|
pxmitbuf = LIST_CONTAINOR(plist, struct xmit_buf, list);
|
||||||
list_del_init(&(pxmitbuf->list));
|
list_del_init(&(pxmitbuf->list));
|
||||||
|
@ -767,7 +767,7 @@ int r8712_free_xmitbuf(struct xmit_priv *pxmitpriv, struct xmit_buf *pxmitbuf)
|
||||||
return _FAIL;
|
return _FAIL;
|
||||||
spin_lock_irqsave(&pfree_xmitbuf_queue->lock, irqL);
|
spin_lock_irqsave(&pfree_xmitbuf_queue->lock, irqL);
|
||||||
list_del_init(&pxmitbuf->list);
|
list_del_init(&pxmitbuf->list);
|
||||||
list_add_tail(&(pxmitbuf->list), get_list_head(pfree_xmitbuf_queue));
|
list_add_tail(&(pxmitbuf->list), &pfree_xmitbuf_queue->queue);
|
||||||
pxmitpriv->free_xmitbuf_cnt++;
|
pxmitpriv->free_xmitbuf_cnt++;
|
||||||
spin_unlock_irqrestore(&pfree_xmitbuf_queue->lock, irqL);
|
spin_unlock_irqrestore(&pfree_xmitbuf_queue->lock, irqL);
|
||||||
return _SUCCESS;
|
return _SUCCESS;
|
||||||
|
@ -801,7 +801,7 @@ struct xmit_frame *r8712_alloc_xmitframe(struct xmit_priv *pxmitpriv)
|
||||||
if (_queue_empty(pfree_xmit_queue) == true)
|
if (_queue_empty(pfree_xmit_queue) == true)
|
||||||
pxframe = NULL;
|
pxframe = NULL;
|
||||||
else {
|
else {
|
||||||
phead = get_list_head(pfree_xmit_queue);
|
phead = &pfree_xmit_queue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
pxframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
pxframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
||||||
list_del_init(&(pxframe->list));
|
list_del_init(&(pxframe->list));
|
||||||
|
@ -833,7 +833,7 @@ void r8712_free_xmitframe(struct xmit_priv *pxmitpriv,
|
||||||
pndis_pkt = pxmitframe->pkt;
|
pndis_pkt = pxmitframe->pkt;
|
||||||
pxmitframe->pkt = NULL;
|
pxmitframe->pkt = NULL;
|
||||||
}
|
}
|
||||||
list_add_tail(&pxmitframe->list, get_list_head(pfree_xmit_queue));
|
list_add_tail(&pxmitframe->list, &pfree_xmit_queue->queue);
|
||||||
pxmitpriv->free_xmitframe_cnt++;
|
pxmitpriv->free_xmitframe_cnt++;
|
||||||
spin_unlock_irqrestore(&pfree_xmit_queue->lock, irqL);
|
spin_unlock_irqrestore(&pfree_xmit_queue->lock, irqL);
|
||||||
if (netif_queue_stopped(padapter->pnetdev))
|
if (netif_queue_stopped(padapter->pnetdev))
|
||||||
|
@ -857,7 +857,7 @@ void r8712_free_xmitframe_queue(struct xmit_priv *pxmitpriv,
|
||||||
struct xmit_frame *pxmitframe;
|
struct xmit_frame *pxmitframe;
|
||||||
|
|
||||||
spin_lock_irqsave(&(pframequeue->lock), irqL);
|
spin_lock_irqsave(&(pframequeue->lock), irqL);
|
||||||
phead = get_list_head(pframequeue);
|
phead = &pframequeue->queue;
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
while (end_of_queue_search(phead, plist) == false) {
|
while (end_of_queue_search(phead, plist) == false) {
|
||||||
pxmitframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
pxmitframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
||||||
|
@ -940,10 +940,8 @@ sint r8712_xmit_classifier(struct _adapter *padapter,
|
||||||
psta, pattrib->priority);
|
psta, pattrib->priority);
|
||||||
spin_lock_irqsave(&pstapending->lock, irqL0);
|
spin_lock_irqsave(&pstapending->lock, irqL0);
|
||||||
if (list_empty(&ptxservq->tx_pending))
|
if (list_empty(&ptxservq->tx_pending))
|
||||||
list_add_tail(&ptxservq->tx_pending,
|
list_add_tail(&ptxservq->tx_pending, &pstapending->queue);
|
||||||
get_list_head(pstapending));
|
list_add_tail(&pxmitframe->list, &ptxservq->sta_pending.queue);
|
||||||
list_add_tail(&pxmitframe->list,
|
|
||||||
get_list_head(&ptxservq->sta_pending));
|
|
||||||
ptxservq->qcnt++;
|
ptxservq->qcnt++;
|
||||||
spin_unlock_irqrestore(&pstapending->lock, irqL0);
|
spin_unlock_irqrestore(&pstapending->lock, irqL0);
|
||||||
return _SUCCESS;
|
return _SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue