From 0ef57283c2ed9582f9521082f6a8cc4e9c91e82b Mon Sep 17 00:00:00 2001 From: Priti Aghera <paghera@broadcom.com> Date: Fri, 6 Apr 2012 18:35:50 -0700 Subject: Fix for GetBondedDevices API Change-Id: I87e7bb9e87d6912807d755ee540adcdc94a580ab --- btif/src/btif_dm.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'btif') 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); + } + } /******************************************************************************* -- cgit v1.1