summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArif Hussain <arifhussain@codeaurora.org>2017-01-12 08:57:20 -0800
committerqcabuildsw <qcabuildsw@localhost>2017-01-13 16:58:14 -0800
commitd9d2735da006e05e1bc36c6523fef1363c4cf37a (patch)
treead5d56bd491bab7724776b4a32ddff935e32919f
parent781ef9fa07aa031fd13588220184426a2b4441a7 (diff)
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
-rw-r--r--core/mac/src/pe/rrm/rrm_api.c4
1 files changed, 3 insertions, 1 deletions
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);