diff options
| author | Devin Kim <dojip.kim@lge.com> | 2015-05-18 10:39:12 -0700 |
|---|---|---|
| committer | Prashant Malani <pmalani@google.com> | 2015-07-06 17:38:01 +0000 |
| commit | 3f154f783bbe7f64d7ab455c01294a361f7ac133 (patch) | |
| tree | 4006b419024f633f428cecdf9efa4e321496006b /src/hardware.c | |
| parent | f5aa794d15464e1a2247dbe9ec122dcd3e93510c (diff) | |
| download | android_hardware_broadcom_libbt-3f154f783bbe7f64d7ab455c01294a361f7ac133.tar.gz android_hardware_broadcom_libbt-3f154f783bbe7f64d7ab455c01294a361f7ac133.tar.bz2 android_hardware_broadcom_libbt-3f154f783bbe7f64d7ab455c01294a361f7ac133.zip | |
Bluetooth: Fix the FW loading in BCM4343
BCM4343 doesn't have the name starting with 'BCM'. So fix the name
to use the dynamic FW loading for BCM4343
Bug: 21268506
Change-Id: Id43a748bf6180c2464671d35e7be3caaa6532e82
Diffstat (limited to 'src/hardware.c')
| -rwxr-xr-x | src/hardware.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hardware.c b/src/hardware.c index 02103ca..9869ffa 100755 --- a/src/hardware.c +++ b/src/hardware.c @@ -676,6 +676,15 @@ void hw_config_cback(void *p_mem) strncpy(hw_cfg_cb.local_chip_name, p_name, \ LOCAL_NAME_BUFFER_LEN-1); } +#ifdef USE_BLUETOOTH_BCM4343 + else if ((p_name = strstr(p_tmp, "4343")) != NULL) + { + snprintf(hw_cfg_cb.local_chip_name, + LOCAL_NAME_BUFFER_LEN-1, "BCM%s", p_name); + strncpy(p_name, hw_cfg_cb.local_chip_name, + LOCAL_NAME_BUFFER_LEN-1); + } +#endif else { strncpy(hw_cfg_cb.local_chip_name, "UNKNOWN", \ |
