mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacld-3.0: Update the max AMSDU limit to 15
Increase the max number of MSDU in AMSDU limit to 15 and set the default value to 0 to config the FW in auto mode selection in which FW picks the maximum number of MSDUs in AMSDU based on connection mode. Change-Id: I6c1f1292a31fc9ea857e60e7a81d10b6def5cbc1 CRs-Fixed: 2502544
This commit is contained in:
parent
2552510775
commit
4bb5c6e8bd
2 changed files with 17 additions and 11 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -290,10 +290,14 @@
|
|||
* <ini>
|
||||
* gMaxAmsduNum - Max number of MSDU's in aggregate
|
||||
* @Min: 0
|
||||
* @Max: 3
|
||||
* @Default: 1
|
||||
* gMaxAmsduNum is the number of MSDU's transmitted in the 11n aggregate
|
||||
* @Max: 15
|
||||
* @Default: 0
|
||||
*
|
||||
* gMaxAmsduNum is the number of MSDU's transmitted in the aggregated
|
||||
* frame. Setting it to a value larger than 1 enables transmit aggregation.
|
||||
* Set the value to 0 to enable FW automode selection where it decides
|
||||
* the maximum number of MSDUs in AMSDU based on connection mode.
|
||||
*
|
||||
* It is a PHY parameter that applies to all vdev's in firmware.
|
||||
*
|
||||
* Supported Feature: 11n aggregation
|
||||
|
|
@ -305,8 +309,8 @@
|
|||
#define CFG_MAX_AMSDU_NUM CFG_INI_UINT( \
|
||||
"gMaxAmsduNum", \
|
||||
0, \
|
||||
3, \
|
||||
1, \
|
||||
15, \
|
||||
0, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Max AMSDU Number")
|
||||
|
||||
|
|
|
|||
|
|
@ -4802,6 +4802,13 @@ static int hdd_we_set_amsdu(struct hdd_adapter *adapter, int amsdu)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
status = ucfg_mlme_set_max_amsdu_num(hdd_ctx->psoc,
|
||||
amsdu);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
hdd_err("Failed to set Max AMSDU Num to cfg");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (amsdu > 1)
|
||||
sme_set_amsdu(mac_handle, true);
|
||||
else
|
||||
|
|
@ -4815,11 +4822,6 @@ static int hdd_we_set_amsdu(struct hdd_adapter *adapter, int amsdu)
|
|||
return errno;
|
||||
}
|
||||
|
||||
status = ucfg_mlme_set_max_amsdu_num(hdd_ctx->psoc,
|
||||
amsdu);
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
hdd_err("Failed to set Max AMSDU Num to cfg");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue