Diff between 83ced6b01ba9554bcad01af71776dc36baa027f5 and 61c5fdb0e06b268f385da992c31183859fee1d5c

Changed Files

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

Full Patch

diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 72c2a7a..085e789 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1634,6 +1634,20 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
 		In case of an error, the error response will be returned.
 
 	Opcode 0x15 - Set Advertising data command/response
+
+		Command parameters: Server Interface (4 octets)
+		                    Set Scan Resp. (1 octet)
+		                    Include Name (1 octet)
+		                    Include TX Power (1 octet)
+		                    Min. Interval (4 octets)
+		                    Max. Interval (4 octets)
+		                    Appearance (4 octets)
+		                    Manufacturer Len. (2 octets)
+		                    Manufacturer Data (variable)
+		Response parameters: <none>
+
+		In case of an error, the error response will be returned.
+
 	Opcode 0x16 - Test Command command/response
 
 	Opcode 0x17 - Register Server command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 91f1c95..937aa20 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -673,6 +673,19 @@ struct hal_cmd_gatt_client_get_device_type {
 	uint8_t bdaddr[6];
 } __attribute__((packed));
 
+#define HAL_OP_GATT_CLIENT_SET_ADV_DATA		0x015
+struct hal_cmd_gatt_client_set_adv_data {
+	int32_t  server_if;
+	uint8_t  set_scan_rsp;
+	uint8_t  include_name;
+	uint8_t  include_txpower;
+	int32_t  min_interval;
+	int32_t  max_interval;
+	int32_t  appearance;
+	uint16_t manufacturer_len;
+	uint8_t  manufacturer_data[0];
+} __attribute__((packed));
+
 /* Notifications and confirmations */
 
 #define HAL_POWER_OFF			0x00