Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255452
b: refs/heads/master
c: fb3c19b
h: refs/heads/master
v: v3
  • Loading branch information
Yogesh Ashok Powar authored and John W. Linville committed Jun 7, 2011
1 parent b7163c1 commit 2af1a2c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 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: a8fe32937e4e55c9ed73c79800198d137a1b968a
refs/heads/master: fb3c19bc9687d972b83faf366b38ac807eca8f25
22 changes: 14 additions & 8 deletions trunk/drivers/net/wireless/mwifiex/11n_aggr.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,15 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
tx_info_aggr->bss_index = tx_info_src->bss_index;
skb_aggr->priority = skb_src->priority;

while (skb_src && ((skb_headroom(skb_aggr) + skb_src->len
+ LLC_SNAP_LEN)
<= adapter->tx_buf_size)) {
do {
/* Check if AMSDU can accommodate this MSDU */
if (skb_tailroom(skb_aggr) < (skb_src->len + LLC_SNAP_LEN))
break;

skb_src = skb_dequeue(&pra_list->skb_head);

if (skb_src) {
pra_list->total_pkts_size -= skb_src->len;
pra_list->total_pkts--;
}
pra_list->total_pkts_size -= skb_src->len;
pra_list->total_pkts--;

atomic_dec(&priv->wmm.tx_pkts_queued);

Expand All @@ -212,8 +211,15 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
return -1;
}

if (skb_tailroom(skb_aggr) < pad) {
pad = 0;
break;
}
skb_put(skb_aggr, pad);

skb_src = skb_peek(&pra_list->skb_head);
}

} while (skb_src);

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

Expand Down

0 comments on commit 2af1a2c

Please sign in to comment.