Bluetooth: controller: Remove is_enabled flag for BIS events
Remove is_enabled flag in LLL of BIS events context, as the status returned from ticker_stop interface is sufficient to determine if the Broadcast ISO Sync was established or not. HCI Command Disallow as reason is to be returned if sync was not established or sync was loss prior to call of HCI LE BIG Terminate Command was called. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
30740b4397
commit
0a23b1248f
2 changed files with 0 additions and 8 deletions
|
@ -6,5 +6,4 @@
|
|||
|
||||
struct lll_sync_iso {
|
||||
struct lll_hdr hdr;
|
||||
uint8_t is_enabled:1;
|
||||
};
|
||||
|
|
|
@ -92,7 +92,6 @@ uint8_t ll_big_sync_create(uint8_t big_handle, uint16_t sync_handle,
|
|||
/* Initialise ULL and LLL headers */
|
||||
ull_hdr_init(&sync_iso->ull);
|
||||
lll_hdr_init(lll_sync, sync);
|
||||
lll_sync->is_enabled = true;
|
||||
|
||||
return BT_HCI_ERR_SUCCESS;
|
||||
}
|
||||
|
@ -109,11 +108,6 @@ uint8_t ll_big_sync_terminate(uint8_t big_handle)
|
|||
return BT_HCI_ERR_UNKNOWN_ADV_IDENTIFIER;
|
||||
}
|
||||
|
||||
if (!sync_iso->lll.is_enabled) {
|
||||
return BT_HCI_ERR_CMD_DISALLOWED;
|
||||
}
|
||||
|
||||
/* TODO: Stop ticker */
|
||||
err = ull_ticker_stop_with_mark(
|
||||
TICKER_ID_SCAN_SYNC_ISO_BASE + big_handle,
|
||||
sync_iso, &sync_iso->lll);
|
||||
|
@ -128,7 +122,6 @@ uint8_t ll_big_sync_terminate(uint8_t big_handle)
|
|||
big_sync_estab = sync_iso->node_rx_estab.link;
|
||||
ll_rx_link_release(big_sync_estab);
|
||||
|
||||
sync_iso->lll.is_enabled = false;
|
||||
ull_sync_iso_release(sync_iso);
|
||||
|
||||
return BT_HCI_ERR_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue