diff --git a/components/mlme/dispatcher/inc/cfg_qos.h b/components/mlme/dispatcher/inc/cfg_qos.h index e3a86c794199..cb51ea3ad339 100644 --- a/components/mlme/dispatcher/inc/cfg_qos.h +++ b/components/mlme/dispatcher/inc/cfg_qos.h @@ -24,13 +24,20 @@ #ifndef __CFG_MLME_QOS_H #define __CFG_MLME_QOS_H +#if defined(QCA_WIFI_QCA6290) || defined(QCA_WIFI_QCA6390) || \ + defined(QCA_WIFI_QCA6490) || defined(QCA_WIFI_QCA6750) +#define ADDBA_TXAGGR_SIZE 256 +#else +#define ADDBA_TXAGGR_SIZE 64 +#endif + /* * * gTxAggregationSize - Gives an option to configure Tx aggregation size * in no of MPDUs * @Min: 0 - * @Max: 64 - * @Default: 64 + * @Max: ADDBA_TXAGGR_SIZE + * @Default: ADDBA_TXAGGR_SIZE * * gTxAggregationSize gives an option to configure Tx aggregation size * in no of MPDUs.This can be useful in debugging throughput issues @@ -46,8 +53,8 @@ #define CFG_TX_AGGREGATION_SIZE CFG_INI_UINT( \ "gTxAggregationSize", \ 0, \ - 64, \ - 64, \ + ADDBA_TXAGGR_SIZE, \ + ADDBA_TXAGGR_SIZE, \ CFG_VALUE_OR_DEFAULT, \ "Tx Aggregation size value") @@ -56,7 +63,7 @@ * gTxAggregationSizeBE - To configure Tx aggregation size for BE queue * in no of MPDUs * @Min: 0 - * @Max: 64 + * @Max: ADDBA_TXAGGR_SIZE * @Default: 0 * * gTxAggregationSizeBE gives an option to configure Tx aggregation size @@ -74,7 +81,7 @@ #define CFG_TX_AGGREGATION_SIZEBE CFG_INI_UINT( \ "gTxAggregationSizeBE", \ 0, \ - 64, \ + ADDBA_TXAGGR_SIZE, \ 0, \ CFG_VALUE_OR_DEFAULT, \ "Tx Aggregation size value BE") @@ -84,7 +91,7 @@ * gTxAggregationSizeBK - To configure Tx aggregation size for BK queue * in no of MPDUs * @Min: 0 - * @Max: 64 + * @Max: ADDBA_TXAGGR_SIZE * @Default: 0 * * gTxAggregationSizeBK gives an option to configure Tx aggregation size @@ -102,7 +109,7 @@ #define CFG_TX_AGGREGATION_SIZEBK CFG_INI_UINT( \ "gTxAggregationSizeBK", \ 0, \ - 64, \ + ADDBA_TXAGGR_SIZE, \ 0, \ CFG_VALUE_OR_DEFAULT, \ "Tx Aggregation size value BK") @@ -112,7 +119,7 @@ * gTxAggregationSizeVI - To configure Tx aggregation size for VI queue * in no of MPDUs * @Min: 0 - * @Max: 64 + * @Max: ADDBA_TXAGGR_SIZE * @Default: 0 * * gTxAggregationSizeVI gives an option to configure Tx aggregation size @@ -130,7 +137,7 @@ #define CFG_TX_AGGREGATION_SIZEVI CFG_INI_UINT( \ "gTxAggregationSizeVI", \ 0, \ - 64, \ + ADDBA_TXAGGR_SIZE, \ 0, \ CFG_VALUE_OR_DEFAULT, \ "Tx Aggregation size value for VI") @@ -140,7 +147,7 @@ * gTxAggregationSizeVO - To configure Tx aggregation size for VO queue * in no of MPDUs * @Min: 0 - * @Max: 64 + * @Max: ADDBA_TXAGGR_SIZE * @Default: 0 * * gTxAggregationSizeVO gives an option to configure Tx aggregation size @@ -158,7 +165,7 @@ #define CFG_TX_AGGREGATION_SIZEVO CFG_INI_UINT( \ "gTxAggregationSizeVO", \ 0, \ - 64, \ + ADDBA_TXAGGR_SIZE, \ 0, \ CFG_VALUE_OR_DEFAULT, \ "Tx Aggregation size value for VO") diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 40bf709972ee..99fd4012b1d6 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2021 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 @@ -3984,6 +3984,8 @@ QDF_STATUS wma_set_tx_rx_aggr_size(uint8_t vdev_id, if (aggr_type == WMI_VDEV_CUSTOM_AGGR_TYPE_AMSDU) cmd->enable_bitmap |= 0x04; + cmd->enable_bitmap |= (0x1 << 6); + wma_debug("tx aggr: %d rx aggr: %d vdev: %d enable_bitmap %d", cmd->tx_aggr_size, cmd->rx_aggr_size, cmd->vdev_id, cmd->enable_bitmap); @@ -4049,6 +4051,8 @@ QDF_STATUS wma_set_tx_rx_aggr_size_per_ac(WMA_HANDLE handle, if (aggr_type == WMI_VDEV_CUSTOM_AGGR_TYPE_AMSDU) cmd->enable_bitmap |= 0x04; + cmd->enable_bitmap |= (0x1 << 6); + wma_debug("queue_num: %d, tx aggr: %d rx aggr: %d vdev: %d, bitmap: %d", queue_num, cmd->tx_aggr_size, cmd->rx_aggr_size, cmd->vdev_id,