Hi Andrei, > In L2CAP we use le16 format so change direction of conversion > from le16_to_cpu to cpu_to_le16. > > 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 cf0b166..eb72f5a 100644 > --- a/net/bluetooth/l2cap_core.c > +++ b/net/bluetooth/l2cap_core.c > @@ -2413,9 +2413,9 @@ done: > chan->remote_mps = size; > > rfc.retrans_timeout = > - le16_to_cpu(L2CAP_DEFAULT_RETRANS_TO); > + cpu_to_le16(L2CAP_DEFAULT_RETRANS_TO); > rfc.monitor_timeout = > - le16_to_cpu(L2CAP_DEFAULT_MONITOR_TO); > + cpu_to_le16(L2CAP_DEFAULT_MONITOR_TO); and here we should also use the __constant version. 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