Skip to content

Commit 176676d

Browse files
Thalleykartben
authored andcommitted
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: Emil Gydesen <emil.gydesen@nordicsemi.no>
1 parent c562cbc commit 176676d

File tree

1 file changed

+1
-1
lines changed
  • tests/bluetooth/tester/src

1 file changed

+1
-1
lines changed

tests/bluetooth/tester/src/btp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ static struct k_thread cmd_thread;
3131
#define CMD_QUEUED 2
3232
struct btp_buf {
3333
intptr_t _reserved;
34+
uint8_t rsp[BTP_MTU];
3435
union {
3536
uint8_t data[BTP_MTU];
3637
struct btp_hdr hdr;
3738
};
38-
uint8_t rsp[BTP_MTU];
3939
};
4040

4141
static struct btp_buf cmd_buf[CMD_QUEUED];

0 commit comments

Comments
 (0)