]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: trivial: Fix endian conversion mode
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 12 Mar 2012 10:13:10 +0000 (12:13 +0200)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 28 Mar 2012 14:39:08 +0000 (11:39 -0300)
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>
net/bluetooth/l2cap_core.c

index 57c850734c0390810a306bba36200a484a6379e2..85984891b7d64a7fd47b591a6055bd9ae15aa436 100644 (file)
@@ -2376,9 +2376,9 @@ done:
                        chan->remote_mps = size;
 
                        rfc.retrans_timeout =
-                               le16_to_cpu(L2CAP_DEFAULT_RETRANS_TO);
+                               __constant_cpu_to_le16(L2CAP_DEFAULT_RETRANS_TO);
                        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);