Bluetooth: BAP: Broadcast source enabling state transition fix
Since we may go from enabling to qos-configured state if the call to bt_iso_big_create fails, that is a valid transition. If bt_iso_big_create currently fails, then the source ends in a state where it cannot be recovered. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
f4b83415d6
commit
590d3e1114
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ static void broadcast_source_set_ep_state(struct bt_bap_ep *ep, uint8_t state)
|
|||
}
|
||||
break;
|
||||
case BT_BAP_EP_STATE_ENABLING:
|
||||
if (state != BT_BAP_EP_STATE_STREAMING) {
|
||||
if (state != BT_BAP_EP_STATE_STREAMING && state != BT_BAP_EP_STATE_QOS_CONFIGURED) {
|
||||
LOG_DBG("Invalid broadcast sync endpoint state transition");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue