diff options
| author | Visweswara Tanuku <vtanuku@codeaurora.org> | 2018-09-18 19:19:12 +0530 |
|---|---|---|
| committer | Visweswara Tanuku <vtanuku@codeaurora.org> | 2018-09-18 19:20:25 +0530 |
| commit | 2a7d12c6ae3779c6c4614dae09fb7fe41d9861d8 (patch) | |
| tree | 10d60e5b2f619e9aecaa49cf8ed6bd134b81badc | |
| parent | b55f3a3b94dd05741856c7d3b24eb3df5e06bf9f (diff) | |
qcacld-2.0: CL 5169767 - Update fw common interface files
FFT Bin scaling implementation support
CRs-fixed: 865207
Change-Id: I1afe3053a26d327ddacc201e7aa9563872a98a80
| -rw-r--r-- | CORE/SERVICES/COMMON/wmi_tlv_defs.h | 4 | ||||
| -rw-r--r-- | CORE/SERVICES/COMMON/wmi_unified.h | 22 | ||||
| -rw-r--r-- | CORE/SERVICES/COMMON/wmi_version.h | 2 |
3 files changed, 26 insertions, 2 deletions
diff --git a/CORE/SERVICES/COMMON/wmi_tlv_defs.h b/CORE/SERVICES/COMMON/wmi_tlv_defs.h index 5252accff71b..b04dc77eaeb4 100644 --- a/CORE/SERVICES/COMMON/wmi_tlv_defs.h +++ b/CORE/SERVICES/COMMON/wmi_tlv_defs.h @@ -919,6 +919,7 @@ typedef enum { WMITLV_TAG_STRUC_wmi_obss_spatial_reuse_set_cmd_fixed_param, WMITLV_TAG_STRUC_wmi_esp_estimate_event_fixed_param, WMITLV_TAG_STRUC_wmi_nan_host_config_param, + WMITLV_TAG_STRUC_wmi_spectral_bin_scaling_params, } WMITLV_TAG_ID; /* @@ -3762,7 +3763,8 @@ WMITLV_CREATE_PARAM_STRUC(WMI_SERVICE_AVAILABLE_EVENTID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, WMI_MAC_PHY_CHAINMASK_COMBO, mac_phy_chainmask_combo, WMITLV_SIZE_VAR) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, WMI_MAC_PHY_CHAINMASK_CAPABILITY, mac_phy_chainmask_caps, WMITLV_SIZE_VAR) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_WMI_SAR_CAPABILITIES, WMI_SAR_CAPABILITIES, sar_caps, WMITLV_SIZE_FIX) \ - WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, WMI_DMA_RING_CAPABILITIES, dma_ring_caps, WMITLV_SIZE_VAR) + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, WMI_DMA_RING_CAPABILITIES, dma_ring_caps, WMITLV_SIZE_VAR) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_spectral_bin_scaling_params, wmi_bin_scaling_params, WMITLV_SIZE_VAR) WMITLV_CREATE_PARAM_STRUC(WMI_SERVICE_READY_EXT_EVENTID); /* Ready event */ diff --git a/CORE/SERVICES/COMMON/wmi_unified.h b/CORE/SERVICES/COMMON/wmi_unified.h index 3c1f6a0da768..f725fefa9cd0 100644 --- a/CORE/SERVICES/COMMON/wmi_unified.h +++ b/CORE/SERVICES/COMMON/wmi_unified.h @@ -23441,6 +23441,28 @@ typedef struct { A_INT32 noise_floor[WMI_MAX_CHAINS]; } wmi_dma_buf_release_spectral_meta_data; +typedef enum { + NO_SCALING = 0, /* No bin scaling*/ + /** + * scaled_bin_mag = bin_mag * + * sqrt(10^(max(legacy_max_gain - default_agc_max_gain + low_level_offset - RSSI_corr, + * (agc_total_gain_db < default_agc_max_gain) * high_level_offset)/10)) * + * 2^(DET{0,1,2}_SPECTRAL_SCAN_BIN_SCALE - legacy_spectral_scan_bin_scale) + */ + AGC_GAIN_RSSI_CORR_BASED = 1, +} WMI_SPECTRAL_SCALING_FORMULA_ID; + +typedef struct +{ + A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_spectral_bin_scaling_params */ + A_UINT32 pdev_id; /* ID of pdev to which the scaling parameters are to be applied */ + WMI_SPECTRAL_SCALING_FORMULA_ID formula_id; /* Represets the formula to be used */ + A_UINT32 low_level_offset; /* low level offset for fine tuning the scaling factor based on RSSI and AGC gain */ + A_UINT32 high_level_offset; /* high level offset for fine tuning the scaling factor based on RSSI and AGC gain */ + A_UINT32 rssi_thr; /* RSSI threshold to be used to adjust the inband power of the given spectral report */ + A_UINT32 default_agc_max_gain;/* DEFAULT AGC MAX GAIN used. Fetched from register RXTD_RADAR_SBS_CTRL_1_L bits20:13 */ +} wmi_spectral_bin_scaling_params; + typedef struct { A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_runtime_dpd_recal_cmd_fixed_param */ A_UINT32 enable; /* Enable/disable */ diff --git a/CORE/SERVICES/COMMON/wmi_version.h b/CORE/SERVICES/COMMON/wmi_version.h index da4486c419e9..46a283a926cd 100644 --- a/CORE/SERVICES/COMMON/wmi_version.h +++ b/CORE/SERVICES/COMMON/wmi_version.h @@ -36,7 +36,7 @@ #define __WMI_VER_MINOR_ 0 /** WMI revision number has to be incremented when there is a * change that may or may not break compatibility. */ -#define __WMI_REVISION_ 563 +#define __WMI_REVISION_ 564 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work |
