mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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
This commit is contained in:
parent
8d0637f083
commit
dd02608be5
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue