Diff between 47af8ad9a0f6b8bf4298d21736fb5bcc42c5d855 and 6560358265eda87f0d20b74844d81ace3653876e

Changed Files

File Additions Deletions Status
android/hal-ipc-api.txt +6 -0 modified
android/hal-msg.h +5 -0 modified

Full Patch

diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 94432a1..85a0bcf 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1664,6 +1664,12 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
 		In case of an error, the error response will be returned.
 
 	Opcode 0x17 - Register Server command/response
+
+		Command parameters: UUID (16 octets)
+		Response parameters: <none>
+
+		In case of an error, the error response will be returned.
+
 	Opcode 0x18 - Unregister Server command/response
 	Opcode 0x19 - Connect Peripheral command/response
 	Opcode 0x1a - Disconnect Peripheral command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 9bb072d..750f516 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -702,6 +702,11 @@ struct hal_cmd_gatt_client_test_command {
 	struct hal_gatt_test_params params;
 } __attribute__((packed));
 
+#define HAL_OP_GATT_SERVER_REGISTER		0x17
+struct hal_cmd_gatt_server_register {
+	uint8_t uuid[16];
+} __attribute__((packed));
+
 /* Notifications and confirmations */
 
 #define HAL_POWER_OFF			0x00