mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacld-3.0: Update Link tx power for RRM scenario
Update Link tx power with TPC power calculated in lim for RRM scenario. In the legacy case (old FW), Link tx power was calculated using lim_get_max_tx_power where as for new FW, we get the power value from lim_calculate_tpc. Change-Id: Id97f0cad00572180e3436142df9cf95e6d270d12 CRs-Fixed: 2937763
This commit is contained in:
parent
6d7aabfc35
commit
a3d0935690
1 changed files with 6 additions and 3 deletions
|
|
@ -275,6 +275,9 @@ rrm_process_link_measurement_request(struct mac_context *mac,
|
|||
pLinkReq->MaxTxPower.maxTxPower;
|
||||
lim_calculate_tpc(mac, pe_session, true);
|
||||
|
||||
LinkReport.txPower =
|
||||
mlme_obj->reg_tpc_obj.chan_power_info[0].tx_power;
|
||||
|
||||
if (tx_ops->set_tpc_power)
|
||||
tx_ops->set_tpc_power(mac->psoc,
|
||||
pe_session->vdev_id,
|
||||
|
|
@ -302,12 +305,12 @@ rrm_process_link_measurement_request(struct mac_context *mac,
|
|||
rrm_send_set_max_tx_power_req(mac, LinkReport.txPower,
|
||||
pe_session))) {
|
||||
pe_warn("Local: %d", pe_session->maxTxPower);
|
||||
pe_warn("Link Request TxPwr: %d Link Report TxPwr: %d",
|
||||
LinkReport.txPower,
|
||||
pLinkReq->MaxTxPower.maxTxPower);
|
||||
pe_session->maxTxPower = LinkReport.txPower;
|
||||
}
|
||||
}
|
||||
pe_warn("Link Request Tx Pwr: %d Link Report Tx Pwr: %d",
|
||||
pLinkReq->MaxTxPower.maxTxPower, LinkReport.txPower);
|
||||
|
||||
LinkReport.dialogToken = pLinkReq->DialogToken.token;
|
||||
LinkReport.rxAntenna = 0;
|
||||
LinkReport.txAntenna = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue