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

Commit dd02608b authored by Krupali Dhanvijay's avatar Krupali Dhanvijay Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Add debug logs to check how tx power is calculated

Currently, there is no print to check local constrtaint which
may be reason of tx_power updation based on power constarint is
absolute or not. Add print to check local constarint, so that
tx power updation can be monitored.

Change-Id: I463828aab69e189c6cd6c4e61e01af1ba140ab29
CRs-Fixed: 3260542
parent 8d0637f0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
 * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -2138,7 +2138,9 @@ void lim_calculate_tpc(struct mac_context *mac,
		if (mlme_obj->reg_tpc_obj.ap_constraint_power) {
			local_constraint =
				mlme_obj->reg_tpc_obj.ap_constraint_power;
			reg_max = mlme_obj->reg_tpc_obj.reg_max[i];
			pe_debug("local constraint: %d"
				 "power constraint absolute: %d",
				 local_constraint, is_pwr_constraint_absolute);
			if (is_pwr_constraint_absolute)
				max_tx_power = QDF_MIN(reg_max,
						       local_constraint);