]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/net/wireless/marvell/mwifiex/wmm.c
mwifiex: correct AMSDU aggregation check
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 30 Sep 2011 03:43:40 +0000 (20:43 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 Oct 2011 19:22:35 +0000 (15:22 -0400)
commitd85c5fe462fe3531f607fda787e9c80617e35437
tree873fb8204181a2f7efd8ad56f05ed78462d80c90
parent8c34559b4a6df32e4af1b073397fa4dc189a5485
mwifiex: correct AMSDU aggregation check

The commit "mwifiex: remove list traversal.."(fcf2176c87..)
wrongly modifies AMSDU aggregation check. Due to this even though
packet size for iperf traffic is already large, we unnecessarily
try to aggregate them which adds some delay. If Tx iperf is started
on UUT for 30 seconds, UUT keeps sending Tx packets for few more
seconds.

That commit is reverted to fix the problem.
Also, MIN_NUM_AMSDU check is moved inside the loop to optimize the
loop.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/11n_aggr.c
drivers/net/wireless/mwifiex/11n_aggr.h
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/wmm.c