]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69c334b2920ac7ac7b4e5aedde456bba6914564d
tree873fb8204181a2f7efd8ad56f05ed78462d80c90
parent4d6662983400ff7781373fc77ef0da6a882ca251
mwifiex: correct AMSDU aggregation check

The commit "mwifiex: remove list traversal.."(bfcaf65a9a..)
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