qcacmn: Add Agile Spectral frequency to Spectral SAMP message

Add Agile Spectral frequency to Spectral SAMP message and populate the
same. This coexists with the pre-existing operational frequency in
SAMP message for the sake of flexibility.

Change-Id: Iadb8efeaac924df5b0ac9a83f630206b2ef93052
CRs-Fixed: 2545763
Цей коміт міститься в:
Krishna Rao
2019-10-15 16:57:02 +05:30
зафіксовано nshrivas
джерело be7b7b2562
коміт 5304724e59
4 змінених файлів з 13 додано та 0 видалено

Переглянути файл

@@ -980,6 +980,8 @@ struct target_if_spectral {
* @freq: Center frequency of primary 20MHz channel in MHz
* @vhtop_ch_freq_seg1: VHT operation first segment center frequency in MHz
* @vhtop_ch_freq_seg2: VHT operation second segment center frequency in MHz
* @agile_freq: Center frequency in MHz of the entire span across which Agile
* Spectral is carried out. Applicable only for Agile Spectral samples.
* @freq_loading: spectral control duty cycles
* @noise_floor: current noise floor (except for secondary 80 segment)
* @noise_floor_sec80: current noise floor for secondary 80 segment
@@ -1026,6 +1028,7 @@ struct target_if_samp_msg_params {
uint16_t freq;
uint16_t vhtop_ch_freq_seg1;
uint16_t vhtop_ch_freq_seg2;
uint16_t agile_freq;
uint16_t freq_loading;
int16_t noise_floor;
int16_t noise_floor_sec80;

Переглянути файл

@@ -72,6 +72,8 @@ target_if_spectral_create_samp_msg(struct target_if_spectral *spectral,
spec_samp_msg->signature = SPECTRAL_SIGNATURE;
spec_samp_msg->freq = params->freq;
if (params->smode == SPECTRAL_SCAN_MODE_AGILE)
spec_samp_msg->agile_freq = params->agile_freq;
spec_samp_msg->freq_loading = params->freq_loading;
samp_data->spectral_mode = params->smode;
samp_data->spectral_data_len = params->datalen;

Переглянути файл

@@ -1753,6 +1753,10 @@ target_if_consume_spectral_report_gen3(
SPECTRAL_FFT_BINS_POS);
params.freq = p_sops->get_current_channel(spectral);
if (params.smode == SPECTRAL_SCAN_MODE_AGILE)
params.agile_freq =
spectral->params[params.smode].ss_frequency;
/*
* For modes upto VHT80, the noise floor is populated with
* the one corresponding