浏览代码

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 年之前
父节点
当前提交
df8e43c507
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);