From 2912a925a24ec5319aa10fecd230d5d60cf6839b Mon Sep 17 00:00:00 2001 From: Gururaj Pandurangi Date: Mon, 21 Sep 2020 12:58:38 -0700 Subject: [PATCH] qcacld-3.0: Change default value of gMaxLIModulatedDTIM Reduce default value of gMaxLIModulatedDTIM from 10 to 5 to shorten the listen interval. It provides better connectivity when AP has a large DTIM Period or Beacon Interval. Also, move the ini definition to sta header file from sap header file. Change-Id: I9661c6fc623949cf8b260043e8da7448b496d57f CRs-Fixed: 2780070 --- components/mlme/dispatcher/inc/cfg_mlme_sap.h | 24 ------------------ components/mlme/dispatcher/inc/cfg_mlme_sta.h | 25 +++++++++++++++++++ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/components/mlme/dispatcher/inc/cfg_mlme_sap.h b/components/mlme/dispatcher/inc/cfg_mlme_sap.h index 13db067cbd..894b6e9edf 100644 --- a/components/mlme/dispatcher/inc/cfg_mlme_sap.h +++ b/components/mlme/dispatcher/inc/cfg_mlme_sap.h @@ -455,30 +455,6 @@ 0, \ CFG_VALUE_OR_DEFAULT, \ "reduced beacon interval") -/* - * - * gMaxLIModulatedDTIM - Set MaxLIModulate Dtim - * @Min: 1 - * @Max: 10 - * @Default: 10 - * - * This ini is used to set default MaxLIModulatedDTIM - * - * Related: None - * - * Supported Feature: STA - * - * Usage: Internal/External - * - * - */ -#define CFG_MAX_LI_MODULATED_DTIM CFG_INI_UINT( \ - "gMaxLIModulatedDTIM", \ - 1, \ - 10, \ - 10, \ - CFG_VALUE_OR_DEFAULT, \ - "Max modulated dtim") /* * diff --git a/components/mlme/dispatcher/inc/cfg_mlme_sta.h b/components/mlme/dispatcher/inc/cfg_mlme_sta.h index 3d3e068a3d..6d26497768 100644 --- a/components/mlme/dispatcher/inc/cfg_mlme_sta.h +++ b/components/mlme/dispatcher/inc/cfg_mlme_sta.h @@ -457,6 +457,31 @@ CFG_VALUE_OR_DEFAULT, \ "Which keepalive method to use") +/* + * + * gMaxLIModulatedDTIM - Set MaxLIModulate Dtim + * @Min: 1 + * @Max: 10 + * @Default: 5 + * + * This ini is used to set default MaxLIModulatedDTIM + * + * Related: None + * + * Supported Feature: STA + * + * Usage: Internal/External + * + * + */ +#define CFG_MAX_LI_MODULATED_DTIM CFG_INI_UINT( \ + "gMaxLIModulatedDTIM", \ + 1, \ + 10, \ + 5, \ + CFG_VALUE_OR_DEFAULT, \ + "Max modulated dtim") + #define CFG_STA_ALL \ CFG(CFG_INFRA_STA_KEEP_ALIVE_PERIOD) \ CFG(CFG_TGT_GTX_USR_CFG) \