mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 21:54:33 +08:00
android/hal: Add support for start/cancel device discovery commands
This commit is contained in:
parent
b95fba99cf
commit
98f4e39831
@ -353,7 +353,9 @@ static int start_discovery(void)
|
||||
if (!interface_ready())
|
||||
return BT_STATUS_NOT_READY;
|
||||
|
||||
return BT_STATUS_UNSUPPORTED;
|
||||
return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH,
|
||||
HAL_OP_START_DISCOVERY, 0, NULL, 0,
|
||||
NULL, NULL);
|
||||
}
|
||||
|
||||
static int cancel_discovery(void)
|
||||
@ -363,7 +365,9 @@ static int cancel_discovery(void)
|
||||
if (!interface_ready())
|
||||
return BT_STATUS_NOT_READY;
|
||||
|
||||
return BT_STATUS_UNSUPPORTED;
|
||||
return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH,
|
||||
HAL_OP_CANCEL_DISCOVERY, 0, NULL, 0,
|
||||
NULL, NULL);
|
||||
}
|
||||
|
||||
static int create_bond(const bt_bdaddr_t *bd_addr)
|
||||
|
Loading…
Reference in New Issue
Block a user