From 080bb9eeb9463d682b02dfe5760a27dd43a3e483 Mon Sep 17 00:00:00 2001 From: Abhishek Ambure Date: Thu, 4 Jun 2020 21:13:25 +0530 Subject: [PATCH] qcacmn: Enable spectral scan support for QCA6750 Enable host support of spectral scan for QCA6750 target. Change-Id: I0629e6f4563bd42ca07b7c5d82a71b8198b48c07 CRs-Fixed: 2702868 --- target_if/spectral/target_if_spectral.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/target_if/spectral/target_if_spectral.c b/target_if/spectral/target_if_spectral.c index 367aeef7ad4e..91e34dc8b33d 100644 --- a/target_if/spectral/target_if_spectral.c +++ b/target_if/spectral/target_if_spectral.c @@ -2133,7 +2133,8 @@ target_if_spectral_len_adj_swar_init(struct spectral_fft_bin_len_adj_swar *swar, uint32_t target_type) { if (target_type == TARGET_TYPE_QCA8074V2 || - target_type == TARGET_TYPE_QCN9000) + target_type == TARGET_TYPE_QCN9000 || + target_type == TARGET_TYPE_QCA6750) swar->fftbin_size_war = SPECTRAL_FFTBIN_SIZE_WAR_2BYTE_TO_1BYTE; else if (target_type == TARGET_TYPE_QCA8074 || target_type == TARGET_TYPE_QCA6018 || @@ -2182,7 +2183,8 @@ target_if_spectral_report_params_init( * initialization is done for gen3 alone. In future if other generations * needs to use them they have to add proper initial values. */ - if (target_type == TARGET_TYPE_QCN9000) { + if (target_type == TARGET_TYPE_QCN9000 || + target_type == TARGET_TYPE_QCA6750) { rparams->version = SPECTRAL_REPORT_FORMAT_VERSION_2; rparams->num_spectral_detectors = NUM_SPECTRAL_DETECTORS_GEN3_V2; @@ -2341,7 +2343,8 @@ target_if_pdev_spectral_init(struct wlan_objmgr_pdev *pdev) target_type == TARGET_TYPE_QCA8074V2 || target_type == TARGET_TYPE_QCA6018 || target_type == TARGET_TYPE_QCA6390 || - target_type == TARGET_TYPE_QCN9000) + target_type == TARGET_TYPE_QCN9000 || + target_type == TARGET_TYPE_QCA6750) spectral->direct_dma_support = true; target_if_spectral_len_adj_swar_init(&spectral->len_adj_swar, @@ -2354,7 +2357,8 @@ target_if_pdev_spectral_init(struct wlan_objmgr_pdev *pdev) (target_type == TARGET_TYPE_QCA5018) || (target_type == TARGET_TYPE_QCN9000) || (target_type == TARGET_TYPE_QCA6290) || - (target_type == TARGET_TYPE_QCA6390)) { + (target_type == TARGET_TYPE_QCA6390) || + (target_type == TARGET_TYPE_QCA6750)) { spectral->spectral_gen = SPECTRAL_GEN3; spectral->hdr_sig_exp = SPECTRAL_PHYERR_SIGNATURE_GEN3; spectral->tag_sscan_summary_exp =