qcacmn: Add support for twice antenna gain param

Existing antenna gain command does not take odd antenna gain value that is
gains are not supported in steps of 0.5db. antenna_gain_half_db pdev
param provides this support. Added WMI and CDP changes to configure/read
this data.
CRs-Fixed: 2024854
Change-Id: I47da9eed74a1a0180cefb4c3f47bc4340da1bdfd
This commit is contained in:
Priyadarshnee S
2018-07-25 11:08:40 +05:30
committed by nshrivas
parent dfd21ce260
commit 11b41a925f
2 changed files with 6 additions and 0 deletions

View File

@@ -6671,6 +6671,7 @@ static QDF_STATUS extract_pdev_tpc_config_ev_param_non_tlv(wmi_unified_t wmi_han
param->phyMode = event->phyMode;
param->twiceAntennaReduction = event->twiceAntennaReduction;
param->twiceMaxRDPower = event->twiceMaxRDPower;
param->twiceAntennaGain = event->twiceAntennaGain;
param->powerLimit = event->powerLimit;
param->rateMax = event->rateMax;
param->numTxChain = event->numTxChain;
@@ -9443,6 +9444,8 @@ static void populate_pdev_param_non_tlv(uint32_t *pdev_param)
pdev_param[wmi_pdev_param_rx_chain_mask_5g] = WMI_UNAVAILABLE_PARAM;
pdev_param[wmi_pdev_param_tx_chain_mask_cck] = WMI_UNAVAILABLE_PARAM;
pdev_param[wmi_pdev_param_tx_chain_mask_1ss] = WMI_UNAVAILABLE_PARAM;
pdev_param[wmi_pdev_param_antenna_gain_half_db] =
WMI_PDEV_PARAM_ANTENNA_GAIN_HALF_DB;
}
/**