Skip to content

Commit 36cb7cc

Browse files
yogeshpowarlinvjw
authored andcommitted
mwifiex: disable transmission buffer aggregation for AMSDU packets
Padding per MSDU will affect the length of next packet and hence the exact length of next packet is uncertain here. Also, aggregation of transmission buffer, while downloading the data to the card, wont gain much on the AMSDU packets as the AMSDU packets utilizes the transmission buffer space to the maximum (adapter->tx_buf_size). Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent fb3c19b commit 36cb7cc

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

drivers/net/wireless/mwifiex/11n_aggr.c

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,19 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
233233

234234
skb_push(skb_aggr, headroom);
235235

236-
tx_param.next_pkt_len = ((pra_list->total_pkts_size) ?
237-
(((pra_list->total_pkts_size) >
238-
adapter->tx_buf_size) ? adapter->
239-
tx_buf_size : pra_list->total_pkts_size +
240-
LLC_SNAP_LEN + sizeof(struct txpd)) : 0);
236+
/*
237+
* Padding per MSDU will affect the length of next
238+
* packet and hence the exact length of next packet
239+
* is uncertain here.
240+
*
241+
* Also, aggregation of transmission buffer, while
242+
* downloading the data to the card, wont gain much
243+
* on the AMSDU packets as the AMSDU packets utilizes
244+
* the transmission buffer space to the maximum
245+
* (adapter->tx_buf_size).
246+
*/
247+
tx_param.next_pkt_len = 0;
248+
241249
ret = adapter->if_ops.host_to_card(adapter, MWIFIEX_TYPE_DATA,
242250
skb_aggr->data,
243251
skb_aggr->len, &tx_param);

0 commit comments

Comments
 (0)