Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mwifiex: enable/disable tx_amsdu support via module parameter

This patch disables tx_amsdu support in mwifiex by default.
tx_amdsu support can be enabled via module parameter at load time.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Avinash Patil and committed by
John W. Linville
c9e2404c df810083

+4 -1
+4 -1
drivers/net/wireless/mwifiex/wmm.c
··· 37 37 /* Offset for TOS field in the IP header */ 38 38 #define IPTOS_OFFSET 5 39 39 40 + static bool enable_tx_amsdu; 41 + module_param(enable_tx_amsdu, bool, 0644); 42 + 40 43 /* WMM information IE */ 41 44 static const u8 wmm_info_ie[] = { WLAN_EID_VENDOR_SPECIFIC, 0x07, 42 45 0x00, 0x50, 0xf2, 0x02, ··· 1236 1233 mwifiex_send_delba(priv, tid_del, ra, 1); 1237 1234 } 1238 1235 } 1239 - if (mwifiex_is_amsdu_allowed(priv, tid) && 1236 + if (enable_tx_amsdu && mwifiex_is_amsdu_allowed(priv, tid) && 1240 1237 mwifiex_is_11n_aggragation_possible(priv, ptr, 1241 1238 adapter->tx_buf_size)) 1242 1239 mwifiex_11n_aggregate_pkt(priv, ptr, INTF_HEADER_LEN,