Skip to content

Commit

Permalink
jf: Fix BCM4335 chip crashes caused by BT/WiFI concurrency
Browse files Browse the repository at this point in the history
 * The stock B+ driver works around chip crash that occurs when WiFi is
   on and BT is enabled/disabled by sending a magic patch to the
   hardware.
 * This patch was not in an external file, so some reverse engineering
   was required to extract it and put it in the correct format.
 * Enable the prepatch and enjoy crash-free Bluetooth :)

Change-Id: I1ec8ec345c459ce97cc389d270b025ef61363018
  • Loading branch information
hyperb1iss committed Jul 5, 2013
1 parent 65a5395 commit bd28b53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Binary file added bluetooth/bcm4335_prepatch.hcd
Binary file not shown.
1 change: 1 addition & 0 deletions bluetooth/vnd_jf.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BLUETOOTH_UART_DEVICE_PORT = "/dev/ttyHS0"
FW_PATCHFILE_LOCATION = "/vendor/firmware"
FW_PRE_PATCH="/vendor/firmware/bcm4335_prepatch.hcd"
BT_WAKE_VIA_PROC = TRUE
LPM_IDLE_TIMEOUT_MULTIPLE = 5
BTVND_DBG = FALSE
Expand Down
3 changes: 3 additions & 0 deletions jf-common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ PRODUCT_PROPERTY_OVERRIDES += \
# QRNGD
PRODUCT_PACKAGES += qrngd

# Prepatch to fix BT/WiFi bus lockups
PRODUCT_COPY_FILES += device/samsung/jf-common/bluetooth/bcm4335_prepatch.hcd:system/vendor/firmware/bcm4335_prepatch.hcd

#common build.props
PRODUCT_PROPERTY_OVERRIDES += \
ro.chipname=apq8064 \
Expand Down

0 comments on commit bd28b53

Please sign in to comment.