Skip to content

Commit 9694e85

Browse files
MariuszSkamracarlescufi
authored andcommitted
Bluetooth: ascs: Drop ISO PDUs if ASE is not in streaming state
This fixes missing drop of ISO Data PDUs received in non-streaming state. The server shall indicate first it's readiness to receive the ISO Data by calling bt_bap_stream_start that triggers state transition from Enabling to Streaming state. Signed-off-by: Mariusz Skamra <[email protected]>
1 parent f4550db commit 9694e85

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

subsys/bluetooth/audio/ascs.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -671,10 +671,12 @@ static void ascs_iso_recv(struct bt_iso_chan *chan,
671671
return;
672672
}
673673

674-
if (IS_ENABLED(CONFIG_BT_BAP_DEBUG_STREAM_DATA) &&
675-
ep->status.state != BT_BAP_EP_STATE_STREAMING) {
676-
LOG_DBG("ep %p is not in the streaming state: %s", ep,
677-
bt_bap_ep_state_str(ep->status.state));
674+
if (ep->status.state != BT_BAP_EP_STATE_STREAMING) {
675+
if (IS_ENABLED(CONFIG_BT_BAP_DEBUG_STREAM_DATA)) {
676+
LOG_DBG("ep %p is not in the streaming state: %s", ep,
677+
bt_bap_ep_state_str(ep->status.state));
678+
}
679+
678680
return;
679681
}
680682

0 commit comments

Comments
 (0)