bluetooth: Fix cte_type value in periodic adv sync report

Periodic advertising sync report returned wrong cte_type value.
This commit fixes the problem.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
This commit is contained in:
Piotr Pryga 2021-05-06 02:51:58 +02:00 committed by Carles Cufí
commit ce56f046e5
3 changed files with 6 additions and 3 deletions

View file

@ -5267,7 +5267,10 @@ static void le_per_adv_sync_report(struct pdu_data *pdu_data,
/* No TargetA */
if (h->cte_info) {
cte_type = *(int8_t *)ptr;
struct pdu_cte_info *cte_info;
cte_info = (void *)ptr;
cte_type = cte_info->type;
ptr++;
BT_DBG(" CTE type= %d", cte_type);