OSDN Git Service

android: Add stub of get_remote_services command
authorMarcin Kraglak <marcin.kraglak@tieto.com>
Mon, 4 Nov 2013 08:06:48 +0000 (09:06 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 4 Nov 2013 08:20:28 +0000 (10:20 +0200)
android/adapter.c

index 6f2a061..af62b11 100644 (file)
@@ -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;