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
This commit is contained in:
Arif Hussain
2017-01-12 08:57:20 -08:00
zatwierdzone przez qcabuildsw
rodzic 7bc7fef34c
commit 5f0e109c7d

Wyświetl plik

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