diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-03-12 06:13:10 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-08 23:41:31 -0400 |
commit | 4fd21a88e311c03241f323f64aef643fcd5f149d (patch) | |
tree | eea2134631740b74b6dc858ba178200514978274 /net/bluetooth/l2cap_core.c | |
parent | 8ce0c498aa6f40db119d5eb60aa9e7de5e66880e (diff) |
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: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r-- | 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 aaab65515098..4b66cad3ee3d 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -2379,9 +2379,9 @@ done: | |||
2379 | chan->remote_mps = size; | 2379 | chan->remote_mps = size; |
2380 | 2380 | ||
2381 | rfc.retrans_timeout = | 2381 | rfc.retrans_timeout = |
2382 | le16_to_cpu(L2CAP_DEFAULT_RETRANS_TO); | 2382 | __constant_cpu_to_le16(L2CAP_DEFAULT_RETRANS_TO); |
2383 | rfc.monitor_timeout = | 2383 | rfc.monitor_timeout = |
2384 | le16_to_cpu(L2CAP_DEFAULT_MONITOR_TO); | 2384 | __constant_cpu_to_le16(L2CAP_DEFAULT_MONITOR_TO); |
2385 | 2385 | ||
2386 | set_bit(CONF_MODE_DONE, &chan->conf_state); | 2386 | set_bit(CONF_MODE_DONE, &chan->conf_state); |
2387 | 2387 | ||