qcacld-3.0: Add skip_tpe check in beacon process API

Add skip_tpe check in beacon process API so that TPC power
calculation API is not invoked for 2G/5G roaming case if
skip tpe INI is set even though tpe power from beacon has
changed.

Change-Id: I4886634ac04e5dfdfce192d9099976fd436fc4c0
CRs-Fixed: 2966000
This commit is contained in:
Gururaj Pandurangi 2021-06-09 12:56:17 -07:00 • committed by Madan Koyyalamudi
commit 6fbd88c606

View file

@ -712,6 +712,7 @@ static void __sch_beacon_process_for_session(struct mac_context *mac_ctx,
bool ap_constraint_change = false, tpe_change = false;
int8_t regMax = 0, maxTxPower = 0;
QDF_STATUS status;
bool skip_tpe = false;
qdf_mem_zero(&beaconParams, sizeof(tUpdateBeaconParams));
beaconParams.paramChangeBitmap = 0;
@ -743,6 +744,9 @@ static void __sch_beacon_process_for_session(struct mac_context *mac_ctx,
return;
}
if (!wlan_reg_is_6ghz_chan_freq(bcn->chan_freq))
skip_tpe = wlan_mlme_skip_tpe(mac_ctx->psoc);
if (wlan_reg_is_ext_tpc_supported(mac_ctx->psoc)) {
tx_ops = wlan_reg_get_tx_ops(mac_ctx->psoc);
@ -767,7 +771,8 @@ static void __sch_beacon_process_for_session(struct mac_context *mac_ctx,
ap_constraint_change = true;
}
if (ap_constraint_change || tpe_change) {
if ((ap_constraint_change && local_constraint) ||
(tpe_change && !skip_tpe)) {
lim_calculate_tpc(mac_ctx, session, false);
if (tx_ops->set_tpc_power)