public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: git-commits@fedoraproject.org
Subject: [rpms/bluez] f44: Fix BLE advertisments (Closes: #2489100)
Date: Mon, 22 Jun 2026 09:27:44 GMT	[thread overview]
Message-ID: <178212046427.1.15856042561398599770.rpms-bluez-75abb0feb638@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/bluez
Branch : f44
Commit : 75abb0feb638e1534200cf3db3f3ad92e7089133
Author : Bastien Nocera <hadess@hadess.net>
Date   : 2026-06-22T11:27:33+02:00
Stats  : +35/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/bluez/c/75abb0feb638e1534200cf3db3f3ad92e7089133?branch=f44

Log:
Fix BLE advertisments (Closes: #2489100)

---
diff --git a/0001-advertising-Fix-sending-extra-bytes-with-MGMT_OP_ADD.patch b/0001-advertising-Fix-sending-extra-bytes-with-MGMT_OP_ADD.patch
new file mode 100644
index 0000000..0c70b82
--- /dev/null
+++ b/0001-advertising-Fix-sending-extra-bytes-with-MGMT_OP_ADD.patch
@@ -0,0 +1,29 @@
+From 2a6968b40378dca5650e18e03ad0407738c47be5 Mon Sep 17 00:00:00 2001
+From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
+Date: Tue, 2 Jun 2026 16:36:31 -0400
+Subject: [PATCH] advertising: Fix sending extra bytes with
+ MGMT_OP_ADD_EXT_ADV_DATA
+
+MGMT_OP_ADD_EXT_ADV_DATA expects the command to be of size of
+struct mgmt_cp_add_ext_adv_data not mgmt_cp_add_advertising.
+---
+ src/advertising.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/advertising.c b/src/advertising.c
+index c8b00a887911..1ed09c902b4b 100644
+--- a/src/advertising.c
++++ b/src/advertising.c
+@@ -1498,8 +1498,7 @@ static void add_adv_params_callback(uint8_t status, uint16_t length,
+ 		}
+ 	}
+ 
+-	param_len = sizeof(struct mgmt_cp_add_advertising) + adv_data_len +
+-							scan_rsp_len;
++	param_len = sizeof(*cp) + adv_data_len + scan_rsp_len;
+ 
+ 	cp = malloc0(param_len);
+ 	if (!cp) {
+-- 
+2.54.0
+

diff --git a/bluez.spec b/bluez.spec
index 4a58aca..3f3d865 100644
--- a/bluez.spec
+++ b/bluez.spec
@@ -6,7 +6,7 @@
 
 Name:    bluez
 Version: 5.86
-Release: 4%{?dist}
+Release: 5%{?dist}
 Summary: Bluetooth utilities
 License: GPL-2.0-or-later
 URL:     http://www.bluez.org/
@@ -18,6 +18,8 @@ Patch1: big-endian-5.86.patch
 Patch2: 0001-a2dp-connect-source-profile-after-sink.patch
 # https://patchwork.kernel.org/project/bluetooth/list/?series=1058931
 Patch3: bluetoothctl-no-output.patch
+# https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=2a6968b40378dca5650e18e03ad0407738c47be5
+Patch4: 0001-advertising-Fix-sending-extra-bytes-with-MGMT_OP_ADD.patch
 
 BuildRequires: dbus-devel >= 1.6
 BuildRequires: glib2-devel
@@ -341,6 +343,9 @@ install emulator/btvirt ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
 %{_userunitdir}/obex.service
 
 %changelog
+* Mon Jun 22 2026 Bastien Nocera <bnocera@redhat.com> - 5.86-5
+- Fix BLE advertisments (Closes: #2489100)
+
 * Fri Feb 27 2026 Bastien Nocera <bnocera@redhat.com> - 5.86-4
 - Re-add btmgmt as it does not require bluetoothd to be running,
   unlike bluetoothctl mgmt

                 reply	other threads:[~2026-06-22  9:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178212046427.1.15856042561398599770.rpms-bluez-75abb0feb638@fedoraproject.org \
    --to=hadess@hadess.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox