Bluetooth: L2CAP: Avoid double endianess convertion
We already have host order length in len variable. Change-Id: I5b4ea652c5709eadd64b66584024501c40fd3abc Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
fdfc92c80d
commit
ad281d4dbe
1 changed files with 1 additions and 2 deletions
|
@ -788,8 +788,7 @@ static void l2cap_br_recv(struct bt_l2cap_chan *chan, struct net_buf *buf)
|
|||
l2cap_br_conn_req(l2cap, hdr->ident, buf);
|
||||
break;
|
||||
case BT_L2CAP_CONF_RSP:
|
||||
l2cap_br_conf_rsp(l2cap, hdr->ident, sys_le16_to_cpu(hdr->len),
|
||||
buf);
|
||||
l2cap_br_conf_rsp(l2cap, hdr->ident, len, buf);
|
||||
break;
|
||||
default:
|
||||
BT_WARN("Unknown/Unsupported L2CAP PDU code 0x%02x", hdr->code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue