Skip to content

Commit b24bbad

Browse files
cvinayakcfriedt
authored andcommitted
Bluetooth: Controller: Fix to ignore aux ptr in scannable advertising
Fix to ignore aux pointer struct in scanning advertising, to avoid ULL scheduling from setting up ticker to receive chain PDUs while LLL is receiving scan response PDU. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent a7baa36 commit b24bbad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

subsys/bluetooth/controller/ll_sw/ull_scan_aux.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,11 @@ void ull_scan_aux_setup(memq_link_t *link, struct node_rx_hdr *rx)
340340
ull_sync_chm_update(rx->handle, ptr, acad_len);
341341
}
342342

343-
if (!aux_ptr || !aux_ptr->offs ||
343+
/* Do not ULL scheduling auxiliary PDU reception if not aux pointer
344+
* or aux pointer is zero or scannable advertising has erroneous aux
345+
* pointer being present or PHY in the aux pointer is invalid.
346+
*/
347+
if (!aux_ptr || !aux_ptr->offs || is_scan_req ||
344348
(aux_ptr->phy > EXT_ADV_AUX_PHY_LE_CODED)) {
345349
if (is_scan_req) {
346350
LL_ASSERT(aux && aux->rx_last);

0 commit comments

Comments
 (0)