android/hal-bluetooth: Add support for get remote service record cmd

This commit is contained in:
Szymon Janc 2013-11-19 16:51:48 +01:00 committed by Johan Hedberg
parent d99a0d216f
commit b43aac26d2

View File

@ -583,12 +583,19 @@ static int set_remote_device_property(bt_bdaddr_t *remote_addr,
static int get_remote_service_record(bt_bdaddr_t *remote_addr, bt_uuid_t *uuid)
{
struct hal_cmd_get_remote_service_rec cmd;
DBG("bdaddr: %s", bdaddr2str(remote_addr));
if (!interface_ready())
return BT_STATUS_NOT_READY;
return BT_STATUS_UNSUPPORTED;
memcpy(cmd.bdaddr, remote_addr, sizeof(cmd.bdaddr));
memcpy(cmd.uuid, uuid, sizeof(cmd.uuid));
return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH,
HAL_OP_GET_REMOTE_SERVICE_REC,
sizeof(cmd), &cmd, 0, NULL, NULL);
}
static int get_remote_services(bt_bdaddr_t *remote_addr)