Skip to content
Commit ffd15131 authored by Jim Benjamin Luther's avatar Jim Benjamin Luther Committed by Carles Cufi
Browse files

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: default avatarJim Luther <jilu@oticon.com>
parent 95ac5532
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment