Преглед на файлове

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
Edayilliam Jayadev преди 5 години
родител
ревизия
b3a66311cc

+ 1 - 0
spectral/dispatcher/inc/spectral_ioctl.h

@@ -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;
 
 /**

+ 3 - 0
target_if/spectral/target_if_spectral.c

@@ -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;

+ 1 - 0
target_if/spectral/target_if_spectral.h

@@ -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;

+ 1 - 0
target_if/spectral/target_if_spectral_netlink.c

@@ -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;