From d9d2735da006e05e1bc36c6523fef1363c4cf37a Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Thu, 12 Jan 2017 08:57:20 -0800 Subject: qcacld-3.0: Fix max tx power allowed in link measurement response Change Max Tx Power from 30 to 22 dbm and report tx power based this max power. Change-Id: I90aa4b9b3036534acc17343c1d99782d6177da12 CRs-Fixed: 1111079 --- core/mac/src/pe/rrm/rrm_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/rrm/rrm_api.c b/core/mac/src/pe/rrm/rrm_api.c index 1ab704b4f214..1d8b99feb319 100644 --- a/core/mac/src/pe/rrm/rrm_api.c +++ b/core/mac/src/pe/rrm/rrm_api.c @@ -52,6 +52,8 @@ #include "rrm_global.h" #include "rrm_api.h" +#define MAX_RRM_TX_PWR_CAP 22 + uint8_t rrm_get_min_of_max_tx_power(tpAniSirGlobal pMac, int8_t regMax, int8_t apTxPower) @@ -282,7 +284,7 @@ rrm_process_link_measurement_request(tpAniSirGlobal pMac, pHdr = WMA_GET_RX_MAC_HEADER(pRxPacketInfo); LinkReport.txPower = lim_get_max_tx_power(pLinkReq->MaxTxPower.maxTxPower, - pLinkReq->MaxTxPower.maxTxPower, + MAX_RRM_TX_PWR_CAP, pMac->roam.configParam. nTxPowerCap); -- cgit v1.2.3