Commit e72d8639 authored by Vinayak Kariappa Chettimada's avatar Vinayak Kariappa Chettimada Committed by Carles Cufi
Browse files

Bluetooth: Controller: Use define for invalid advertising handle



Use define for invalid advertising handle.

Signed-off-by: default avatarVinayak Kariappa Chettimada <vich@nordicsemi.no>
parent ff56ad80
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -334,6 +334,9 @@ struct node_rx_iso_meta {
/* Define invalid/unassigned Controller LLL context handle */
#define LLL_HANDLE_INVALID     0xFFFF

/* Define invalid/unassigned Controller Advertising LLL context handle */
#define LLL_ADV_HANDLE_INVALID 0xFF

/* Header of node_rx_pdu */
struct node_rx_hdr {
	union {
+2 −2
Original line number Diff line number Diff line
@@ -609,7 +609,7 @@ void ull_adv_iso_done_terminate(struct node_rx_event_done *done)
	lll = &adv_iso->lll;

	/* Skip if terminated already (we come here if pipeline being flushed */
	if (unlikely(lll->handle == 0xFF)) {
	if (unlikely(lll->handle == LLL_ADV_HANDLE_INVALID)) {
		return;
	}

@@ -620,7 +620,7 @@ void ull_adv_iso_done_terminate(struct node_rx_event_done *done)
		  (ret == TICKER_STATUS_BUSY));

	/* Invalidate the handle */
	lll->handle = 0xFF;
	lll->handle = LLL_ADV_HANDLE_INVALID;
}

static int init_reset(void)