Skip to content

Commit e5ffc18

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: controller: Do not report Aux PDUs while initiating
Do not report auxiliary PDUs as advertising reports when in initiator state on auxiliary channels. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 472169b commit e5ffc18

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan_aux.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,11 @@ static int isr_rx_pdu(struct lll_scan_aux *lll, uint8_t devmatch_ok,
546546
lll->node_conn_rx = rx;
547547

548548
return 0;
549-
#endif /* CONFIG_BT_CENTRAL */
549+
550+
} else if (!lll_scan->conn) {
551+
#else /* !CONFIG_BT_CENTRAL */
550552
} else {
553+
#endif /* !CONFIG_BT_CENTRAL */
551554
ull_pdu_rx_alloc();
552555

553556
trx_cnt++;
@@ -567,10 +570,10 @@ static int isr_rx_pdu(struct lll_scan_aux *lll, uint8_t devmatch_ok,
567570
/* TODO: Use correct rl_idx value when privacy support is added */
568571
ftr->rl_idx = FILTER_IDX_NONE;
569572
#endif /* CONFIG_BT_CTLR_PRIVACY */
570-
}
571573

572-
ull_rx_put(node_rx->hdr.link, node_rx);
573-
ull_rx_sched();
574+
ull_rx_put(node_rx->hdr.link, node_rx);
575+
ull_rx_sched();
576+
}
574577

575578
return -ECANCELED;
576579
}

0 commit comments

Comments
 (0)