Diff between b00bb711e14559bd1cdfadc09be78b75b8eee6c5 and e72eb6f8e47d3a8b9743ec1f1ec6389ab73e54a5

Changed Files

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

Full Patch

diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index f7cc073..a1ad71e 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1696,6 +1696,20 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
 		In case of an error, the error response will be returned.
 
 	Opcode 0x1b - Add Service command/response
+
+		Command parameters: Server (4 octets)
+		                    GATT Service ID (18 octets)
+		                    Number of Handles (4 octet)
+
+		Valid GATT Service ID: GATT ID (17 octets)
+		                       Is Primary (1 octet)
+
+		Valid GATT ID: UUID (16 octets)
+		               Instance ID (1 octets)
+		Response parameters: <none>
+
+		In case of an error, the error response will be returned.
+
 	Opcode 0x1c - Add Included Service command/response
 	Opcode 0x1d - Add Characteristic command/response
 	Opcode 0x1e - Add Descriptor command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index d3cff8c..aacd392 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -726,6 +726,13 @@ struct hal_cmd_gatt_server_disconnect {
 	int32_t conn_id;
 } __attribute__((packed));
 
+#define HAL_OP_GATT_SERVER_ADD_SERVICE		0x1b
+struct hal_cmd_gatt_server_add_service {
+	int32_t server_if;
+	struct hal_gatt_srvc_id srvc_id;
+	int32_t num_handles;
+} __attribute__((packed));
+
 /* Notifications and confirmations */
 
 #define HAL_POWER_OFF			0x00