mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Use max tx power allowed to compute link report power
Driver uses max tx power allowed for a particular channel to calculate link report power and updates max tx power allowed with calculated link report power. This can result in usage of MIN_TX_PWR_CAP as max tx power if AP requests power below MIN_TX_PWR_CAP in link request. Once max tx power reaches MIN_TX_PWR_CAP, the driver will always use MIN_TX_PWR_CAP in the link report which could be much less than power allowed for a particular channel. Use max tx power allowed for a particular channel always to compute link report power to fix this issue. Change-Id: I0060500f23e6131481baa00cd76f41419281e41a CRs-Fixed: 2195960
This commit is contained in:
parent
0604a3650d
commit
d528d19d10
3 changed files with 4 additions and 2 deletions
|
|
@ -563,6 +563,7 @@ typedef struct sPESession /* Added to Support BT-AMP */
|
|||
bool deauth_disassoc_rc;
|
||||
enum wmi_obss_color_collision_evt_type obss_color_collision_dec_evt;
|
||||
bool is_session_obss_color_collision_det_enabled;
|
||||
int8_t def_max_tx_pwr;
|
||||
} tPESession, *tpPESession;
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1607,6 +1607,7 @@ __lim_process_sme_join_req(tpAniSirGlobal mac_ctx, uint32_t *msg_buf)
|
|||
session->maxTxPower = lim_get_max_tx_power(reg_max,
|
||||
local_power_constraint,
|
||||
mac_ctx->roam.configParam.nTxPowerCap);
|
||||
session->def_max_tx_pwr = session->maxTxPower;
|
||||
|
||||
pe_debug("Reg max %d local power con %d max tx pwr %d",
|
||||
reg_max, local_power_constraint, session->maxTxPower);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
|
|
@ -270,7 +270,7 @@ rrm_process_link_measurement_request(tpAniSirGlobal pMac,
|
|||
}
|
||||
pHdr = WMA_GET_RX_MAC_HEADER(pRxPacketInfo);
|
||||
|
||||
LinkReport.txPower = lim_get_max_tx_power(pSessionEntry->maxTxPower,
|
||||
LinkReport.txPower = lim_get_max_tx_power(pSessionEntry->def_max_tx_pwr,
|
||||
pLinkReq->MaxTxPower.maxTxPower,
|
||||
pMac->roam.configParam.
|
||||
nTxPowerCap);
|
||||
|
|
|
|||
Loading…
Reference in a new issue