mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
d85c5fe462
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>
34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
/*
|
|
* Marvell Wireless LAN device driver: 802.11n Aggregation
|
|
*
|
|
* Copyright (C) 2011, Marvell International Ltd.
|
|
*
|
|
* This software file (the "File") is distributed by Marvell International
|
|
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
|
|
* (the "License"). You may use, redistribute and/or modify this File in
|
|
* accordance with the terms and conditions of the License, a copy of which
|
|
* is available by writing to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
|
|
* worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
*
|
|
* THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
|
|
* ARE EXPRESSLY DISCLAIMED. The License provides additional details about
|
|
* this warranty disclaimer.
|
|
*/
|
|
|
|
#ifndef _MWIFIEX_11N_AGGR_H_
|
|
#define _MWIFIEX_11N_AGGR_H_
|
|
|
|
#define PKT_TYPE_AMSDU 0xE6
|
|
#define MIN_NUM_AMSDU 2
|
|
|
|
int mwifiex_11n_deaggregate_pkt(struct mwifiex_private *priv,
|
|
struct sk_buff *skb);
|
|
int mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
|
|
struct mwifiex_ra_list_tbl *ptr, int headroom,
|
|
int ptr_index, unsigned long flags)
|
|
__releases(&priv->wmm.ra_list_spinlock);
|
|
|
|
#endif /* !_MWIFIEX_11N_AGGR_H_ */
|