Hi Andrei, > Create Chan Rsp shall put result and status in le format. > > Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> > --- > net/bluetooth/l2cap_core.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c > index 428e0b0..cf0b166 100644 > --- a/net/bluetooth/l2cap_core.c > +++ b/net/bluetooth/l2cap_core.c > @@ -3300,8 +3300,8 @@ static inline int l2cap_create_channel_req(struct l2cap_conn *conn, > /* Placeholder: Always reject */ > rsp.dcid = 0; > rsp.scid = cpu_to_le16(scid); > - rsp.result = L2CAP_CR_NO_MEM; > - rsp.status = L2CAP_CS_NO_INFO; > + rsp.result = cpu_to_le16(L2CAP_CR_NO_MEM); > + rsp.status = cpu_to_le16(L2CAP_CS_NO_INFO); you can use the __constant version of the macro here. Regards Marcel -- 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