mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 21:54:33 +08:00
android/hal-bluetooth: Add support for get remote service record cmd
This commit is contained in:
parent
d99a0d216f
commit
b43aac26d2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user