Diff between 81aaa6f88020f23293dec3991ae1cf9e680ab218 and da16db5af6f5f07ae48d128eace9f528586f965a

Changed Files

File Additions Deletions Status
android/hal-gatt.c +1 -3 modified

Full Patch

diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index 1cc4897..c563fe9 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
@@ -1016,10 +1016,8 @@ static bt_status_t set_adv_data_real(int server_if, bool set_scan_rsp,
 		data += service_data_len;
 	}
 
-	if (service_uuid && service_uuid_len) {
+	if (service_uuid && service_uuid_len)
 		memcpy(data, service_uuid, service_uuid_len);
-		data += service_uuid_len;
-	}
 
 	return hal_ipc_cmd(HAL_SERVICE_ID_GATT, HAL_OP_GATT_CLIENT_SET_ADV_DATA,
 						cmd_len, cmd, NULL, NULL, NULL);