Diff between c5966b25c1f2f5fb22cfaf37c2a85daea1d0f65e and 066066949ccc068418e096ce6e856f8ec894d094

Changed Files

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

Full Patch

diff --git a/android/gatt.c b/android/gatt.c
index cccf23e..1e2366d 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -4580,7 +4580,10 @@ static void write_cb(uint16_t handle, uint16_t offset,
 	ev->trans_id = transaction->id;
 
 	ev->is_prep = att_opcode == ATT_OP_PREP_WRITE_REQ;
-	ev->need_rsp = att_opcode == ATT_OP_WRITE_REQ;
+
+	if (att_opcode == ATT_OP_WRITE_REQ ||
+					att_opcode == ATT_OP_PREP_WRITE_REQ)
+		ev->need_rsp = 0x01;
 
 	ev->length = len;
 	memcpy(ev->value, value, len);