Bluetooth: BAP: Add missing reset of client on disconnected
If we disconnect in the middle of e.g. a discovery, then client-busy (and other values) were not correctly reset, which effectively rendered the client useless. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
055ac61542
commit
8b8569e1da
1 changed files with 6 additions and 0 deletions
|
@ -2086,6 +2086,7 @@ static void unicast_client_reset(struct bt_bap_ep *ep, uint8_t reason)
|
|||
|
||||
static void unicast_client_ep_reset(struct bt_conn *conn, uint8_t reason)
|
||||
{
|
||||
struct unicast_client *client;
|
||||
uint8_t index;
|
||||
|
||||
LOG_DBG("conn %p", conn);
|
||||
|
@ -2107,6 +2108,11 @@ static void unicast_client_ep_reset(struct bt_conn *conn, uint8_t reason)
|
|||
unicast_client_reset(ep, reason);
|
||||
}
|
||||
#endif /* CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT > 0 */
|
||||
|
||||
client = &uni_cli_insts[index];
|
||||
client->busy = false;
|
||||
client->dir = 0U;
|
||||
reset_att_buf(client);
|
||||
}
|
||||
|
||||
static void bt_audio_codec_qos_to_cig_param(struct bt_iso_cig_param *cig_param,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue