Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255451
b: refs/heads/master
c: a8fe329
h: refs/heads/master
i:
  255449: 6f5c732
  255447: eee6da7
v: v3
  • Loading branch information
Yogesh Ashok Powar authored and John W. Linville committed Jun 7, 2011
1 parent b844c5f commit b7163c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fcf2176c87af77e5ee947edaf8e390bc67b729d8
refs/heads/master: a8fe32937e4e55c9ed73c79800198d137a1b968a
15 changes: 5 additions & 10 deletions trunk/drivers/net/wireless/mwifiex/11n_aggr.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,13 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
struct mwifiex_tx_param tx_param;
struct txpd *ptx_pd = NULL;

if (skb_queue_empty(&pra_list->skb_head)) {
skb_src = skb_peek(&pra_list->skb_head);
if (!skb_src) {
spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock,
ra_list_flags);
return 0;
}
skb_src = skb_peek(&pra_list->skb_head);

tx_info_src = MWIFIEX_SKB_TXCB(skb_src);
skb_aggr = dev_alloc_skb(adapter->tx_buf_size);
if (!skb_aggr) {
Expand All @@ -188,10 +189,7 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
+ LLC_SNAP_LEN)
<= adapter->tx_buf_size)) {

if (!skb_queue_empty(&pra_list->skb_head))
skb_src = skb_dequeue(&pra_list->skb_head);
else
skb_src = NULL;
skb_src = skb_dequeue(&pra_list->skb_head);

if (skb_src) {
pra_list->total_pkts_size -= skb_src->len;
Expand All @@ -214,10 +212,7 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
return -1;
}

if (!skb_queue_empty(&pra_list->skb_head))
skb_src = skb_peek(&pra_list->skb_head);
else
skb_src = NULL;
skb_src = skb_peek(&pra_list->skb_head);
}

spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, ra_list_flags);
Expand Down

0 comments on commit b7163c1

Please sign in to comment.