Commit 176676d8 authored by Emil Gydesen's avatar Emil Gydesen Committed by Benjamin Cabé
Browse files

tests: Bluetooth: Tester: Reorder btp_buf to fix variable array

The `btp_hdr` needs to be last in the struct, as it has
a variable length array (data[]).

Signed-off-by: default avatarEmil Gydesen <emil.gydesen@nordicsemi.no>
parent c562cbc2
Loading
Loading
Loading
Loading
+1 −1
Changes for tests/bluetooth/tester/src/btp.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -31,11 +31,11 @@ static struct k_thread cmd_thread;
#define CMD_QUEUED 2
struct btp_buf {
	intptr_t _reserved;
	uint8_t rsp[BTP_MTU];
	union {
		uint8_t data[BTP_MTU];
		struct btp_hdr hdr;
	};
	uint8_t rsp[BTP_MTU];
};

static struct btp_buf cmd_buf[CMD_QUEUED];