From bf9c840d128771cb6af2167bf679d373e504250c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kelemen=20=28vudiq=29?= Date: Sat, 2 Apr 2022 20:37:51 +0200 Subject: [PATCH] retroarch: bluetooth: add `pairable on` to pairing steps --- ...etroarch-bluetooth_pairing_steps_fix.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 packages/lakka/retroarch_base/retroarch/patches/retroarch-bluetooth_pairing_steps_fix.patch diff --git a/packages/lakka/retroarch_base/retroarch/patches/retroarch-bluetooth_pairing_steps_fix.patch b/packages/lakka/retroarch_base/retroarch/patches/retroarch-bluetooth_pairing_steps_fix.patch new file mode 100644 index 00000000000..3bc7b080bfe --- /dev/null +++ b/packages/lakka/retroarch_base/retroarch/patches/retroarch-bluetooth_pairing_steps_fix.patch @@ -0,0 +1,27 @@ +diff --git a/bluetooth/drivers/bluetoothctl.c b/bluetooth/drivers/bluetoothctl.c +index f3205c8ee9..31f5a24447 100644 +--- a/bluetooth/drivers/bluetoothctl.c ++++ b/bluetooth/drivers/bluetoothctl.c +@@ -170,8 +170,7 @@ static bool bluetoothctl_connect_device(void *data, unsigned idx) + string_list_free(list); + + snprintf(btctl->command, sizeof(btctl->command), "\ +- bluetoothctl -- trust %s", +- device); ++ bluetoothctl -- pairable on"); + + pclose(popen(btctl->command, "r")); + +@@ -181,6 +180,12 @@ static bool bluetoothctl_connect_device(void *data, unsigned idx) + + pclose(popen(btctl->command, "r")); + ++ snprintf(btctl->command, sizeof(btctl->command), "\ ++ bluetoothctl -- trust %s", ++ device); ++ ++ pclose(popen(btctl->command, "r")); ++ + snprintf(btctl->command, sizeof(btctl->command), "\ + bluetoothctl -- connect %s", + device);