aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-03-12 06:13:09 -0400
committerGustavo Padovan <gustavo@padovan.org>2012-05-08 23:41:31 -0400
commit8ce0c498aa6f40db119d5eb60aa9e7de5e66880e (patch)
tree87e0ae62b158f6c89eee9c0f358f5225e15806ef /net/bluetooth/l2cap_core.c
parentd9b887020eb54eeb78d222c862ef2dc65b8e0ebe (diff)
Bluetooth: Convert error codes to le16
Create Chan Rsp shall put result and status in le format. 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 1a2f54b8f30c..aaab65515098 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -3266,8 +3266,8 @@ static inline int l2cap_create_channel_req(struct l2cap_conn *conn,
3266 /* Placeholder: Always reject */ 3266 /* Placeholder: Always reject */
3267 rsp.dcid = 0; 3267 rsp.dcid = 0;
3268 rsp.scid = cpu_to_le16(scid); 3268 rsp.scid = cpu_to_le16(scid);
3269 rsp.result = L2CAP_CR_NO_MEM; 3269 rsp.result = __constant_cpu_to_le16(L2CAP_CR_NO_MEM);
3270 rsp.status = L2CAP_CS_NO_INFO; 3270 rsp.status = __constant_cpu_to_le16(L2CAP_CS_NO_INFO);
3271 3271
3272 l2cap_send_cmd(conn, cmd->ident, L2CAP_CREATE_CHAN_RSP, 3272 l2cap_send_cmd(conn, cmd->ident, L2CAP_CREATE_CHAN_RSP,
3273 sizeof(rsp), &rsp); 3273 sizeof(rsp), &rsp);