From dd02608be533d11f6cbc15515c4f7451f23f4479 Mon Sep 17 00:00:00 2001 From: Krupali Dhanvijay Date: Fri, 30 Dec 2022 11:28:58 +0530 Subject: [PATCH] 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 --- core/mac/src/pe/lim/lim_process_sme_req_messages.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c index 81ced02ff3af..1fec33b2ddbd 100644 --- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c @@ -1,6 +1,6 @@ /* * 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);