qcacmn: Add Spectral detector count in capability info

Populate number of Spectral detectors per BW in the
Spectral capability vendor command response.

CRs-Fixed: 2659587
Change-Id: I2eba5df02a5f70556d65e689aece1f0fbd8bba93
This commit is contained in:
Edayilliam Jayadev
2020-04-08 12:58:55 +05:30
committed by nshrivas
parent 6fe8fb5880
commit f76792f311
4 changed files with 59 additions and 11 deletions

View File

@@ -284,6 +284,11 @@ struct spectral_config {
* @agile_spectral_cap: agile Spectral capability for 20/40/80
* @agile_spectral_cap_160: agile Spectral capability for 160 MHz
* @agile_spectral_cap_80p80: agile Spectral capability for 80p80
* @num_detectors_20mhz: number of Spectral detectors in 20 MHz
* @num_detectors_40mhz: number of Spectral detectors in 40 MHz
* @num_detectors_80mhz: number of Spectral detectors in 80 MHz
* @num_detectors_160mhz: number of Spectral detectors in 160 MHz
* @num_detectors_80p80mhz: number of Spectral detectors in 80p80 MHz
*/
struct spectral_caps {
uint8_t phydiag_cap;
@@ -300,6 +305,11 @@ struct spectral_caps {
bool agile_spectral_cap;
bool agile_spectral_cap_160;
bool agile_spectral_cap_80p80;
uint32_t num_detectors_20mhz;
uint32_t num_detectors_40mhz;
uint32_t num_detectors_80mhz;
uint32_t num_detectors_160mhz;
uint32_t num_detectors_80p80mhz;
};
#define SPECTRAL_IOCTL_PARAM_NOVAL (65535)