Bluetooth: controller: Fix wrong channel index in IQ samples report

Fix wrong channel index send by controller in connectionless
IQ samples report. Former implementation reported value from
lll->data_chan_id which is not valid channel index.
Updated implementation reports value stored in IQ samples receive
node during periodic scanning event preparation.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
This commit is contained in:
Piotr Pryga 2021-06-07 18:32:43 +02:00 committed by Carles Cufí
commit 15375d4478
5 changed files with 13 additions and 11 deletions

View file

@ -2658,7 +2658,7 @@ static void le_df_connectionless_iq_report(struct pdu_data *pdu_rx,
sep->rssi_ant_id = iq_report->rssi_ant_id;
sep->cte_type = iq_report->cte_info.type;
sep->chan_idx = lll->data_chan_id;
sep->chan_idx = iq_report->chan_idx;
sep->per_evt_counter = sys_cpu_to_le16(lll->event_counter);
if (sep->cte_type == BT_HCI_LE_AOA_CTE) {