Skip to content

Commit 7b94d57

Browse files
MariuszSkamracarlescufi
authored andcommitted
Bluetooth: unicast_client: Drop ISO PDUs if ASE is not in streaming state
This fixes missing drop of ISO Data PDUs received in non-streaming state. The client shall indicate first it's readiness to receive the ISO Data. Signed-off-by: Mariusz Skamra <[email protected]>
1 parent 91ad386 commit 7b94d57

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

subsys/bluetooth/audio/bap_unicast_client.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,12 @@ static void unicast_client_ep_iso_recv(struct bt_iso_chan *chan,
235235
return;
236236
}
237237

238-
if (IS_ENABLED(CONFIG_BT_BAP_DEBUG_STREAM_DATA) &&
239-
ep->status.state != BT_BAP_EP_STATE_STREAMING) {
240-
LOG_DBG("ep %p is not in the streaming state: %s", ep,
241-
bt_bap_ep_state_str(ep->status.state));
238+
if (ep->status.state != BT_BAP_EP_STATE_STREAMING) {
239+
if (IS_ENABLED(CONFIG_BT_BAP_DEBUG_STREAM_DATA)) {
240+
LOG_DBG("ep %p is not in the streaming state: %s", ep,
241+
bt_bap_ep_state_str(ep->status.state));
242+
}
243+
242244
return;
243245
}
244246

0 commit comments

Comments
 (0)