qcacmn: Add "blanking status" field in SAMP message
Add "blanking status" field in Spectral SAMP message. CRs-Fixed: 3407155 Change-Id: I488a78cc06518a34b1adcf3db6ad4b3133115e9a
This commit is contained in:

committed by
Madan Koyyalamudi

parent
603646bb1d
commit
bbede4e20d
@@ -533,6 +533,10 @@ SPECTRAL_COMPILE_TIME_ASSERT(struct_samp_edge_extra_bin_size_4byte_assertion,
|
||||
* @is_sec80: Indicates whether the frequency span corresponds to pri80 or
|
||||
* sec80 (only applicable for 160/80p80 operating_bw for
|
||||
* smode SPECTRAL_SCAN_MODE_NORMAL)
|
||||
* @blanking_status: Indicates whether scan blanking was enabled during this
|
||||
* spectral report capture. This field is applicable only when scan blanking
|
||||
* feature is enabled. When scan blanking feature is disabled, this field
|
||||
* will be set to zero.
|
||||
* @padding_detector_info: padding bytes
|
||||
*/
|
||||
struct samp_detector_info {
|
||||
@@ -556,8 +560,9 @@ struct samp_detector_info {
|
||||
uint8_t gainchange;
|
||||
uint8_t pri80ind;
|
||||
uint8_t is_sec80;
|
||||
uint8_t blanking_status;
|
||||
/* Padding bits to make struct size multiple of 4 bytes */
|
||||
uint8_t padding_detector_info[1];
|
||||
uint8_t padding_detector_info[0];
|
||||
} __packed;
|
||||
|
||||
/* Compile time assert to check struct size is divisible by 4 Bytes */
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2011,2017-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -1429,6 +1429,8 @@ struct target_if_psoc_spectral {
|
||||
* SPECTRAL_SCAN_MODE_AGILE, it indicates that Spectral was carried
|
||||
* out on pri80 instead of the Agile frequency due to a channel
|
||||
* switch - Software may choose to ignore the sample in this case.
|
||||
* @blanking_status: Indicates whether scan blanking was enabled during this
|
||||
* spectral report capture.
|
||||
* @bin_pwr_data: Contains FFT magnitudes
|
||||
*/
|
||||
struct target_if_samp_msg_params {
|
||||
@@ -1448,6 +1450,7 @@ struct target_if_samp_msg_params {
|
||||
uint8_t agc_total_gain;
|
||||
uint8_t gainchange;
|
||||
uint8_t pri80ind;
|
||||
uint8_t blanking_status;
|
||||
uint8_t *bin_pwr_data;
|
||||
};
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2011,2017-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
@@ -154,6 +154,7 @@ target_if_spectral_fill_samp_msg(struct target_if_spectral *spectral,
|
||||
detector_info->agc_total_gain = params->agc_total_gain;
|
||||
detector_info->gainchange = params->gainchange;
|
||||
detector_info->is_sec80 = map_det_info->is_sec80;
|
||||
detector_info->blanking_status = params->blanking_status;
|
||||
/* In 165MHz, Pri80 indication to be set for Span ID 0 only */
|
||||
if (span_id == SPECTRAL_FREQ_SPAN_ID_0)
|
||||
detector_info->pri80ind = params->pri80ind;
|
||||
|
Reference in New Issue
Block a user