patch-tools_hciattach_bcm43xx_c 878 B

1234567891011121314151617181920212223242526272829303132
  1. --- bluez-5.40.orig/tools/hciattach_bcm43xx.c 2015-03-11 11:01:57.000000000 +0100
  2. +++ bluez-5.40/tools/hciattach_bcm43xx.c 2016-06-18 23:25:59.991459117 +0200
  3. @@ -43,7 +43,7 @@
  4. #include "hciattach.h"
  5. #ifndef FIRMWARE_DIR
  6. -#define FIRMWARE_DIR "/etc/firmware"
  7. +#define FIRMWARE_DIR "/lib/firmware"
  8. #endif
  9. #define FW_EXT ".hcd"
  10. @@ -366,11 +366,8 @@ int bcm43xx_init(int fd, int def_speed,
  11. return -1;
  12. if (bcm43xx_locate_patch(FIRMWARE_DIR, chip_name, fw_path)) {
  13. - fprintf(stderr, "Patch not found, continue anyway\n");
  14. + fprintf(stderr, "Patch not found for %s, continue anyway\n", chip_name);
  15. } else {
  16. - if (bcm43xx_set_speed(fd, ti, speed))
  17. - return -1;
  18. -
  19. if (bcm43xx_load_firmware(fd, fw_path))
  20. return -1;
  21. @@ -380,6 +377,7 @@ int bcm43xx_init(int fd, int def_speed,
  22. return -1;
  23. }
  24. + sleep(1);
  25. if (bcm43xx_reset(fd))
  26. return -1;
  27. }