Length can be up to 600 thus 16bit value should be used. --- android/hal-msg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/hal-msg.h b/android/hal-msg.h index 677f450..8ac26ab 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -781,7 +781,7 @@ struct hal_cmd_gatt_server_send_response { int32_t conn_id; int32_t trans_id; int32_t status; - uint8_t len; + uint16_t len; uint8_t data[0]; } __attribute__((packed)); -- 1.9.0 -- 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