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:
parent
7cdbeb541a
commit
ce56f046e5
3 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue