提交 8ce0c498 编写于 作者: A Andrei Emeltchenko 提交者: Gustavo Padovan

Bluetooth: Convert error codes to le16

Create Chan Rsp shall put result and status in le format.
Signed-off-by: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
上级 d9b88702
...@@ -3266,8 +3266,8 @@ static inline int l2cap_create_channel_req(struct l2cap_conn *conn, ...@@ -3266,8 +3266,8 @@ static inline int l2cap_create_channel_req(struct l2cap_conn *conn,
/* Placeholder: Always reject */ /* Placeholder: Always reject */
rsp.dcid = 0; rsp.dcid = 0;
rsp.scid = cpu_to_le16(scid); rsp.scid = cpu_to_le16(scid);
rsp.result = L2CAP_CR_NO_MEM; rsp.result = __constant_cpu_to_le16(L2CAP_CR_NO_MEM);
rsp.status = L2CAP_CS_NO_INFO; rsp.status = __constant_cpu_to_le16(L2CAP_CS_NO_INFO);
l2cap_send_cmd(conn, cmd->ident, L2CAP_CREATE_CHAN_RSP, l2cap_send_cmd(conn, cmd->ident, L2CAP_CREATE_CHAN_RSP,
sizeof(rsp), &rsp); sizeof(rsp), &rsp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册