Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04226dac authored by Krupali Dhanvijay's avatar Krupali Dhanvijay Committed by Rahul Choudhary
Browse files

qcacld-3.0: Prefer power constraint over DTPC when both IE present

DTPC and power constraint IE is mutually exclusive, but there are
some faulty AP which are advertising both IE's at the same time.

To address this if both the IE's are present, preference is given
to the local power constraint IE.

Change-Id: I7810cbf3a570ba19d83934fe3946b9aa38967990
CRs-Fixed: 3383531
parent e7a7c958
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -787,9 +787,11 @@ static void __sch_beacon_process_for_session(struct mac_context *mac_ctx,
						&is_power_constraint_abs);

			if (mac_ctx->rrm.rrmPEContext.rrmEnable &&
			    bcn->powerConstraintPresent)
			    bcn->powerConstraintPresent) {
				local_constraint =
				bcn->localPowerConstraint.localPowerConstraints;
				is_power_constraint_abs = false;
			}
		}

		if (local_constraint !=
@@ -827,6 +829,8 @@ static void __sch_beacon_process_for_session(struct mac_context *mac_ctx,
				local_constraint = regMax;
				local_constraint -=
				bcn->localPowerConstraint.localPowerConstraints;
				is_power_constraint_abs = false;

			}
		}
		mlme_obj->reg_tpc_obj.is_power_constraint_abs =