-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from ananjaser1211/rk3566-bt
RK3566 Bluetooth
- Loading branch information
Showing
11 changed files
with
279 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
packages/network/bluez/patches/bluez-06-AVRCP_TG_MDI_BV-04-C.patch
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
packages/network/bluez/patches/bluez-07-trust-sixaxis.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/plugins/sixaxis.c b/plugins/sixaxis.c.new | ||
index 544ab399ad..b68b0f46fb 100644 | ||
--- a/plugins/sixaxis.c | ||
+++ b/plugins/sixaxis.c.new | ||
@@ -350,7 +350,8 @@ static bool setup_device(int fd, const char *sysfs_path, | ||
|
||
btd_device_device_set_name(device, cp->name); | ||
btd_device_set_pnpid(device, cp->source, cp->vid, cp->pid, cp->version); | ||
- btd_device_set_temporary(device, true); | ||
+ btd_device_set_temporary(device, false); | ||
+ btd_device_set_trusted(device, true); | ||
|
||
closure = g_new0(struct authentication_closure, 1); | ||
if (!closure) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
packages/network/bluez/patches/bluez-12-fix-obexd-after-5_50.patch
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
packages/network/bluez/patches/bluez-12-fix-obexd-after-5_73.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
diff --git a/Makefile.obexd b/Makefile.obexd | ||
index b7e9f2d33..9a9e9a0a0 100644 | ||
--- a/Makefile.obexd | ||
+++ b/Makefile.obexd | ||
@@ -1,6 +1,4 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
-if OBEX | ||
- | ||
if SYSTEMD | ||
systemduserunitdir = $(SYSTEMD_USERUNITDIR) | ||
systemduserunit_DATA = obexd/src/obex.service | ||
@@ -41,6 +39,8 @@ obexd_builtin_sources += obexd/plugins/opp.c | ||
obexd_builtin_modules += ftp | ||
obexd_builtin_sources += obexd/plugins/ftp.c obexd/plugins/ftp.h | ||
|
||
+if OBEX | ||
+ | ||
obexd_builtin_modules += irmc | ||
obexd_builtin_sources += obexd/plugins/irmc.c | ||
|
||
@@ -57,6 +57,8 @@ obexd_builtin_sources += obexd/plugins/mas.c obexd/src/map_ap.h \ | ||
obexd/plugins/messages.h \ | ||
obexd/plugins/messages-dummy.c | ||
|
||
+endif | ||
+ | ||
obexd_builtin_modules += mns | ||
obexd_builtin_sources += obexd/client/mns.c obexd/src/map_ap.h \ | ||
obexd/client/map-event.h | ||
@@ -103,11 +105,6 @@ obexd_src_obexd_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS) \ | ||
-D_FILE_OFFSET_BITS=64 \ | ||
-I$(builddir)/obexd/src | ||
|
||
-else | ||
-obexd-add-service-symlink: | ||
-obexd-remove-service-symlink: | ||
-endif | ||
- | ||
obexd_src_obexd_SHORTNAME = obexd | ||
|
||
obexd_builtin_files = obexd/src/builtin.h $(obexd_builtin_nodist) |
50 changes: 50 additions & 0 deletions
50
packages/network/bluez/patches/bluez-22-Revert-build-Fix-distcheck.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
From e679b29bcf4890d61294e4110bace5f783632e5a Mon Sep 17 00:00:00 2001 | ||
From: Rudi Heitbaum <[email protected]> | ||
Date: Sat, 9 Mar 2024 08:55:24 +0000 | ||
Subject: [PATCH] Revert "build: Fix distcheck" | ||
|
||
This reverts commit d5a9195a6269e703c6e3a47c40982ec94d8cc838. | ||
--- | ||
Makefile.tools | 6 +----- | ||
configure.ac | 8 +------- | ||
2 files changed, 2 insertions(+), 12 deletions(-) | ||
|
||
diff --git a/Makefile.tools b/Makefile.tools | ||
index 27a753762..c17244677 100644 | ||
--- a/Makefile.tools | ||
+++ b/Makefile.tools | ||
@@ -539,11 +539,7 @@ endif | ||
|
||
if CUPS | ||
|
||
-if CUPS_SERVERBIN | ||
-cupsdir = $(CUPS_SERVERBIN)/backend | ||
-else | ||
-cupsdir = $(libdir)/cups/backend | ||
-endif | ||
+cupsdir = $(CUPSDIR) | ||
|
||
cups_PROGRAMS = profiles/cups/bluetooth | ||
|
||
diff --git a/configure.ac b/configure.ac | ||
index 9ebc250cf..0190e8271 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -247,13 +247,7 @@ AC_ARG_ENABLE(cups, AS_HELP_STRING([--disable-cups], | ||
[disable CUPS printer support]), [enable_cups=${enableval}]) | ||
AM_CONDITIONAL(CUPS, test "${enable_cups}" != "no") | ||
if (test "${enable_cups}" != "no"); then | ||
- AC_MSG_CHECKING([cups directory]) | ||
- cups_serverbin=`$PKG_CONFIG cups --variable=cups_serverbin` | ||
- AM_CONDITIONAL(CUPS_SERVERBIN, test "${cups_serverbin}" != "") | ||
- if (test "${cups_serverbin}" != ""); then | ||
- AC_SUBST(CUPS_SERVERBIN, ${cups_serverbin}) | ||
- fi | ||
- AC_MSG_RESULT([${cups_serverbin}]) | ||
+ AC_SUBST(CUPSDIR, `$PKG_CONFIG cups --variable=cups_serverbin`/backend) | ||
fi | ||
|
||
AC_ARG_ENABLE(mesh, AS_HELP_STRING([--enable-mesh], | ||
-- | ||
2.43.0 | ||
|
45 changes: 45 additions & 0 deletions
45
...etwork/bluez/patches/bluez-50-shared-uhid--Fix-crash-if-bt_uhid_destroy-free-replay.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
From b94f1be656f34ea1363f5566ef63b847234c6dea Mon Sep 17 00:00:00 2001 | ||
From: Luiz Augusto von Dentz <[email protected]> | ||
Date: Mon, 15 Apr 2024 10:48:58 -0400 | ||
Subject: [PATCH] shared/uhid: Fix crash if bt_uhid_destroy free replay | ||
structure | ||
|
||
Id replay structured has been allocated it shall be set back to NULL | ||
after calling uhid_replay_free otherwise it may cause the following | ||
crash: | ||
|
||
Invalid read of size 1 | ||
at 0x1D8FC4: bt_uhid_record (uhid.c:116) | ||
by 0x1D912C: uhid_read_handler (uhid.c:158) | ||
by 0x201A64: watch_callback (io-glib.c:157) | ||
by 0x48D4198: g_main_dispatch.lto_priv.0 (gmain.c:3344) | ||
by 0x49333BE: UnknownInlinedFun (gmain.c:4152) | ||
by 0x49333BE: g_main_context_iterate_unlocked.isra.0 (gmain.c:4217) | ||
by 0x48D4DC6: g_main_loop_run (gmain.c:4419) | ||
by 0x2020F4: mainloop_run (mainloop-glib.c:66) | ||
by 0x20254B: mainloop_run_with_signal (mainloop-notify.c:188) | ||
by 0x12D6D4: main (main.c:1456) | ||
Address 0x53ae9c0 is 0 bytes inside a block of size 40 free'd | ||
at 0x48468CF: free (vg_replace_malloc.c:985) | ||
by 0x1D8E19: uhid_replay_free (uhid.c:68) | ||
by 0x1D8E19: uhid_replay_free (uhid.c:59) | ||
by 0x1D8E19: bt_uhid_destroy (uhid.c:509) | ||
by 0x1591F5: uhid_disconnect (device.c:183) | ||
|
||
Fixes: https://github.com/bluez/bluez/issues/815 | ||
--- | ||
src/shared/uhid.c | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/src/shared/uhid.c b/src/shared/uhid.c | ||
index c1092b707..1f071b958 100644 | ||
--- a/src/shared/uhid.c | ||
+++ b/src/shared/uhid.c | ||
@@ -507,6 +507,7 @@ int bt_uhid_destroy(struct bt_uhid *uhid) | ||
|
||
uhid->created = false; | ||
uhid_replay_free(uhid->replay); | ||
+ uhid->replay = NULL; | ||
|
||
return err; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.