From 3f154f783bbe7f64d7ab455c01294a361f7ac133 Mon Sep 17 00:00:00 2001 From: Devin Kim Date: Mon, 18 May 2015 10:39:12 -0700 Subject: 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 --- src/hardware.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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", \ -- cgit v1.2.3