Diff between 2197a6507678952df253744d9f3aedd0af9971cf and b00bb711e14559bd1cdfadc09be78b75b8eee6c5

Changed Files

File Additions Deletions Status
android/hal-ipc-api.txt +8 -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 6fd805c..f7cc073 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1687,6 +1687,14 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
 		In case of an error, the error response will be returned.
 
 	Opcode 0x1a - Disconnect Peripheral command/response
+
+		Command parameters: Server (4 octets)
+		                    Remote address (6 octes)
+		                    Connection ID (1 octet)
+		Response parameters: <none>
+
+		In case of an error, the error response will be returned.
+
 	Opcode 0x1b - Add Service command/response
 	Opcode 0x1c - Add Included Service command/response
 	Opcode 0x1d - Add Characteristic command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index ac87dd2..d3cff8c 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -719,6 +719,13 @@ struct hal_cmd_gatt_server_connect {
 	uint8_t is_direct;
 } __attribute__((packed));
 
+#define HAL_OP_GATT_SERVER_DISCONNECT		0x1a
+struct hal_cmd_gatt_server_disconnect {
+	int32_t server_if;
+	uint8_t bdaddr[6];
+	int32_t conn_id;
+} __attribute__((packed));
+
 /* Notifications and confirmations */
 
 #define HAL_POWER_OFF			0x00