Commit 2461552e authored by Vinayak Kariappa Chettimada's avatar Vinayak Kariappa Chettimada Committed by Benjamin Cabé
Browse files

Bluetooth: Controller: Fix Periodic Sync for multiple chain reception



Fix regression introduced in Periodic Advertising
Synchronization due to change related to multiple
Advertising chain reception.

Related commit c334ed51 ("Bluetooth: Controller: Fix
multiple Extended Adv chain reception"), and
commit da792a9e ("Bluetooth: Controller: Fix interleaved
extended scanning assert").

Signed-off-by: default avatarVinayak Kariappa Chettimada <vich@nordicsemi.no>
parent 571f26cf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -834,6 +834,7 @@ static int isr_rx(struct lll_sync *lll, uint8_t node_type, uint8_t crc_ok,

			ftr = &(node_rx->rx_ftr);
			ftr->param = lll;
			ftr->lll_aux = lll->lll_aux;
			ftr->aux_failed = 0U;
			ftr->rssi = (rssi_ready) ? radio_rssi_get() :
						   BT_HCI_LE_RSSI_NOT_AVAILABLE;
+7 −1
Original line number Diff line number Diff line
@@ -293,7 +293,13 @@ void ull_scan_aux_setup(memq_link_t *link, struct node_rx_pdu *rx)
			 */
			sync_lll = ftr->param;

			lll_aux = sync_lll->lll_aux;
			/* We can not retrieve aux context that was stored in
			 * lll_sync when superior PDU was handled, as it may be
			 * reset to NULL before this node rx is processed here.
			 * The reset happens when new Periodic Advertising chain
			 * is being received before we process the node here.
			 */
			lll_aux =  ftr->lll_aux;
			LL_ASSERT(lll_aux);

			aux = HDR_LLL2ULL(lll_aux);