summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
authorPriti Aghera <paghera@broadcom.com>2012-04-06 18:35:50 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:15 -0700
commit0ef57283c2ed9582f9521082f6a8cc4e9c91e82b (patch)
treeb42b456dd1b818c72a58d68e221d81edf7aa7141 /btif
parentb110b5ff2dc873c23a2a61e49b189a404d148c50 (diff)
downloadexternal_bluetooth_bluedroid-0ef57283c2ed9582f9521082f6a8cc4e9c91e82b.zip
external_bluetooth_bluedroid-0ef57283c2ed9582f9521082f6a8cc4e9c91e82b.tar.gz
external_bluetooth_bluedroid-0ef57283c2ed9582f9521082f6a8cc4e9c91e82b.tar.bz2
Fix for GetBondedDevices API
Change-Id: I87e7bb9e87d6912807d755ee540adcdc94a580ab
Diffstat (limited to 'btif')
-rwxr-xr-xbtif/src/btif_dm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/btif/src/btif_dm.c b/btif/src/btif_dm.c
index c215722..2bf6611 100755
--- a/btif/src/btif_dm.c
+++ b/btif/src/btif_dm.c
@@ -253,7 +253,17 @@ static void bond_state_changed(bt_status_t status, bt_bdaddr_t *bd_addr, bt_bond
bdcpy(pairing_cb.bd_addr, bd_addr->address);
}
else
+ {
memset(&pairing_cb, 0, sizeof(pairing_cb));
+ char buf[512];
+ bt_property_t prop;
+ prop.type = BT_PROPERTY_ADAPTER_BONDED_DEVICES;
+ prop.val = (void*)buf;
+ prop.len = sizeof(buf);
+ status = btif_storage_get_adapter_property(&prop);
+ HAL_CBACK(bt_hal_cbacks, adapter_properties_cb, status, 1, &prop);
+ }
+
}
/*******************************************************************************