Bluetooth: host: Expose per adv evt counter in CTE IQ report.

Allows the application to access the periodic advertising counter.

Signed-off-by: Jakob Krantz <jakob.krantz@u-blox.com>
This commit is contained in:
Jakob Krantz 2021-11-26 10:17:29 +01:00 committed by Anas Nashif
commit 2f6b9ce406
2 changed files with 3 additions and 0 deletions

View file

@ -101,6 +101,8 @@ struct bt_df_per_adv_sync_iq_samples_report {
uint8_t slot_durations; uint8_t slot_durations;
/** Status of received PDU with CTE (@ref bt_df_packet_status). */ /** Status of received PDU with CTE (@ref bt_df_packet_status). */
uint8_t packet_status; uint8_t packet_status;
/** Value of the paEventCounter of the AUX_SYNC_IND PDU. */
uint16_t per_evt_counter;
/** Number of IQ samples in report. */ /** Number of IQ samples in report. */
uint8_t sample_count; uint8_t sample_count;
/** Pinter to IQ samples data. */ /** Pinter to IQ samples data. */

View file

@ -351,6 +351,7 @@ void hci_df_prepare_connectionless_iq_report(struct net_buf *buf,
report->cte_type = BIT(evt->cte_type); report->cte_type = BIT(evt->cte_type);
report->packet_status = evt->packet_status; report->packet_status = evt->packet_status;
report->slot_durations = evt->slot_durations; report->slot_durations = evt->slot_durations;
report->per_evt_counter = sys_le16_to_cpu(evt->per_evt_counter);
report->sample_count = evt->sample_count; report->sample_count = evt->sample_count;
report->sample = &evt->sample[0]; report->sample = &evt->sample[0];