summaryrefslogtreecommitdiffstats
path: root/btif/src/btif_hf.c
diff options
context:
space:
mode:
authorRavi Nagarajan <nravi@broadcom.com>2012-05-29 17:11:03 +0530
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:22 -0700
commitcc10fec21ba2bdb9c908509b1667c8c34d0e8c02 (patch)
tree752a70c19571a58d044a7e8eb22d94d97107cfcb /btif/src/btif_hf.c
parent7b4048c6064ab21da67dc3450bdfd431f109e4fc (diff)
downloadexternal_bluetooth_bluedroid-cc10fec21ba2bdb9c908509b1667c8c34d0e8c02.zip
external_bluetooth_bluedroid-cc10fec21ba2bdb9c908509b1667c8c34d0e8c02.tar.gz
external_bluetooth_bluedroid-cc10fec21ba2bdb9c908509b1667c8c34d0e8c02.tar.bz2
When Bluetooth disable is initiated, terminate pending bonding setup, and reset control blocks on startup/init
Change-Id: Iddc37e60ddb712de4af39a25f3c2e5bc7b11410d
Diffstat (limited to 'btif/src/btif_hf.c')
-rwxr-xr-xbtif/src/btif_hf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/btif/src/btif_hf.c b/btif/src/btif_hf.c
index 5851efa..bcbf00a 100755
--- a/btif/src/btif_hf.c
+++ b/btif/src/btif_hf.c
@@ -484,8 +484,8 @@ static bt_status_t init( bthf_callbacks_t* callbacks )
* Internally, the HSP_SERVICE_ID shall also be enabled */
btif_enable_service(BTA_HFP_SERVICE_ID);
- btif_hf_cb.call_end_timestamp.tv_sec = 0;
- btif_hf_cb.call_end_timestamp.tv_nsec = 0;
+ memset(&btif_hf_cb, 0, sizeof(btif_hf_cb_t));
+ clear_phone_state();
return BT_STATUS_SUCCESS;
}