Add missing Listen and Set Advertising Data opcodes and reorder them as
they appear in HAL's headers.
---
android/hal-ipc-api.txt | 107 ++++++++++++++++++++++++++++--------------------
1 file changed, 63 insertions(+), 44 deletions(-)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 5c3933a..49d704e 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1406,39 +1406,56 @@ Bluetooth GATT HAL (ID 9)
Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
Opcode 0x00 - Error response
+
+ Response parameters: Status (1 octet)
+
+ Valid status values: 0x01 = Fail
+ 0x02 = Not ready
+ 0x03 = No memory
+ 0x04 = Busy
+ 0x05 = Done (already completed)
+ 0x06 = Unsupported
+ 0x07 = Parameter invalid
+ 0x08 = Unhandled
+ 0x09 = Authentication failure
+ 0x0a = Remote device down
+
Opcode 0x01 - Register Client command/response
Opcode 0x02 - Unregister Client command/response
Opcode 0x03 - Scan command/response
Opcode 0x04 - Connect Device command/response
Opcode 0x05 - Disconnect Device command/response
- Opcode 0x06 - Refresh command/response
- Opcode 0x07 - Search Service command/response
- Opcode 0x08 - Get Included Service command/response
- Opcode 0x09 - Get Characteristic command/response
- Opcode 0x0a - Get Descriptor command/response
- Opcode 0x0b - Read Characteristic command/response
- Opcode 0x0c - Write Characteristic command/response
- Opcode 0x0d - Read Descriptor command/response
- Opcode 0x0e - Write Descriptor command/response
- Opcode 0x0f - Execute Write command/response
- Opcode 0x10 - Register For Notification command/response
- Opcode 0x11 - Deregister For Notification command/response
- Opcode 0x12 - Read Remote RSSI command/response
- Opcode 0x13 - Get Device Type command/response
- Opcode 0x14 - Test Command command/response
- Opcode 0x15 - Register Server command/response
- Opcode 0x16 - Unregister Server command/response
- Opcode 0x17 - Connect Peripheral command/response
- Opcode 0x18 - Disconnect Peripheral command/response
- Opcode 0x19 - Add Service command/response
- Opcode 0x1a - Add Included Service command/response
- Opcode 0x1b - Add Characteristic command/response
- Opcode 0x1c - Add Descriptor command/response
- Opcode 0x1d - Start Service command/response
- Opcode 0x1e - Stop Service command/response
- Opcode 0x1f - Delete Service command/response
- Opcode 0x20 - Send Indication command/response
- Opcode 0x21 - Send Response command/response
+ Opcode 0x06 - Listen command/response
+ Opcode 0x07 - Refresh command/response
+ Opcode 0x08 - Search Service command/response
+ Opcode 0x09 - Get Included Service command/response
+ Opcode 0x0a - Get Characteristic command/response
+ Opcode 0x0b - Get Descriptor command/response
+ Opcode 0x0c - Read Characteristic command/response
+ Opcode 0x0d - Write Characteristic command/response
+ Opcode 0x0e - Read Descriptor command/response
+ Opcode 0x0f - Write Descriptor command/response
+ Opcode 0x10 - Execute Write command/response
+ Opcode 0x11 - Register For Notification command/response
+ Opcode 0x12 - Deregister For Notification command/response
+ Opcode 0x13 - Read Remote RSSI command/response
+ Opcode 0x14 - Get Device Type command/response
+ Opcode 0x15 - Set Advertising data command/response
+ Opcode 0x16 - Test Command command/response
+
+ Opcode 0x17 - Register Server command/response
+ Opcode 0x18 - Unregister Server command/response
+ Opcode 0x19 - Connect Peripheral command/response
+ Opcode 0x1a - Disconnect Peripheral command/response
+ Opcode 0x1b - Add Service command/response
+ Opcode 0x1c - Add Included Service command/response
+ Opcode 0x1d - Add Characteristic command/response
+ Opcode 0x1e - Add Descriptor command/response
+ Opcode 0x1f - Start Service command/response
+ Opcode 0x20 - Stop Service command/response
+ Opcode 0x21 - Delete Service command/response
+ Opcode 0x22 - Send Indication command/response
+ Opcode 0x23 - Send Response command/response
Opcode 0x81 - Register Client notification
Opcode 0x82 - Scan Result notification
@@ -1453,20 +1470,22 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
Opcode 0x8b - Notify notification
Opcode 0x8c - Read Characteristic notification
Opcode 0x8d - Write Characteristic notification
- Opcode 0x8e - Execute Write notification
- Opcode 0x8f - Read Descriptor notification
- Opcode 0x90 - Write Descriptor notification
+ Opcode 0x8e - Read Descriptor notification
+ Opcode 0x8f - Write Descriptor notification
+ Opcode 0x90 - Execute Write notification
Opcode 0x91 - Read Remote RSSI notification
- Opcode 0x92 - Register Server notification
- Opcode 0x93 - Connection notification
- Opcode 0x94 - Service Added notification
- Opcode 0x95 - Included Service Added notification
- Opcode 0x96 - Characteristic Added notification
- Opcode 0x97 - Descriptor Added notification
- Opcode 0x98 - Service Started notification
- Opcode 0x99 - Service Stopped notification
- Opcode 0x9a - Service Deleted notification
- Opcode 0x9b - Request Read notification
- Opcode 0x9c - Request Write notification
- Opcode 0x9d - Request Execute Write notification
- Opcode 0x9e - Response Confirmation notification
+ Opcode 0x92 - Listen notification
+
+ Opcode 0x93 - Register Server notification
+ Opcode 0x94 - Connection notification
+ Opcode 0x95 - Service Added notification
+ Opcode 0x96 - Included Service Added notification
+ Opcode 0x97 - Characteristic Added notification
+ Opcode 0x98 - Descriptor Added notification
+ Opcode 0x99 - Service Started notification
+ Opcode 0x9a - Service Stopped notification
+ Opcode 0x9b - Service Deleted notification
+ Opcode 0x9c - Request Read notification
+ Opcode 0x9d - Request Write notification
+ Opcode 0x9e - Request Execute Write notification
+ Opcode 0x9f - Response Confirmation notification
--
1.9.0
---
android/hal-ipc-api.txt | 11 +++++++++++
android/hal-msg.h | 8 ++++++++
2 files changed, 19 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index a6d23dd..5349c53 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1531,6 +1531,17 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x0c - Read Characteristic command/response
+
+ Command parameters: Connection ID (4 octets)
+ Service ID (18 octets)
+ GATT ID (17 octets)
+ Authorization (4 octets)
+ Valid Service ID: as described in Get Included Service
+ Valid GATT ID: as described in Get Included Service
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x0d - Write Characteristic command/response
Opcode 0x0e - Read Descriptor command/response
Opcode 0x0f - Write Descriptor command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 576d4d5..e7a5b6d 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -1041,3 +1041,11 @@ struct hal_cmd_gatt_client_get_descroptor {
uint8_t number;
uint8_t gatt_id[0];
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_READ_CHARACTERISTIC 0x0c
+struct hal_cmd_gatt_client_read_characteristic {
+ int32_t connection_id;
+ struct hal_gatt_srvc_id srvc_id;
+ struct hal_gatt_gatt_id gatt_id;
+ int32_t authorization;
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 13 +++++++++++++
android/hal-msg.h | 8 ++++++++
2 files changed, 21 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index e490bd1..a6d23dd 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1517,6 +1517,19 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x0b - Get Descriptor command/response
+
+ Command parameters: Connection ID (4 octets)
+ Service ID (18 octets)
+ Number of GATT ID Elements (1 octet)
+ GATT ID Elements (variable)
+ Valid Service ID: as described in Get Included Service
+ Valid Number of GATT ID Elements: 0x01
+ 0x02
+ Valid GATT ID Element: as described in Get Included Service
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x0c - Read Characteristic command/response
Opcode 0x0d - Write Characteristic command/response
Opcode 0x0e - Read Descriptor command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index d0ebad8..576d4d5 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -1033,3 +1033,11 @@ struct hal_cmd_gatt_client_get_characteristic {
uint8_t number;
uint8_t gatt_id[0];
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_GET_DESCRIPTOR 0x0b
+struct hal_cmd_gatt_client_get_descroptor {
+ int32_t connection_id;
+ struct hal_gatt_srvc_id srvc_id;
+ uint8_t number;
+ uint8_t gatt_id[0];
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 13 +++++++++++++
android/hal-msg.h | 8 ++++++++
2 files changed, 21 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 13974c7..e490bd1 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1503,6 +1503,19 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x0a - Get Characteristic command/response
+
+ Command parameters: Connection ID (4 octets)
+ Service ID (18 octets)
+ Number of GATT ID Elements (1 octet)
+ GATT ID Elements (variable)
+ Valid Service ID: as described in Get Included Service
+ Valid Number of GATT ID Elements: 0x00
+ 0x01
+ Valid GATT ID Element: as described in Get Included Service
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x0b - Get Descriptor command/response
Opcode 0x0c - Read Characteristic command/response
Opcode 0x0d - Write Characteristic command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index cd13b0c..d0ebad8 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -1025,3 +1025,11 @@ struct hal_cmd_gatt_client_get_service {
uint8_t number;
uint8_t srvc_id[0];
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_GET_CHARACTERISTIC 0x0a
+struct hal_cmd_gatt_client_get_characteristic {
+ int32_t connection_id;
+ struct hal_gatt_srvc_id srvc_id;
+ uint8_t number;
+ uint8_t gatt_id[0];
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 14 ++++++++++++++
android/hal-msg.h | 17 +++++++++++++++++
2 files changed, 31 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index b5f302b..13974c7 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1488,6 +1488,20 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x09 - Get Included Service command/response
+
+ Command parameters: Connection ID (4 octets)
+ Number of Service ID Elements (1 octet)
+ Service ID Elements (variable)
+ Valid Number of Service ID Elements: 0x01
+ 0x02
+ Valid Service ID Element: GATT ID (17 octets)
+ Is Primary (1 octet)
+ Valid GATT ID: UUID (16 octets)
+ Instance ID (1 octet)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x0a - Get Characteristic command/response
Opcode 0x0b - Get Descriptor command/response
Opcode 0x0c - Read Characteristic command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 0f2b011..cd13b0c 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -1008,3 +1008,20 @@ struct hal_cmd_gatt_client_search_service {
uint8_t number;
uint8_t uuid[0];
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_GET_INCLUDED_SERVICE 0x09
+struct hal_gatt_gatt_id {
+ uint8_t uuid[16];
+ uint8_t inst_id;
+} __attribute__((packed));
+
+struct hal_gatt_srvc_id {
+ struct hal_gatt_gatt_id gatt_id;
+ uint8_t is_primary;
+} __attribute__((packed));
+
+struct hal_cmd_gatt_client_get_service {
+ int32_t conn_id;
+ uint8_t number;
+ uint8_t srvc_id[0];
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 8 ++++++++
android/hal-msg.h | 7 +++++++
2 files changed, 15 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index bbb94a9..ffc903a 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1452,6 +1452,14 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x05 - Disconnect Device command/response
+
+ Command parameters: Client Interface (4 octets)
+ Remote address (6 octets)
+ Connection ID (4 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x06 - Listen command/response
Opcode 0x07 - Refresh command/response
Opcode 0x08 - Search Service command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 032c6f1..22cfaf4 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -982,3 +982,10 @@ struct hal_cmd_gatt_client_connect {
uint8_t bdaddr[6];
uint8_t is_direct;
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_DISCONNECT 0x05
+struct hal_cmd_gatt_client_disconnect {
+ int32_t client_if;
+ uint8_t bdaddr[6];
+ int32_t conn_id;
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 10 ++++++++++
android/hal-msg.h | 7 +++++++
2 files changed, 17 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 9a3c776..b5f302b 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1477,6 +1477,16 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x08 - Search Service command/response
+
+ Command parameters: Connection ID (4 octets)
+ Number of UUID Filters (1 octet)
+ UUID Filter (variable)
+ Valid Number of UUID Filters: 0x00
+ 0x01
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x09 - Get Included Service command/response
Opcode 0x0a - Get Characteristic command/response
Opcode 0x0b - Get Descriptor command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 3a7ccd6..0f2b011 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -1001,3 +1001,10 @@ struct hal_cmd_gatt_client_refresh {
int32_t client_if;
uint8_t bdaddr[6];
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_SEARCH_SERVICE 0x08
+struct hal_cmd_gatt_client_search_service {
+ int32_t conn_id;
+ uint8_t number;
+ uint8_t uuid[0];
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 7 +++++++
android/hal-msg.h | 6 ++++++
2 files changed, 13 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index ffc903a..9021154 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1461,6 +1461,13 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x06 - Listen command/response
+
+ Command parameters: Client Interface (4 octets)
+ Start (1 octet)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x07 - Refresh command/response
Opcode 0x08 - Search Service command/response
Opcode 0x09 - Get Included Service command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 22cfaf4..de714dd 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -989,3 +989,9 @@ struct hal_cmd_gatt_client_disconnect {
uint8_t bdaddr[6];
int32_t conn_id;
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_LISTEN 0x06
+struct hal_cmd_gatt_client_listen {
+ int32_t client_if;
+ uint8_t start;
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 7 +++++++
android/hal-msg.h | 6 ++++++
2 files changed, 13 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 9021154..9a3c776 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1469,6 +1469,13 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x07 - Refresh command/response
+
+ Command parameters: Client Interface (4 octets)
+ Remote address (6 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x08 - Search Service command/response
Opcode 0x09 - Get Included Service command/response
Opcode 0x0a - Get Characteristic command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index de714dd..3a7ccd6 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -995,3 +995,9 @@ struct hal_cmd_gatt_client_listen {
int32_t client_if;
uint8_t start;
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_REFRESH 0x07
+struct hal_cmd_gatt_client_refresh {
+ int32_t client_if;
+ uint8_t bdaddr[6];
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 8 ++++++++
android/hal-msg.h | 7 +++++++
2 files changed, 15 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 51aaba1..bbb94a9 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1443,6 +1443,14 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x04 - Connect Device command/response
+
+ Command parameters: Client Interface (4 octets)
+ Remote address (6 octets)
+ Is Direct (1 octet)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x05 - Disconnect Device command/response
Opcode 0x06 - Listen command/response
Opcode 0x07 - Refresh command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 0c6df68..032c6f1 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -975,3 +975,10 @@ struct hal_cmd_gatt_client_scan {
int32_t client_if;
uint8_t start;
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_CONNECT 0x04
+struct hal_cmd_gatt_client_connect {
+ int32_t client_if;
+ uint8_t bdaddr[6];
+ uint8_t is_direct;
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 6 ++++++
android/hal-msg.h | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 70c451d..53fa5b9 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1428,6 +1428,12 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x02 - Unregister Client command/response
+
+ Command parameters: Client Interface (4 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x03 - Scan command/response
Opcode 0x04 - Connect Device command/response
Opcode 0x05 - Disconnect Device command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 6032aea..4587142 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -964,3 +964,8 @@ struct hal_ev_avrcp_passthrough_cmd {
struct hal_cmd_gatt_client_register {
uint8_t uuid[16];
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_UNREGISTER 0x02
+struct hal_cmd_gatt_client_unregister {
+ int32_t client_if;
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 7 +++++++
android/hal-msg.h | 6 ++++++
2 files changed, 13 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 53fa5b9..51aaba1 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1435,6 +1435,13 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x03 - Scan command/response
+
+ Command parameters: Client Interface (4 octets)
+ Start (1 octet)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x04 - Connect Device command/response
Opcode 0x05 - Disconnect Device command/response
Opcode 0x06 - Listen command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 4587142..0c6df68 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -969,3 +969,9 @@ struct hal_cmd_gatt_client_register {
struct hal_cmd_gatt_client_unregister {
int32_t client_if;
} __attribute__((packed));
+
+#define HAL_OP_GATT_CLIENT_SCAN 0x03
+struct hal_cmd_gatt_client_scan {
+ int32_t client_if;
+ uint8_t start;
+} __attribute__((packed));
--
1.9.0
---
android/hal-ipc-api.txt | 6 ++++++
android/hal-msg.h | 7 +++++++
2 files changed, 13 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 49d704e..70c451d 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1421,6 +1421,12 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
0x0a = Remote device down
Opcode 0x01 - Register Client command/response
+
+ Command parameters: Service UUID (16 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x02 - Unregister Client command/response
Opcode 0x03 - Scan command/response
Opcode 0x04 - Connect Device command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 836dbbf..6032aea 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -957,3 +957,10 @@ struct hal_ev_avrcp_passthrough_cmd {
uint8_t id;
uint8_t state;
} __attribute__((packed));
+
+/* GAT CLIENT HAL API */
+
+#define HAL_OP_GATT_CLIENT_REGISTER 0x01
+struct hal_cmd_gatt_client_register {
+ uint8_t uuid[16];
+} __attribute__((packed));
--
1.9.0