qcacld-3.0: Update max value of gEnableModulatedDTIM ini

Currently max value of gEnableModulatedDTIM is 5 which is
incorrect as FW supports maximum no. of modulated DTIM as 10.

To address above issue update max value of gEnableModulatedDTIM
ini.

CRs-Fixed: 2830240
Change-Id: I7f1cab6f0cb2b2a60e7cc1bb37a9971c1752a1bb
This commit is contained in:
Ashish Kumar Dhanotiya
2020-11-27 18:14:05 +05:30
committed by snandini
parent baa6fe85da
commit eb23480b4e
2 changed files with 9 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ static QDF_STATUS pmo_core_calculate_listen_interval(
struct pmo_vdev_priv_obj *vdev_ctx, struct pmo_vdev_priv_obj *vdev_ctx,
uint32_t *listen_interval) uint32_t *listen_interval)
{ {
uint32_t max_mod_dtim, max_dtim; uint32_t max_mod_dtim, max_dtim = 0;
uint32_t beacon_interval_mod; uint32_t beacon_interval_mod;
struct pmo_psoc_cfg *psoc_cfg = &vdev_ctx->pmo_psoc_ctx->psoc_cfg; struct pmo_psoc_cfg *psoc_cfg = &vdev_ctx->pmo_psoc_ctx->psoc_cfg;
struct wlan_objmgr_psoc *psoc = wlan_vdev_get_psoc(vdev); struct wlan_objmgr_psoc *psoc = wlan_vdev_get_psoc(vdev);
@@ -166,6 +166,11 @@ static QDF_STATUS pmo_core_calculate_listen_interval(
*listen_interval = cfg_default(CFG_LISTEN_INTERVAL); *listen_interval = cfg_default(CFG_LISTEN_INTERVAL);
} }
} }
pmo_info("sta dynamic dtim %d sta mod dtim %d sta_max_li_mod_dtim %d max_dtim %d",
psoc_cfg->sta_dynamic_dtim, psoc_cfg->sta_mod_dtim,
psoc_cfg->sta_max_li_mod_dtim, max_dtim);
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }

View File

@@ -141,13 +141,13 @@
* <ini> * <ini>
* gEnableModulatedDTIM - Enable/Disable modulated DTIM feature * gEnableModulatedDTIM - Enable/Disable modulated DTIM feature
* @Min: 0 * @Min: 0
* @Max: 5 * @Max: 10
* @Default: 0 * @Default: 0
* *
* This ini is used to enable/disable modulated DTIM feature. * This ini is used to enable/disable modulated DTIM feature.
* *
* 0 - Disable modulated DTIM. * 0 - Disable modulated DTIM.
* 1 to 5 - The maximum No. of modulated DTIM period used for calculating the * 1 to 10 - The maximum No. of modulated DTIM period used for calculating the
* target listen interval. * target listen interval.
* *
* The target listen interval will be updated to firmware when host driver is * The target listen interval will be updated to firmware when host driver is
@@ -163,7 +163,7 @@
#define CFG_PMO_ENABLE_MODULATED_DTIM CFG_INI_UINT( \ #define CFG_PMO_ENABLE_MODULATED_DTIM CFG_INI_UINT( \
"gEnableModulatedDTIM", \ "gEnableModulatedDTIM", \
0, \ 0, \
5, \ 10, \
0, \ 0, \
CFG_VALUE_OR_DEFAULT, \ CFG_VALUE_OR_DEFAULT, \
"Enable/disable modulated DTIM feature") "Enable/disable modulated DTIM feature")