Bluetooth: Controller: Use define for invalid advertising handle
Use define for invalid advertising handle. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
ff56ad8074
commit
e72d86397b
@ -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 {
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user