From: Marcin Kraglak Date: Mon, 4 Nov 2013 08:06:48 +0000 (+0100) Subject: android: Add stub of get_remote_services command X-Git-Tag: android-x86-4.4-r3~7008 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c304a4c96393b0eeb652df6604771ea7fe4c1de0;p=android-x86%2Fexternal-bluetooth-bluez.git android: Add stub of get_remote_services command --- diff --git a/android/adapter.c b/android/adapter.c index 6f2a06104..af62b11b2 100644 --- a/android/adapter.c +++ b/android/adapter.c @@ -1459,6 +1459,11 @@ static uint8_t ssp_reply(void *buf, uint16_t len) return status; } +static uint8_t get_remote_services(void *buf, uint16_t len) +{ + return HAL_STATUS_UNSUPPORTED; +} + void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf, uint16_t len) { @@ -1563,6 +1568,11 @@ void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf, goto error; break; + case HAL_OP_GET_REMOTE_SERVICES: + status = get_remote_services(buf, len); + if (status != HAL_STATUS_SUCCESS) + goto error; + break; default: DBG("Unhandled command, opcode 0x%x", opcode); goto error;