bap: Fix not able to reconfigure
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 28 Nov 2022 23:31:28 +0000 (15:31 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:11:34 +0000 (15:41 +0530)
While attempting to configure QoS setting the request id is not reset
to 0 when a response is received which prevents any the QoS to be
reconfigured.

profiles/audio/bap.c

index b1e17f4..32edc34 100644 (file)
@@ -368,6 +368,8 @@ static void qos_cb(struct bt_bap_stream *stream, uint8_t code, uint8_t reason,
 
        DBG("stream %p code 0x%02x reason 0x%02x", stream, code, reason);
 
+       ep->id = 0;
+
        if (!ep->msg)
                return;