bluetooth: host: fix unpacked l2cap struct
The bt_l2cap_le_conn_rsp struct in l2cap_internal.h has not been declared __packed. This can cause alignment problems on some platforms if the struct is placed on an unaligned address. A __packed declaration solves this issue by forcing the compiler to use store instructions that do not required alignment. Signed-off-by: Jim Luther <jilu@oticon.com>
This commit is contained in:
parent
95ac55327b
commit
ffd15131d2
@ -183,7 +183,7 @@ struct bt_l2cap_le_conn_rsp {
|
||||
u16_t mps;
|
||||
u16_t credits;
|
||||
u16_t result;
|
||||
};
|
||||
} __packed;
|
||||
|
||||
#define BT_L2CAP_LE_CREDITS 0x16
|
||||
struct bt_l2cap_le_credits {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user