소스 검색

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);