qcacmn: Add support to process spectral scan detector info tlv

FW sends Spectral scan detector info TLV in WMI_PDEV_SSCAN_FW_PARAM
event to indicate the information of a detector participating in a sscan
session. FW sends one TLV of this type for each detector participating
in a spectral scan session. Add support to process the TLV and update
the spectral host data structures accordingly.

CRs-Fixed: 3044193
Change-Id: Ie17b6ea9336ada7a00e4594fa2f7f49ef3d443e5
This commit is contained in:
Shiva Krishna Pittala
2021-09-26 02:12:20 +05:30
committed by Madan Koyyalamudi
parent e991ce3cdd
commit 61f4418d7a
8 changed files with 253 additions and 16 deletions

View File

@@ -2939,11 +2939,13 @@ struct spectral_fft_bin_markers_160_165mhz {
* @pdev_id: Pdev id
* @smode: Spectral scan mode
* @num_fft_bin_index: Number of TLVs with FFT bin start and end indices
* @num_det_info: Number of detector info TLVs
*/
struct spectral_startscan_resp_params {
uint32_t pdev_id;
enum spectral_scan_mode smode;
uint8_t num_fft_bin_index;
uint8_t num_det_info;
};
/**
@@ -2981,6 +2983,18 @@ struct spectral_session_chan_info {
enum phy_ch_width sscan_bw;
uint16_t sscan_puncture_20mhz_bitmap;
};
/**
* struct spectral_session_det_info - Detector info for a spectral scan session
* @det_id: detector ID
* @start_freq: start frequency (in MHz) of this detector
* @end_freq: end frequency (in MHz) of this detector
*/
struct spectral_session_det_info {
uint8_t det_id;
qdf_freq_t start_freq;
qdf_freq_t end_freq;
};
#endif
/**