diff options
| author | Alok Moondra <alokm@broadcom.com> | 2014-08-24 07:28:01 -0700 |
|---|---|---|
| committer | Sean Wan <swan@google.com> | 2014-08-25 14:19:40 -0700 |
| commit | 771ed2b71ff7c6e20bf0425aa338edc7246b88fb (patch) | |
| tree | cfbf4a38b9acf860518209cb51f53f20bfa6f648 /src/hardware.c | |
| parent | 232a9c5e07c236ce13efa8a23f4b8f045533f377 (diff) | |
| download | android_hardware_broadcom_libbt-771ed2b71ff7c6e20bf0425aa338edc7246b88fb.tar.gz android_hardware_broadcom_libbt-771ed2b71ff7c6e20bf0425aa338edc7246b88fb.tar.bz2 android_hardware_broadcom_libbt-771ed2b71ff7c6e20bf0425aa338edc7246b88fb.zip | |
BT: Increasing firmware settlement delay to 200ms
Change-Id: I61f176ad82184e0e46b99844e2f26ccba49614ec
Signed-off-by: Alok Moondra <alokm@broadcom.com>
Diffstat (limited to 'src/hardware.c')
| -rw-r--r-- | src/hardware.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hardware.c b/src/hardware.c index c8bf746..e2eb7d7 100644 --- a/src/hardware.c +++ b/src/hardware.c @@ -217,6 +217,7 @@ static uint8_t bt_sco_param[SCO_I2SPCM_PARAM_SIZE] = */ static const fw_settlement_entry_t fw_settlement_table[] = { {"BCM43241", 200}, + {"BCM43341", 200}, {(const char *) NULL, 100} // Giving the generic fw settlement delay setting. }; @@ -586,6 +587,7 @@ void hw_config_cback(void *p_mem) HC_BT_HDR *p_buf=NULL; uint8_t is_proceeding = FALSE; int i; + int delay=100; #if (USE_CONTROLLER_BDADDR == TRUE) const uint8_t null_bdaddr[BD_ADDR_LEN] = {0,0,0,0,0,0}; #endif @@ -728,7 +730,9 @@ void hw_config_cback(void *p_mem) /* Check if we need to pause a few hundred milliseconds * before sending down any HCI command. */ - ms_delay(look_up_fw_settlement_delay()); + delay = look_up_fw_settlement_delay(); + ALOGI("Setting fw settlement delay to %d ", delay); + ms_delay(delay); /* fall through intentionally */ case HW_CFG_START: |
