qcacmn: Add Agile channel width to SAMP message

Add a new member to SAMP structure describing the channel width of
Agile Spectral scan.

Change-Id: Ib27fe9ed63bf8f89c59762150fb58943e6bcf7ea
CRs-Fixed: 2582670
This commit is contained in:
Edayilliam Jayadev
2019-12-09 19:28:20 +05:30
committed by Anjaneedevi Kapparapu
parent 42992cd389
commit b3a66311cc
4 changed files with 6 additions and 0 deletions

View File

@@ -444,6 +444,7 @@ struct spectral_samp_data {
uint32_t raw_timestamp_sec80;
uint32_t reset_delay;
uint32_t target_reset_count;
uint32_t agile_ch_width;
} __packed;
/**

View File

@@ -2954,6 +2954,9 @@ target_if_spectral_scan_enable_params(struct target_if_spectral *spectral,
if (spectral->ch_width == CH_WIDTH_INVALID)
return 1;
spectral->agile_ch_width =
target_if_spectral_find_agile_width(spectral->ch_width);
if (spectral->capability.advncd_spectral_cap) {
spectral->lb_edge_extrabins = 0;
spectral->rb_edge_extrabins = 0;

View File

@@ -932,6 +932,7 @@ struct target_if_spectral {
param_info[SPECTRAL_SCAN_MODE_MAX];
#endif
uint32_t ch_width;
uint32_t agile_ch_width;
struct spectral_diag_stats diag_stats;
bool is_160_format;
bool is_lb_edge_extrabins_format;

View File

@@ -79,6 +79,7 @@ target_if_spectral_create_samp_msg(struct target_if_spectral *spectral,
samp_data->spectral_data_len = params->datalen;
samp_data->spectral_rssi = params->rssi;
samp_data->ch_width = spectral->ch_width;
samp_data->agile_ch_width = spectral->agile_ch_width;
samp_data->spectral_agc_total_gain = params->agc_total_gain;
samp_data->spectral_gainchange = params->gainchange;
samp_data->spectral_pri80ind = params->pri80ind;