Bluetooth: ll_sync_create_cancel fails with BT_HCI_ERR_CMD_DISALLOWED before BT_HCI_EVT_LE_PER_ADV_SYNC_ESTABLISHED is generated #40204
Labels
area: Bluetooth Controller
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
After change of moment when BT_HCI_EVT_LE_PER_ADV_SYNC_ESTABLISHED event is send to host (when first periodic advertising PDU is received) the ll_sync_create_cancel stopped to correctly. It can't be called after
ull_sync_setup
is called because scan->per_scan.sync is set to NULL inull_sync_setup
.To Reproduce
Deleting Periodic Advertising Sync... failed
Expected behavior
Periodic advertising should be successfully cancelled or deleted before BT_HCI_EVT_LE_PER_ADV_SYNC_ESTABLISHED event is generated.
Impact
Moderate, it is related with periodic advertising only.
The text was updated successfully, but these errors were encountered: