From 81e70bb15389b98a952048a0ad3326322f47e481 Mon Sep 17 00:00:00 2001 From: Basamma Yakkanahalli Date: Tue, 7 Jul 2020 14:52:01 +0530 Subject: [PATCH] qcacmn: Enable Spectral feature for ipq5018 target a. Enable DDMA support and FFT bin length adjustment SWARs b. Similar to QCN9000, Skip 16 bytes of unused padding added after Spectral summary report FFT report header length is 24 Change-Id: I870f198511771dccbb0300ff62fc15ab0d64ee7f --- target_if/spectral/target_if_spectral.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target_if/spectral/target_if_spectral.c b/target_if/spectral/target_if_spectral.c index 91e34dc8b33d..7e9a20cad577 100644 --- a/target_if/spectral/target_if_spectral.c +++ b/target_if/spectral/target_if_spectral.c @@ -1393,7 +1393,8 @@ target_if_init_spectral_param_min_max( param_min_max->fft_size_min = SPECTRAL_PARAM_FFT_SIZE_MIN_GEN3; param_min_max->fft_size_max[CH_WIDTH_20MHZ] = SPECTRAL_PARAM_FFT_SIZE_MAX_GEN3_DEFAULT; - if (target_type == TARGET_TYPE_QCN9000) { + if (target_type == TARGET_TYPE_QCN9000 || + target_type == TARGET_TYPE_QCA5018) { param_min_max->fft_size_max[CH_WIDTH_40MHZ] = SPECTRAL_PARAM_FFT_SIZE_MAX_GEN3_QCN9000; param_min_max->fft_size_max[CH_WIDTH_80MHZ] = @@ -2134,6 +2135,7 @@ target_if_spectral_len_adj_swar_init(struct spectral_fft_bin_len_adj_swar *swar, { if (target_type == TARGET_TYPE_QCA8074V2 || target_type == TARGET_TYPE_QCN9000 || + target_type == TARGET_TYPE_QCA5018 || target_type == TARGET_TYPE_QCA6750) swar->fftbin_size_war = SPECTRAL_FFTBIN_SIZE_WAR_2BYTE_TO_1BYTE; else if (target_type == TARGET_TYPE_QCA8074 || @@ -2146,6 +2148,7 @@ target_if_spectral_len_adj_swar_init(struct spectral_fft_bin_len_adj_swar *swar, if (target_type == TARGET_TYPE_QCA8074 || target_type == TARGET_TYPE_QCA8074V2 || target_type == TARGET_TYPE_QCA6018 || + target_type == TARGET_TYPE_QCA5018 || target_type == TARGET_TYPE_QCN9000) { swar->inband_fftbin_size_adj = 1; swar->null_fftbin_adj = 1; @@ -2184,6 +2187,7 @@ target_if_spectral_report_params_init( * needs to use them they have to add proper initial values. */ if (target_type == TARGET_TYPE_QCN9000 || + target_type == TARGET_TYPE_QCA5018 || target_type == TARGET_TYPE_QCA6750) { rparams->version = SPECTRAL_REPORT_FORMAT_VERSION_2; rparams->num_spectral_detectors = @@ -2342,6 +2346,7 @@ target_if_pdev_spectral_init(struct wlan_objmgr_pdev *pdev) if (target_type == TARGET_TYPE_QCA8074 || target_type == TARGET_TYPE_QCA8074V2 || target_type == TARGET_TYPE_QCA6018 || + target_type == TARGET_TYPE_QCA5018 || target_type == TARGET_TYPE_QCA6390 || target_type == TARGET_TYPE_QCN9000 || target_type == TARGET_TYPE_QCA6750)