Browse Source

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
Agrawal Ashish 8 năm trước cách đây
mục cha
commit
df8e43c507
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      core/mac/src/pe/rrm/rrm_api.c

+ 2 - 2
core/mac/src/pe/rrm/rrm_api.c

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