qcacld-3.0: Add ini control to honor power constraint
qcacld-2.0 to qcacld-3.0 propagation
Add changes to honor power constraint based on ini. Also, enhance
logging for power sent to fw.
Change-Id: Iefd497d76076527ca4c388cade46644a88a51932
CRs-Fixed: 1016876
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 131ce42..3471989 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
@@ -1934,16 +1934,12 @@
session->htConfig.ht_tx_stbc = 0;
}
-#ifdef FEATURE_WLAN_ESE
session->maxTxPower = lim_get_max_tx_power(reg_max,
local_power_constraint,
mac_ctx->roam.configParam.nTxPowerCap);
-#else
- session->maxTxPower =
- QDF_MIN(reg_max, (local_power_constraint));
-#endif
+
lim_log(mac_ctx, LOG1,
- FL("Reg max = %d, local power con = %d, max tx = %d"),
+ FL("Reg max %d local power con %d max tx pwr %d"),
reg_max, local_power_constraint, session->maxTxPower);
if (session->gLimCurrentBssUapsd) {