From df0819bdd946eed8fca4fded1d10a7f1c049ed68 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Fri, 26 Feb 2016 18:23:24 +0000 Subject: [PATCH] Don't set UART speed before loading firmware --- ...oadcom-dont-set-speed-before-loading.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/network/bluez/patches/bluez-07-broadcom-dont-set-speed-before-loading.patch diff --git a/packages/network/bluez/patches/bluez-07-broadcom-dont-set-speed-before-loading.patch b/packages/network/bluez/patches/bluez-07-broadcom-dont-set-speed-before-loading.patch new file mode 100644 index 0000000000..9a78ba0297 --- /dev/null +++ b/packages/network/bluez/patches/bluez-07-broadcom-dont-set-speed-before-loading.patch @@ -0,0 +1,21 @@ +diff -Naur a/tools/hciattach_bcm43xx.c b/tools/hciattach_bcm43xx.c +--- a/tools/hciattach_bcm43xx.c 2016-02-25 18:23:15.468717720 +0000 ++++ b/tools/hciattach_bcm43xx.c 2016-02-25 18:24:08.028997243 +0000 +@@ -368,9 +368,6 @@ + if (bcm43xx_locate_patch(FIRMWARE_DIR, chip_name, fw_path)) { + fprintf(stderr, "Patch not found, continue anyway\n"); + } else { +- if (bcm43xx_set_speed(fd, ti, speed)) +- return -1; +- + if (bcm43xx_load_firmware(fd, fw_path)) + return -1; + +@@ -379,6 +376,7 @@ + perror("Can't set host baud rate"); + return -1; + } ++ sleep(1); + + if (bcm43xx_reset(fd)) + return -1;