summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
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);
+ }
+
}
/*******************************************************************************