Adapt device disconnect to BT HAL framework
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-bluetooth.c
index 547a613..fa31d3d 100644 (file)
@@ -399,6 +399,12 @@ static int set_hal_le_request_state(int enable)
        _bt_hal_set_le_request_state(enable);
        return BT_STATUS_SUCCESS;
 }
+
+static int dev_disconnect(const bt_bdaddr_t *bd_addr)
+{
+       DBG("+");
+       return _bt_hal_device_disconnect(bd_addr);
+}
 #endif
 
 static const bt_interface_t bluetooth_if = {
@@ -463,6 +469,7 @@ static const bt_interface_t bluetooth_if = {
        .set_hal_le_request_state = set_hal_le_request_state,
        .adapter_le_set_white_list = _bt_hal_adapter_le_set_white_list,
        .adapter_le_set_privacy = _bt_hal_adapter_le_set_privacy,
+       .device_disconnect = dev_disconnect,
 #endif
 };