summaryrefslogtreecommitdiff
path: root/net-wireless/bluez/files
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/bluez/files')
-rw-r--r--net-wireless/bluez/files/bluez-5.68-bap-dettach-io.patch101
-rw-r--r--net-wireless/bluez/files/bluez-5.68-bap-ebusy-fix.patch206
-rw-r--r--net-wireless/bluez/files/bluez-5.68-bap-nonzero.patch27
-rw-r--r--net-wireless/bluez/files/bluez-5.68-bap-resume.patch187
-rw-r--r--net-wireless/bluez/files/bluez-5.68-clang-midi.patch83
-rw-r--r--net-wireless/bluez/files/bluez-5.68-heap-use-after-free.patch41
-rw-r--r--net-wireless/bluez/files/bluez-5.68-monitor-decoding.patch45
7 files changed, 0 insertions, 690 deletions
diff --git a/net-wireless/bluez/files/bluez-5.68-bap-dettach-io.patch b/net-wireless/bluez/files/bluez-5.68-bap-dettach-io.patch
deleted file mode 100644
index bb79fc42734b..000000000000
--- a/net-wireless/bluez/files/bluez-5.68-bap-dettach-io.patch
+++ /dev/null
@@ -1,101 +0,0 @@
-From 7b10e72de6f41585f087e6fc338106b44d3e69c9 Mon Sep 17 00:00:00 2001
-From: Pauli Virtanen <pav@iki.fi>
-Date: Sun, 2 Jul 2023 21:43:04 +0300
-Subject: shared/bap: detach io for source ASEs only after Stop Ready
-
-The Client may terminate a CIS when sink is in QOS and source in
-Disabling states (BAP v1.0.1 Sec 5.6.5). It may also terminate it when
-Receiver Stop Ready has completed successfully (BAP v1.0.1 Sec 5.6.5.1).
-
-It appears Samsung Galaxy Buds2 Pro (R510XXUOAWA5) ignores the Receiver
-Stop Ready command if CIS is already disconnected, and then gets stuck
-in disabling state. It works if CIS is disconnected after Receiver Stop
-Ready.
-
-For better compatibility as client for this device, and since it
-shouldn't matter for us in which order we do it, disconnect CIS after
-completion of Receiver Stop Ready, instead of immediately in Disabling.
-
-We disconnect also if Receiver Stop Ready fails, given that
-disconnecting in Disabled state should be OK.
-
-Link: https://github.com/bluez/bluez/issues/516
----
- src/shared/bap.c | 33 +++++++++++++++------------------
- 1 file changed, 15 insertions(+), 18 deletions(-)
-
-diff --git a/src/shared/bap.c b/src/shared/bap.c
-index a0f5a0ae3c..72ce67c086 100644
---- a/src/shared/bap.c
-+++ b/src/shared/bap.c
-@@ -1168,18 +1168,6 @@ static bool match_stream_io(const void *data, const void *user_data)
- return stream->io == io;
- }
-
--static void stream_stop_disabling(void *data, void *user_data)
--{
-- struct bt_bap_stream *stream = data;
--
-- if (stream->io || stream->ep->state != BT_ASCS_ASE_STATE_DISABLING)
-- return;
--
-- DBG(stream->bap, "stream %p", stream);
--
-- bt_bap_stream_stop(stream, NULL, NULL);
--}
--
- static bool bap_stream_io_detach(struct bt_bap_stream *stream)
- {
- struct bt_bap_stream *link;
-@@ -1198,9 +1186,6 @@ static bool bap_stream_io_detach(struct bt_bap_stream *stream)
- /* Detach link if in QoS state */
- if (link->ep->state == BT_ASCS_ASE_STATE_QOS)
- bap_stream_io_detach(link);
-- } else {
-- /* Links without IO on disabling state shall be stopped. */
-- queue_foreach(stream->links, stream_stop_disabling, NULL);
- }
-
- stream_io_unref(io);
-@@ -1244,6 +1229,15 @@ static struct bt_bap *bt_bap_ref_safe(struct bt_bap *bap)
- return bt_bap_ref(bap);
- }
-
-+static void stream_stop_complete(struct bt_bap_stream *stream, uint8_t code,
-+ uint8_t reason, void *user_data)
-+{
-+ DBG(stream->bap, "stream %p stop 0x%02x 0x%02x", stream, code, reason);
-+
-+ if (stream->ep->state == BT_ASCS_ASE_STATE_DISABLING)
-+ bap_stream_io_detach(stream);
-+}
-+
- static void bap_stream_state_changed(struct bt_bap_stream *stream)
- {
- struct bt_bap *bap = stream->bap;
-@@ -1271,7 +1265,9 @@ static void bap_stream_state_changed(struct bt_bap_stream *stream)
- bap_stream_update_io_links(stream);
- break;
- case BT_ASCS_ASE_STATE_DISABLING:
-- bap_stream_io_detach(stream);
-+ /* As client, we detach after Receiver Stop Ready */
-+ if (!stream->client)
-+ bap_stream_io_detach(stream);
- break;
- case BT_ASCS_ASE_STATE_QOS:
- if (stream->io && !stream->io->connecting)
-@@ -1305,8 +1301,9 @@ static void bap_stream_state_changed(struct bt_bap_stream *stream)
- bt_bap_stream_start(stream, NULL, NULL);
- break;
- case BT_ASCS_ASE_STATE_DISABLING:
-- if (!bt_bap_stream_get_io(stream))
-- bt_bap_stream_stop(stream, NULL, NULL);
-+ /* Send Stop Ready, and detach IO after remote replies */
-+ if (stream->client)
-+ bt_bap_stream_stop(stream, stream_stop_complete, NULL);
- break;
- }
-
---
-cgit
-
diff --git a/net-wireless/bluez/files/bluez-5.68-bap-ebusy-fix.patch b/net-wireless/bluez/files/bluez-5.68-bap-ebusy-fix.patch
deleted file mode 100644
index 72b875ba4b6f..000000000000
--- a/net-wireless/bluez/files/bluez-5.68-bap-ebusy-fix.patch
+++ /dev/null
@@ -1,206 +0,0 @@
-From 8c3170190d6f626869f1f382138caf3a16030462 Mon Sep 17 00:00:00 2001
-From: Pauli Virtanen <pav@iki.fi>
-Date: Sun, 2 Jul 2023 21:43:05 +0300
-Subject: bap: wait for CIG to become configurable before recreating CIS
-
-ISO sockets cannot be reconnected before all sockets in the same CIG
-have been closed, if the CIG was previously active.
-
-Keep track which endpoints have active CIG, and postpone connecting CIS
-until their CIG is no longer active.
-
-This addresses getting EBUSY from connect() when multiple CIS in the
-same CIG move streaming -> qos at the same time, which disconnects CIS
-and recreates them. The EBUSY originates from COMMAND_DISALLOWED
-response to Set CIG Parameters.
-
-This requires the kernel side do the Disconnect CIS / Remove CIG / Set
-CIG Parameters HCI command steps in the right order, when all old
-sockets are closed first before connecting new ones.
----
- profiles/audio/bap.c | 107 ++++++++++++++++++++++++++++++++++++++++++++++-----
- 1 file changed, 97 insertions(+), 10 deletions(-)
-
-diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
-index 8e2fc1556a..d7ce9e0389 100644
---- a/profiles/audio/bap.c
-+++ b/profiles/audio/bap.c
-@@ -68,6 +68,7 @@ struct bap_ep {
- GIOChannel *io;
- unsigned int io_id;
- bool recreate;
-+ bool cig_active;
- struct iovec *caps;
- struct iovec *metadata;
- struct bt_bap_qos qos;
-@@ -525,6 +526,7 @@ static void bap_io_close(struct bap_ep *ep)
-
- g_io_channel_unref(ep->io);
- ep->io = NULL;
-+ ep->cig_active = false;
- }
-
- static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg,
-@@ -988,7 +990,7 @@ drop:
- g_io_channel_shutdown(io, TRUE, NULL);
- }
-
--static void bap_accept_io(struct bap_data *data, struct bt_bap_stream *stream,
-+static void bap_accept_io(struct bap_ep *ep, struct bt_bap_stream *stream,
- int fd, int defer)
- {
- char c;
-@@ -1025,12 +1027,52 @@ static void bap_accept_io(struct bap_data *data, struct bt_bap_stream *stream,
- }
- }
-
-+ ep->cig_active = true;
-+
- return;
-
- fail:
- close(fd);
- }
-
-+struct cig_busy_data {
-+ struct btd_adapter *adapter;
-+ uint8_t cig;
-+};
-+
-+static bool cig_busy_ep(const void *data, const void *match_data)
-+{
-+ const struct bap_ep *ep = data;
-+ const struct cig_busy_data *info = match_data;
-+
-+ return (ep->qos.ucast.cig_id == info->cig) && ep->cig_active;
-+}
-+
-+static bool cig_busy_session(const void *data, const void *match_data)
-+{
-+ const struct bap_data *session = data;
-+ const struct cig_busy_data *info = match_data;
-+
-+ if (device_get_adapter(session->device) != info->adapter)
-+ return false;
-+
-+ return queue_find(session->snks, cig_busy_ep, match_data) ||
-+ queue_find(session->srcs, cig_busy_ep, match_data);
-+}
-+
-+static bool is_cig_busy(struct bap_data *data, uint8_t cig)
-+{
-+ struct cig_busy_data info;
-+
-+ if (cig == BT_ISO_QOS_CIG_UNSET)
-+ return false;
-+
-+ info.adapter = device_get_adapter(data->device);
-+ info.cig = cig;
-+
-+ return queue_find(sessions, cig_busy_session, &info);
-+}
-+
- static void bap_create_io(struct bap_data *data, struct bap_ep *ep,
- struct bt_bap_stream *stream, int defer);
-
-@@ -1047,6 +1089,48 @@ static gboolean bap_io_recreate(void *user_data)
- return FALSE;
- }
-
-+static void recreate_cig_ep(void *data, void *match_data)
-+{
-+ struct bap_ep *ep = (struct bap_ep *)data;
-+ struct cig_busy_data *info = match_data;
-+
-+ if (ep->qos.ucast.cig_id != info->cig || !ep->recreate || ep->io_id)
-+ return;
-+
-+ ep->recreate = false;
-+ ep->io_id = g_idle_add(bap_io_recreate, ep);
-+}
-+
-+static void recreate_cig_session(void *data, void *match_data)
-+{
-+ struct bap_data *session = data;
-+ struct cig_busy_data *info = match_data;
-+
-+ if (device_get_adapter(session->device) != info->adapter)
-+ return;
-+
-+ queue_foreach(session->snks, recreate_cig_ep, match_data);
-+ queue_foreach(session->srcs, recreate_cig_ep, match_data);
-+}
-+
-+static void recreate_cig(struct bap_ep *ep)
-+{
-+ struct bap_data *data = ep->data;
-+ struct cig_busy_data info;
-+
-+ info.adapter = device_get_adapter(data->device);
-+ info.cig = ep->qos.ucast.cig_id;
-+
-+ DBG("adapter %p ep %p recreate CIG %d", info.adapter, ep, info.cig);
-+
-+ if (ep->qos.ucast.cig_id == BT_ISO_QOS_CIG_UNSET) {
-+ recreate_cig_ep(ep, &info);
-+ return;
-+ }
-+
-+ queue_foreach(sessions, recreate_cig_session, &info);
-+}
-+
- static gboolean bap_io_disconnected(GIOChannel *io, GIOCondition cond,
- gpointer user_data)
- {
-@@ -1059,10 +1143,8 @@ static gboolean bap_io_disconnected(GIOChannel *io, GIOCondition cond,
- bap_io_close(ep);
-
- /* Check if connecting recreate IO */
-- if (ep->recreate) {
-- ep->recreate = false;
-- ep->io_id = g_idle_add(bap_io_recreate, ep);
-- }
-+ if (!is_cig_busy(ep->data, ep->qos.ucast.cig_id))
-+ recreate_cig(ep);
-
- return FALSE;
- }
-@@ -1087,18 +1169,22 @@ static void bap_connect_io(struct bap_data *data, struct bap_ep *ep,
- int fd;
-
- /* If IO already set skip creating it again */
-- if (bt_bap_stream_get_io(stream))
-+ if (bt_bap_stream_get_io(stream)) {
-+ DBG("ep %p stream %p has existing io", ep, stream);
- return;
-+ }
-
- if (bt_bap_stream_io_is_connecting(stream, &fd)) {
-- bap_accept_io(data, stream, fd, defer);
-+ bap_accept_io(ep, stream, fd, defer);
- return;
- }
-
-- /* If IO channel still up wait for it to be disconnected and then
-- * recreate.
-+ /* If IO channel still up or CIG is busy, wait for it to be
-+ * disconnected and then recreate.
- */
-- if (ep->io) {
-+ if (ep->io || is_cig_busy(data, ep->qos.ucast.cig_id)) {
-+ DBG("ep %p stream %p defer %s wait recreate", ep, stream,
-+ defer ? "true" : "false");
- ep->recreate = true;
- return;
- }
-@@ -1131,6 +1217,7 @@ static void bap_connect_io(struct bap_data *data, struct bap_ep *ep,
- bap_io_disconnected, ep);
-
- ep->io = io;
-+ ep->cig_active = !defer;
-
- bt_bap_stream_io_connecting(stream, g_io_channel_unix_get_fd(io));
- }
---
-cgit
-
diff --git a/net-wireless/bluez/files/bluez-5.68-bap-nonzero.patch b/net-wireless/bluez/files/bluez-5.68-bap-nonzero.patch
deleted file mode 100644
index 3a7ddd3c6f2a..000000000000
--- a/net-wireless/bluez/files/bluez-5.68-bap-nonzero.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 8fd0c76b41d35e24e10e45fcf57262482cb978a2 Mon Sep 17 00:00:00 2001
-From: Pauli Virtanen <pav@iki.fi>
-Date: Sun, 2 Jul 2023 22:34:19 +0300
-Subject: shared/bap: use only nonzero req->id
-
-In bap_req_new, use same pattern as elsewhere to not use zero as
-a valid id.
----
- src/shared/bap.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/shared/bap.c b/src/shared/bap.c
-index cf5d810bba..a0f5a0ae3c 100644
---- a/src/shared/bap.c
-+++ b/src/shared/bap.c
-@@ -4306,7 +4306,7 @@ static struct bt_bap_req *bap_req_new(struct bt_bap_stream *stream,
- static unsigned int id;
-
- req = new0(struct bt_bap_req, 1);
-- req->id = ++id;
-+ req->id = ++id ? id : ++id;
- req->stream = stream;
- req->op = op;
- req->iov = util_iov_dup(iov, len);
---
-cgit
-
diff --git a/net-wireless/bluez/files/bluez-5.68-bap-resume.patch b/net-wireless/bluez/files/bluez-5.68-bap-resume.patch
deleted file mode 100644
index fbc2eeda89cc..000000000000
--- a/net-wireless/bluez/files/bluez-5.68-bap-resume.patch
+++ /dev/null
@@ -1,187 +0,0 @@
-From 466fce0209a3878512672159168943047a9e2323 Mon Sep 17 00:00:00 2001
-From: Pauli Virtanen <pav@iki.fi>
-Date: Sun, 2 Jul 2023 22:34:18 +0300
-Subject: transport: handle BAP Enabling state correctly when resuming
-
-If BAP stream is in Enabling state when transport acquire is attempted,
-we should wait for bap_state_changed to emit the completion event.
-
-transport->resume() is only called with new owner with no
-owner->pending, and shall return nonzero completion id on success.
-Currently if BAP stream is Enabling, it returns zero which fails the
-acquire operation.
-
-To fix this, return valid completion id in this case instead. Also keep
-track of the g_idle_add resume id, so that we don't try to give it to
-bt_bap_stream_cancel.
-
-Fixes sound server getting spurious Not Authorized errors when trying to
-acquire a pending transport. This can happen on BAP server: linked
-transports become pending when the first of the two enters Streaming. If
-sound server tries to acquire the other linked transport whose stream is
-still Enabling, the acquire fails (media_owner_free +
-btd_error_not_authorized).
-
-Log:
-===============================================================
-profiles/audio/transport.c:bap_state_changed() stream 0x25c2880: qos(2) -> enabling(3)
-...
-profiles/audio/transport.c:bap_state_changed() stream 0x25cc590: qos(2) -> enabling(3)
-...
-src/shared/bap.c:bap_stream_state_changed() stream 0x25cc590 dir 0x01: enabling -> streaming
-profiles/audio/bap.c:bap_state() stream 0x25cc590: enabling(3) -> streaming(4)
-profiles/audio/transport.c:bap_state_changed() stream 0x25cc590: enabling(3) -> streaming(4)
-/org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/fd1: fd(36) ready
-profiles/audio/transport.c:transport_update_playing() /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/fd1 State=TRANSPORT_STATE_IDLE Playing=1
-profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/fd1: TRANSPORT_STATE_IDLE -> TRANSPORT_STATE_PENDING
-profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/fd0: TRANSPORT_STATE_IDLE -> TRANSPORT_STATE_PENDING
-profiles/audio/transport.c:media_owner_create() Owner created: sender=:1.1242
-profiles/audio/transport.c:media_owner_free() Owner :1.1242
-===============================================================
----
- profiles/audio/transport.c | 67 +++++++++++++++++++++++++++++++++++++---------
- 1 file changed, 55 insertions(+), 12 deletions(-)
-
-diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
-index 77216e10b3..aa3a718b0f 100644
---- a/profiles/audio/transport.c
-+++ b/profiles/audio/transport.c
-@@ -86,6 +86,7 @@ struct bap_transport {
- unsigned int state_id;
- bool linked;
- struct bt_bap_qos qos;
-+ guint resume_id;
- };
-
- struct media_transport {
-@@ -1191,17 +1192,27 @@ static void bap_enable_complete(struct bt_bap_stream *stream,
- media_transport_remove_owner(owner->transport);
- }
-
--static gboolean resume_complete(void *data)
-+static void bap_resume_complete(struct media_transport *transport)
- {
-- struct media_transport *transport = data;
-+ struct bap_transport *bap = transport->data;
- struct media_owner *owner = transport->owner;
-
-+ DBG("stream %p owner %p resume complete", bap->stream, owner);
-+
-+ if (bap->resume_id) {
-+ g_source_remove(bap->resume_id);
-+ bap->resume_id = 0;
-+ }
-+
- if (!owner)
-- return FALSE;
-+ return;
-+
-+ if (owner->pending)
-+ owner->pending->id = 0;
-
- if (transport->fd < 0) {
- media_transport_remove_owner(transport);
-- return FALSE;
-+ return;
- }
-
- if (owner->pending) {
-@@ -1215,15 +1226,13 @@ static gboolean resume_complete(void *data)
- DBUS_TYPE_INVALID);
- if (!ret) {
- media_transport_remove_owner(transport);
-- return FALSE;
-+ return;
- }
- }
-
- media_owner_remove(owner);
-
- transport_set_state(transport, TRANSPORT_STATE_ACTIVE);
--
-- return FALSE;
- }
-
- static void bap_update_links(const struct media_transport *transport);
-@@ -1306,6 +1315,32 @@ static void bap_update_qos(const struct media_transport *transport)
- "Delay");
- }
-
-+static gboolean bap_resume_complete_cb(void *data)
-+{
-+ struct media_transport *transport = data;
-+ struct bap_transport *bap = transport->data;
-+
-+ bap->resume_id = 0;
-+ bap_resume_complete(transport);
-+ return FALSE;
-+}
-+
-+static gboolean bap_resume_wait_cb(void *data)
-+{
-+ struct media_transport *transport = data;
-+ struct bap_transport *bap = transport->data;
-+ struct media_owner *owner = transport->owner;
-+
-+ /* bap_state_changed will call completion callback when ready */
-+ DBG("stream %p owner %p resume wait", bap->stream, owner);
-+
-+ bap->resume_id = 0;
-+ if (owner && owner->pending)
-+ owner->pending->id = 0;
-+
-+ return FALSE;
-+}
-+
- static guint resume_bap(struct media_transport *transport,
- struct media_owner *owner)
- {
-@@ -1315,17 +1350,19 @@ static guint resume_bap(struct media_transport *transport,
-
- if (!bap->stream)
- return 0;
-+ if (bap->resume_id)
-+ return 0;
-
- bap_update_links(transport);
-
- switch (bt_bap_stream_get_state(bap->stream)) {
- case BT_BAP_STREAM_STATE_ENABLING:
- bap_enable_complete(bap->stream, 0x00, 0x00, owner);
-- if (owner->pending)
-- return owner->pending->id;
-- return 0;
-+ bap->resume_id = g_idle_add(bap_resume_wait_cb, transport);
-+ return bap->resume_id;
- case BT_BAP_STREAM_STATE_STREAMING:
-- return g_idle_add(resume_complete, transport);
-+ bap->resume_id = g_idle_add(bap_resume_complete_cb, transport);
-+ return bap->resume_id;
- }
-
- meta = bt_bap_stream_get_metadata(bap->stream);
-@@ -1389,6 +1426,12 @@ static void cancel_bap(struct media_transport *transport, guint id)
- {
- struct bap_transport *bap = transport->data;
-
-+ if (id == bap->resume_id && bap->resume_id) {
-+ g_source_remove(bap->resume_id);
-+ bap->resume_id = 0;
-+ return;
-+ }
-+
- if (!bap->stream)
- return;
-
-@@ -1491,7 +1534,7 @@ static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state,
- transport_update_playing(transport, TRUE);
-
- done:
-- resume_complete(transport);
-+ bap_resume_complete(transport);
- }
-
- static void bap_connecting(struct bt_bap_stream *stream, bool state, int fd,
---
-cgit
-
diff --git a/net-wireless/bluez/files/bluez-5.68-clang-midi.patch b/net-wireless/bluez/files/bluez-5.68-clang-midi.patch
deleted file mode 100644
index f62d9f395944..000000000000
--- a/net-wireless/bluez/files/bluez-5.68-clang-midi.patch
+++ /dev/null
@@ -1,83 +0,0 @@
-From b9e93e01161cf5392f0cbea3400cfa2dae54643d Mon Sep 17 00:00:00 2001
-From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
-Date: Mon, 17 Jul 2023 12:36:15 -0700
-Subject: midi: Fix build errors
-
-This fixes the following build errors:
-
-unit/test-midi.c:541:82: error: function definition is not allowed here
-void compare_events_cb(const struct midi_write_parser *parser,
- void *user_data) {
- ^
-unit/test-midi.c:587:17: error: use of undeclared identifier
-'compare_events_cb'; did you mean 'compare_events'?
- compare_events_cb, &midi_data);
- ^~~~~~~~~~~~~~~~~
- compare_events
-
-profiles/midi/midi.c:61:75: error: function definition is not allowed
-here
-void foreach_cb(const struct midi_write_parser *parser, void *user_data) {
- ^
-profiles/midi/midi.c:78:40: error: use of undeclared identifier 'foreach_cb'
- midi_read_ev(&midi->midi_out, event, foreach_cb, midi);
- ^
----
- profiles/midi/midi.c | 27 ++++++++++++++-------------
- 1 file changed, 14 insertions(+), 13 deletions(-)
-
-(limited to 'profiles/midi/midi.c')
-
-diff --git a/profiles/midi/midi.c b/profiles/midi/midi.c
-index 40064df3ae..bab309bca7 100644
---- a/profiles/midi/midi.c
-+++ b/profiles/midi/midi.c
-@@ -53,20 +53,21 @@ struct midi {
- struct midi_write_parser midi_out;
- };
-
-+static void foreach_cb(const struct midi_write_parser *parser, void *user_data)
-+{
-+ struct midi *midi = user_data;
-+
-+ bt_gatt_client_write_without_response(midi->client,
-+ midi->midi_io_handle, false,
-+ midi_write_data(parser),
-+ midi_write_data_size(parser));
-+}
-+
- static bool midi_write_cb(struct io *io, void *user_data)
- {
- struct midi *midi = user_data;
- int err;
-
-- void foreach_cb(const struct midi_write_parser *parser, void *user_data) {
-- struct midi *midi = user_data;
-- bt_gatt_client_write_without_response(midi->client,
-- midi->midi_io_handle,
-- false,
-- midi_write_data(parser),
-- midi_write_data_size(parser));
-- };
--
- do {
- snd_seq_event_t *event = NULL;
-
-@@ -81,10 +82,10 @@ static bool midi_write_cb(struct io *io, void *user_data)
-
- if (midi_write_has_data(&midi->midi_out))
- bt_gatt_client_write_without_response(midi->client,
-- midi->midi_io_handle,
-- false,
-- midi_write_data(&midi->midi_out),
-- midi_write_data_size(&midi->midi_out));
-+ midi->midi_io_handle,
-+ false,
-+ midi_write_data(&midi->midi_out),
-+ midi_write_data_size(&midi->midi_out));
-
- midi_write_reset(&midi->midi_out);
-
---
-cgit
-
diff --git a/net-wireless/bluez/files/bluez-5.68-heap-use-after-free.patch b/net-wireless/bluez/files/bluez-5.68-heap-use-after-free.patch
deleted file mode 100644
index 3cc6733634a5..000000000000
--- a/net-wireless/bluez/files/bluez-5.68-heap-use-after-free.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From b741460688925448807c7532fe96182e4d32ec42 Mon Sep 17 00:00:00 2001
-From: Vlad Pruteanu <vlad.pruteanu@nxp.com>
-Date: Tue, 4 Jul 2023 08:56:43 +0300
-Subject: plugins/admin: Fix heap-use-after-free when using 2 controllers
-
-This commit fixes the heap-use-after-free error when connecting 2
-controllers. When a controller is connected
-admin_policy_adapter_probe is called. If policy_data was already
-allocated it gets freed, if not, it only gets allocated. Eventually
-add_interface is called. Here policy_data is put in the "data" variable
-(specific for each controller) and the process_changes task is called
-with idle priority. This function ultimately accesses policy_data from
-the "data" variable.
-
-When Bluez crashes the flow is:
-1)first controller is attached
-2)admin_policy_adapter_probe is called and policy_data is allocated
-4)second controller is attached
-5)admin_policy_adapter_probe is called and policy_data is freed, then
-allocated again
-6)process_changes runs and the policy_data for the first controller is
-read, but it was already freed, thus the crash
----
- plugins/admin.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/plugins/admin.c b/plugins/admin.c
-index 68e9237d3f..16b74cfbf0 100644
---- a/plugins/admin.c
-+++ b/plugins/admin.c
-@@ -502,7 +502,6 @@ static int admin_policy_adapter_probe(struct btd_adapter *adapter)
- if (policy_data) {
- btd_warn(policy_data->adapter_id,
- "Policy data already exists");
-- admin_policy_free(policy_data);
- policy_data = NULL;
- }
-
---
-cgit
-
diff --git a/net-wireless/bluez/files/bluez-5.68-monitor-decoding.patch b/net-wireless/bluez/files/bluez-5.68-monitor-decoding.patch
deleted file mode 100644
index 6d5c6306ccd3..000000000000
--- a/net-wireless/bluez/files/bluez-5.68-monitor-decoding.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From f9557931ad361e08f1f1537ea670fedd1dd0138d Mon Sep 17 00:00:00 2001
-From: Claudia Draghicescu <claudia.rosu@nxp.com>
-Date: Tue, 4 Jul 2023 10:41:44 +0300
-Subject: monitor: Add decoding support for Sync Receiver events
-
-This commit adds decoding support for PA Sync Established,
-BIG Sync Established and BIG Sync Lost events.
----
- lib/mgmt.h | 3 +++
- monitor/packet.c | 5 +++++
- 2 files changed, 8 insertions(+)
-
-diff --git a/lib/mgmt.h b/lib/mgmt.h
-index 062fa02712..8f92b77315 100644
---- a/lib/mgmt.h
-+++ b/lib/mgmt.h
-@@ -1238,6 +1238,9 @@ static const char *mgmt_ev[] = {
- "Advertisement Monitor Device Lost",
- "Mesh Packet Found",
- "Mesh Packet Complete",
-+ "PA Sync Established",
-+ "BIG Sync Established",
-+ "BIG Sync Lost",
- };
-
- static const char *mgmt_status[] = {
-diff --git a/monitor/packet.c b/monitor/packet.c
-index a871c7f272..f2167fb52a 100644
---- a/monitor/packet.c
-+++ b/monitor/packet.c
-@@ -3093,6 +3093,11 @@ static const struct bitfield_data events_le_table[] = {
- { 27, "LE Terminate BIG Complete" },
- { 28, "LE BIG Sync Estabilished Complete" },
- { 29, "LE BIG Sync Lost" },
-+ { 30, "LE Request Peer SCA Complete"},
-+ { 31, "LE Path Loss Threshold" },
-+ { 32, "LE Transmit Power Reporting" },
-+ { 33, "LE BIG Info Advertising Report" },
-+ { 34, "LE Subrate Change" },
- { }
- };
-
---
-cgit
-