qcacld-3.0: Populate correct txpower in RRM Link Measurement Request

qcacld-2.0 to qcacld-3.0 propagation

Currently, driver doesn't consider tx power which was negotiated
at the time of connection for max tx power for RRM Link Measurement
Request.
Fix this by not allowing tx power more than pSessionEntry->maxTxPower.

Change-Id: Idebe6d11e05da0b3b8186e2c84ff8ad4ac124fdc
CRs-Fixed: 2021835
This commit is contained in:
Agrawal Ashish
2017-04-05 17:54:50 +05:30
committed by snandini
parent c416da60c5
commit df8e43c507

View File

@@ -269,8 +269,8 @@ rrm_process_link_measurement_request(tpAniSirGlobal pMac,
} }
pHdr = WMA_GET_RX_MAC_HEADER(pRxPacketInfo); pHdr = WMA_GET_RX_MAC_HEADER(pRxPacketInfo);
LinkReport.txPower = lim_get_max_tx_power(pLinkReq->MaxTxPower.maxTxPower, LinkReport.txPower = lim_get_max_tx_power(pSessionEntry->maxTxPower,
MAX_RRM_TX_PWR_CAP, pLinkReq->MaxTxPower.maxTxPower,
pMac->roam.configParam. pMac->roam.configParam.
nTxPowerCap); nTxPowerCap);