Pārlūkot izejas kodu

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 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
Krupali Dhanvijay 2 gadi atpakaļ
vecāks
revīzija
a9d67b3752
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      core/mac/src/pe/sch/sch_beacon_process.c

+ 5 - 1
core/mac/src/pe/sch/sch_beacon_process.c

@@ -777,9 +777,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 !=
@@ -816,6 +818,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 =