summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2011-07-14 05:51:58 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-07-21 20:52:03 +0200
commitdf3b124bdb6fe2459625443bd3dc0dbd020932da (patch)
treea6f75132633b85bee1511e838a6dbf071655171c /drivers/net/wireless
parentmwifiex: put multicast/broadcast packets to the same RA (diff)
downloadlinux-df3b124bdb6fe2459625443bd3dc0dbd020932da.tar.xz
linux-df3b124bdb6fe2459625443bd3dc0dbd020932da.zip
mwifiex: check SDIO multi-port aggregation buffer room correctly
We should consider current packet length also while checking Tx aggregation buffer room. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/mwifiex/sdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c
index 711fa689a95c..f7105a97e847 100644
--- a/drivers/net/wireless/mwifiex/sdio.c
+++ b/drivers/net/wireless/mwifiex/sdio.c
@@ -1319,7 +1319,7 @@ static int mwifiex_host_to_card_mp_aggr(struct mwifiex_adapter *adapter,
if (!(card->mp_wr_bitmap &
(1 << card->curr_wr_port))
|| !MP_TX_AGGR_BUF_HAS_ROOM(
- card, next_pkt_len))
+ card, pkt_len + next_pkt_len))
f_send_aggr_buf = 1;
} else {
/* No room in Aggr buf, send it */