Commit c9e2404c authored by Avinash Patil's avatar Avinash Patil Committed by John W. Linville

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: default avatarAvinash Patil <patila@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent df810083
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
/* Offset for TOS field in the IP header */ /* Offset for TOS field in the IP header */
#define IPTOS_OFFSET 5 #define IPTOS_OFFSET 5
static bool enable_tx_amsdu;
module_param(enable_tx_amsdu, bool, 0644);
/* WMM information IE */ /* WMM information IE */
static const u8 wmm_info_ie[] = { WLAN_EID_VENDOR_SPECIFIC, 0x07, static const u8 wmm_info_ie[] = { WLAN_EID_VENDOR_SPECIFIC, 0x07,
0x00, 0x50, 0xf2, 0x02, 0x00, 0x50, 0xf2, 0x02,
...@@ -1233,7 +1236,7 @@ mwifiex_dequeue_tx_packet(struct mwifiex_adapter *adapter) ...@@ -1233,7 +1236,7 @@ mwifiex_dequeue_tx_packet(struct mwifiex_adapter *adapter)
mwifiex_send_delba(priv, tid_del, ra, 1); mwifiex_send_delba(priv, tid_del, ra, 1);
} }
} }
if (mwifiex_is_amsdu_allowed(priv, tid) && if (enable_tx_amsdu && mwifiex_is_amsdu_allowed(priv, tid) &&
mwifiex_is_11n_aggragation_possible(priv, ptr, mwifiex_is_11n_aggragation_possible(priv, ptr,
adapter->tx_buf_size)) adapter->tx_buf_size))
mwifiex_11n_aggregate_pkt(priv, ptr, INTF_HEADER_LEN, mwifiex_11n_aggregate_pkt(priv, ptr, INTF_HEADER_LEN,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment