summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex/11n_aggr.c
diff options
context:
space:
mode:
authorXinming Hu <huxm@marvell.com>2017-05-23 07:12:34 +0000
committerKalle Valo <kvalo@codeaurora.org>2017-05-31 16:54:09 +0300
commit822446d4ff2b1924f8fe16ebb60675f8c3c7b34f (patch)
treea6a55d1063ff4279c0c3770d62ae841e425fcfc6 /drivers/net/wireless/marvell/mwifiex/11n_aggr.c
parenta2ca85ad721de50b90d50f3a11b67c4776a1236d (diff)
mwifiex: check next packet length for usb tx aggregation
The next packet length will be used by interface driver, to check if the next packet still could be aggregated. Signed-off-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Cathy Luo <cluo@marvell.com> Signed-off-by: Ganapathi Bhat <gbhat@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/11n_aggr.c')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/11n_aggr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/11n_aggr.c b/drivers/net/wireless/marvell/mwifiex/11n_aggr.c
index e8ffb26eb912..53e67526f40d 100644
--- a/drivers/net/wireless/marvell/mwifiex/11n_aggr.c
+++ b/drivers/net/wireless/marvell/mwifiex/11n_aggr.c
@@ -250,15 +250,15 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
return 0;
}
+ if (skb_src)
+ tx_param.next_pkt_len = skb_src->len + sizeof(struct txpd);
+ else
+ tx_param.next_pkt_len = 0;
+
if (adapter->iface_type == MWIFIEX_USB) {
ret = adapter->if_ops.host_to_card(adapter, priv->usb_port,
- skb_aggr, NULL);
+ skb_aggr, &tx_param);
} else {
- if (skb_src)
- tx_param.next_pkt_len =
- skb_src->len + sizeof(struct txpd);
- else
- tx_param.next_pkt_len = 0;
ret = adapter->if_ops.host_to_card(adapter, MWIFIEX_TYPE_DATA,
skb_aggr, &tx_param);