qcacmn: Populate target_if_samp_msg_params for Spectral gen2

Add API target_if_spectral_populate_samp_params_gen2() to
populate fields in target_if_samp_msg_params, using
search fft report and target_if_spectral_rfqual_info
fields.

CRs-Fixed: 2961986
Change-Id: Iad970483f6183d2e52d97e6c3ddf8f146845fbe4
This commit is contained in:
Jhalak Naik
2021-05-26 19:29:35 +05:30
committed by Madan Koyyalamudi
parent 9cbb125f8e
commit a66fec0ada
2 changed files with 135 additions and 0 deletions

View File

@@ -274,6 +274,26 @@ typedef uint32_t SPECTRAL_SEGID_INFO;
struct spectral_phyerr_fft_gen2 {
uint8_t buf[0];
};
/**
* struct spectral_process_phyerr_info_gen2 - Processed phyerr info structures
* needed to fill SAMP params for gen2
* @p_rfqual: Pointer to RF quality info
* @p_sfft: Pointer to Search fft report info
* @pfft: Pointer to FFT info in Phyerr event
* @acs_stats: Pointer to ACS stats struct
* @tsf64: 64 bit TSF value
* @seg_d : Segment ID
*/
struct spectral_process_phyerr_info_gen2 {
struct target_if_spectral_rfqual_info *p_rfqual;
struct spectral_search_fft_info_gen2 *p_sfft;
struct spectral_phyerr_fft_gen2 *pfft;
struct target_if_spectral_acs_stats *acs_stats;
uint64_t tsf64;
uint8_t seg_id;
};
/* END of spectral GEN II HW specific details */
/* START of spectral GEN III HW specific details */