diff --git a/android/bluetooth.c b/android/bluetooth.c
index d42fe8c..d0fb245 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
g_key_file_free(key_file);
}
-static void send_bond_state_change(const bdaddr_t *addr, uint8_t status,
+static void send_bond_state_change(struct device *dev, uint8_t status,
uint8_t state)
{
struct hal_ev_bond_state_changed ev;
ev.status = status;
ev.state = state;
- bdaddr2android(addr, ev.bdaddr);
+ bdaddr2android(&dev->bdaddr, ev.bdaddr);
ipc_send_notif(hal_ipc, HAL_SERVICE_ID_BLUETOOTH,
HAL_EV_BOND_STATE_CHANGED, sizeof(ev), &ev);
new_bond = device_bond_state(dev);
if (old_bond != new_bond)
- send_bond_state_change(&dev->bdaddr, status, new_bond);
+ send_bond_state_change(dev, status, new_bond);
}
static void send_device_property(struct device *dev, uint8_t type,