Diff between 1574417acd4f1c2d21ed3b63e1d54e0733d0aec7 and 8fbe1120206d2e81b76e125baa19e04022d41111

Changed Files

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

Full Patch

diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 96b537f..1a19c80 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1779,6 +1779,23 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
 
 	Opcode 0x23 - Send Response command/response
 
+		Command parameters: Connection ID (4 octets)
+		                    Transaction ID (4 octets)
+		                    Status (4 octets)
+		                    GATT Response (4 octets)
+
+		Valid GATT Response: GATT Value (607 octets)
+		                     Handle (2 octets)
+
+		Valid GATT Value: Value (600 octets)
+		                  Handle (2 octets)
+		                  Offset (2 octets)
+		                  Length (2 octets)
+		                  Authentication Request (1 octet)
+		Response parameters: <none>
+
+		In case of an error, the error response will be returned.
+
 	Opcode 0x81 - Register Client notification
 	Opcode 0x82 - Scan Result notification
 	Opcode 0x83 - Connect Device notification
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 160bc08..bde9717 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -786,6 +786,15 @@ struct hal_cmd_gatt_server_send_indication {
 	uint8_t value[0];
 } __attribute__((packed));
 
+#define HAL_OP_GATT_SERVER_SEND_RESPONSE	0x23
+struct hal_cmd_gatt_server_send_response {
+	int32_t conn_id;
+	int32_t trans_id;
+	int32_t status;
+	uint8_t len;
+	uint8_t data[0];
+} __attribute__((packed));
+
 /* Notifications and confirmations */
 
 #define HAL_POWER_OFF			0x00