qcacld-3.0: use user setting for mpdu_density if target value is 0

Use user setting for HT  mpdu_density if target reported value is
0 which means no restriction.

Change-Id: I4be7d3f4137744e5c9e5bdfc7b50e6c338bd4f79
CRs-Fixed: 2592163
This commit is contained in:
Jinwei Chen 2019-12-24 10:12:46 +08:00 committed by nshrivas
parent 2c795212b4
commit 8cfe20d562

View File

@ -1702,9 +1702,10 @@ static void hdd_update_tgt_ht_cap(struct hdd_context *hdd_ctx,
/* /*
* MPDU density: * MPDU density:
* override user's setting if value is larger * override user's setting if value is larger
* than the one supported by target * than the one supported by target,
* if target value is 0, then follow user's setting.
*/ */
if (mpdu_density > cfg->mpdu_density) { if (cfg->mpdu_density && mpdu_density > cfg->mpdu_density) {
status = ucfg_mlme_set_ht_mpdu_density(hdd_ctx->psoc, status = ucfg_mlme_set_ht_mpdu_density(hdd_ctx->psoc,
cfg->mpdu_density); cfg->mpdu_density);
if (QDF_IS_STATUS_ERROR(status)) if (QDF_IS_STATUS_ERROR(status))