Set need_resp flag if pepare write request have been received. This is needed because application should send response to stack. --- android/gatt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index cccf23e..ef831ad 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 = true; ev->length = len; memcpy(ev->value, value, len); -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html