Explorar o código

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
Jinwei Chen %!s(int64=5) %!d(string=hai) anos
pai
achega
8cfe20d562
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      core/hdd/src/wlan_hdd_main.c

+ 3 - 2
core/hdd/src/wlan_hdd_main.c

@@ -1702,9 +1702,10 @@ static void hdd_update_tgt_ht_cap(struct hdd_context *hdd_ctx,
 	/*
 	 * MPDU density:
 	 * 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,
 						       cfg->mpdu_density);
 		if (QDF_IS_STATUS_ERROR(status))