Commit 4fd21a88 authored by Andrei Emeltchenko's avatar Andrei Emeltchenko Committed by Gustavo Padovan

Bluetooth: trivial: Fix endian conversion mode

In L2CAP we use le16 format so change direction of conversion
from le16_to_cpu to cpu_to_le16.
Signed-off-by: default avatarAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 8ce0c498
...@@ -2379,9 +2379,9 @@ static int l2cap_parse_conf_req(struct l2cap_chan *chan, void *data) ...@@ -2379,9 +2379,9 @@ static int l2cap_parse_conf_req(struct l2cap_chan *chan, void *data)
chan->remote_mps = size; chan->remote_mps = size;
rfc.retrans_timeout = rfc.retrans_timeout =
le16_to_cpu(L2CAP_DEFAULT_RETRANS_TO); __constant_cpu_to_le16(L2CAP_DEFAULT_RETRANS_TO);
rfc.monitor_timeout = rfc.monitor_timeout =
le16_to_cpu(L2CAP_DEFAULT_MONITOR_TO); __constant_cpu_to_le16(L2CAP_DEFAULT_MONITOR_TO);
set_bit(CONF_MODE_DONE, &chan->conf_state); set_bit(CONF_MODE_DONE, &chan->conf_state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment