From 73ad3670c8f882bf99d271f23ae3c1be4325462e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 19 Jun 2016 16:10:01 +0200 Subject: bluez: update and fix rpi3 support, add required firmware file. --- .../bluez/patches/patch-tools_hciattach_bcm43xx_c | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/bluez/patches/patch-tools_hciattach_bcm43xx_c (limited to 'package/bluez/patches/patch-tools_hciattach_bcm43xx_c') diff --git a/package/bluez/patches/patch-tools_hciattach_bcm43xx_c b/package/bluez/patches/patch-tools_hciattach_bcm43xx_c new file mode 100644 index 000000000..0b8799193 --- /dev/null +++ b/package/bluez/patches/patch-tools_hciattach_bcm43xx_c @@ -0,0 +1,32 @@ +--- bluez-5.40.orig/tools/hciattach_bcm43xx.c 2015-03-11 11:01:57.000000000 +0100 ++++ bluez-5.40/tools/hciattach_bcm43xx.c 2016-06-18 23:25:59.991459117 +0200 +@@ -43,7 +43,7 @@ + #include "hciattach.h" + + #ifndef FIRMWARE_DIR +-#define FIRMWARE_DIR "/etc/firmware" ++#define FIRMWARE_DIR "/lib/firmware" + #endif + + #define FW_EXT ".hcd" +@@ -366,11 +366,8 @@ int bcm43xx_init(int fd, int def_speed, + return -1; + + if (bcm43xx_locate_patch(FIRMWARE_DIR, chip_name, fw_path)) { +- fprintf(stderr, "Patch not found, continue anyway\n"); ++ fprintf(stderr, "Patch not found for %s, continue anyway\n", chip_name); + } else { +- if (bcm43xx_set_speed(fd, ti, speed)) +- return -1; +- + if (bcm43xx_load_firmware(fd, fw_path)) + return -1; + +@@ -380,6 +377,7 @@ int bcm43xx_init(int fd, int def_speed, + return -1; + } + ++ sleep(1); + if (bcm43xx_reset(fd)) + return -1; + } -- cgit v1.2.3