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:30 +0000
committerKalle Valo <kvalo@codeaurora.org>2017-05-31 16:54:07 +0300
commitf4c5d5991590c4f640d5de245047444bf11f69d2 (patch)
tree9e3cc9f15524ebfd627de29ac6e9dae3cb687a9c /drivers/net/wireless/marvell/mwifiex/11n_aggr.c
parent98f44cb0655cbef0850ba7ff4c8213fb1bf9b6a2 (diff)
mwifiex: use variable interface header length
Usb tx aggregation feature will utilize 4-bytes bus interface header, otherwise it will be set to zero in default case. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/11n_aggr.c b/drivers/net/wireless/marvell/mwifiex/11n_aggr.c
index a75013ac84d7..e8ffb26eb912 100644
--- a/drivers/net/wireless/marvell/mwifiex/11n_aggr.c
+++ b/drivers/net/wireless/marvell/mwifiex/11n_aggr.c
@@ -164,7 +164,7 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
int pad = 0, aggr_num = 0, ret;
struct mwifiex_tx_param tx_param;
struct txpd *ptx_pd = NULL;
- int headroom = adapter->iface_type == MWIFIEX_USB ? 0 : INTF_HEADER_LEN;
+ int headroom = adapter->intf_hdr_len;
skb_src = skb_peek(&pra_list->skb_head);
if (!skb_src) {