public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bluez] f44: Fix BLE advertisments (Closes: #2489100)
@ 2026-06-22 9:27 Bastien Nocera
0 siblings, 0 replies; only message in thread
From: Bastien Nocera @ 2026-06-22 9:27 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-22 9:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22 9:27 [rpms/bluez] f44: Fix BLE advertisments (Closes: #2489100) Bastien Nocera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox