aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/wmm.c
diff options
context:
space:
mode:
authorAvinash Patil <patila@marvell.com>2014-02-07 19:27:28 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-02-12 15:36:16 -0500
commiteac4322729aebf01ae231d3b3f63aae73d469a57 (patch)
tree8d19f4b0c752ae104ff160f94148865b3bca4fe7 /drivers/net/wireless/mwifiex/wmm.c
parent79d9a54cf0e7c77dd6eada44c1461ad2e7da83b8 (diff)
mwifiex: handle AMPDU supported check for AP interface
This patch fixes a bug where we were checking for AP's AMPDU param setting even when transmitting traffic to associated station. Patch adds provision to pass additional parameter ra_list pointer to function which checks if AMPDU is allowed. If current BSS type is AP, we check station's AMPDU params else we check AP's AMPDU params. 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>
Diffstat (limited to 'drivers/net/wireless/mwifiex/wmm.c')
-rw-r--r--drivers/net/wireless/mwifiex/wmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/wmm.c b/drivers/net/wireless/mwifiex/wmm.c
index 13eaeed03898..ee447893fe57 100644
--- a/drivers/net/wireless/mwifiex/wmm.c
+++ b/drivers/net/wireless/mwifiex/wmm.c
@@ -1226,7 +1226,7 @@ mwifiex_dequeue_tx_packet(struct mwifiex_adapter *adapter)
1226 /* ra_list_spinlock has been freed in 1226 /* ra_list_spinlock has been freed in
1227 mwifiex_send_single_packet() */ 1227 mwifiex_send_single_packet() */
1228 } else { 1228 } else {
1229 if (mwifiex_is_ampdu_allowed(priv, tid) && 1229 if (mwifiex_is_ampdu_allowed(priv, ptr, tid) &&
1230 ptr->ba_pkt_count > ptr->ba_packet_thr) { 1230 ptr->ba_pkt_count > ptr->ba_packet_thr) {
1231 if (mwifiex_space_avail_for_new_ba_stream(adapter)) { 1231 if (mwifiex_space_avail_for_new_ba_stream(adapter)) {
1232 mwifiex_create_ba_tbl(priv, ptr->ra, tid, 1232 mwifiex_create_ba_tbl(priv, ptr->ra, tid,