qcacmn: Add support for Spectral FFT recapture config

Add support to handle the FFT recapture config and
pass this to FW. The recapture feature must be
enabled only for spectral scan period > 52 us and
Normal Spectral scan.

Change-Id: I6b92fcd674ae95bcd0a23892ef9ccc6ba487d6ad
CRs-Fixed: 3140890
Esse commit está contido em:
Jhalak Naik
2022-03-01 10:32:46 +05:30
commit de Madan Koyyalamudi
commit 24174b7be8
5 arquivos alterados com 37 adições e 3 exclusões

Ver arquivo

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2011, 2017-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -247,6 +248,7 @@ struct spectral_config_frequency {
* struct spectral_config - spectral config parameters
* @ss_fft_period: Skip interval for FFT reports
* @ss_period: Spectral scan period
* @ss_recapture Set this to allow FFT recapture if scan period > 52us
* @ss_count: # of reports to return from ss_active
* @ss_short_report: Set to report only 1 set of FFT results
* @radar_bin_thresh_sel: Select threshold to classify strong bin for FFT
@@ -322,6 +324,7 @@ struct spectral_config_frequency {
struct spectral_config {
uint16_t ss_fft_period;
uint16_t ss_period;
uint16_t ss_recapture;
uint16_t ss_count;
uint16_t ss_short_report;
uint8_t radar_bin_thresh_sel;
@@ -410,6 +413,8 @@ struct spectral_caps {
#define MAX_NUM_DETECTORS (2)
#define MAX_SPECTRAL_PAYLOAD (3028)
#define SPECTRAL_RECAPTURE_SCAN_PERIOD_THRESHOLD (52)
/**
* enum dcs_int_type - Interference type indicated by DCS
* @SPECTRAL_DCS_INT_NONE: No interference

Ver arquivo

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2011,2017-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
*
* Permission to use, copy, modify, and/or distribute this software for
@@ -89,6 +90,7 @@
#define SPECTRAL_SCAN_DBM_ADJ_DEFAULT (1)
#define SPECTRAL_SCAN_CHN_MASK_DEFAULT (1)
#define SPECTRAL_SCAN_FREQUENCY_DEFAULT (0)
#define SPECTRAL_FFT_RECAPTURE_DEFAULT (0)
#endif /* SPECTRAL_USE_EMU_DEFAULTS */
/* The below two definitions apply only to pre-11ac chipsets */