Commit 36cb7cce230a06378915d405cd33adf58dd5fe2a
Committed by
John W. Linville
1 parent
fb3c19bc96
Exists in
master
and in
38 other branches
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 <yogeshp@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Showing 1 changed file with 13 additions and 5 deletions Side-by-side Diff
drivers/net/wireless/mwifiex/11n_aggr.c
... | ... | @@ -233,11 +233,19 @@ |
233 | 233 | |
234 | 234 | skb_push(skb_aggr, headroom); |
235 | 235 | |
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 | + | |
241 | 249 | ret = adapter->if_ops.host_to_card(adapter, MWIFIEX_TYPE_DATA, |
242 | 250 | skb_aggr->data, |
243 | 251 | skb_aggr->len, &tx_param); |