Bluetooth: L2CAP: Don't limit tx MTU

This store the original MTU sent by the remote instead of limiting it to
the amount the buffer can allocate since buffer sizes can now be
different and it was anyway wrong to assume the size of buffer used for
signalling would be the same as in data packets.

Change-Id: I52c7e4946ae949a0068ce28a00d2b427a48a1b51
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2015-10-29 11:22:55 +02:00 committed by Anas Nashif
commit 701404624e

View file

@ -379,8 +379,6 @@ static void le_conn_req(struct bt_l2cap *l2cap, uint8_t ident,
hdr->ident = ident;
hdr->len = sys_cpu_to_le16(sizeof(*rsp));
mtu = min(mtu, net_buf_tailroom(buf));
rsp = net_buf_add(buf, sizeof(*rsp));
memset(rsp, 0, sizeof(*rsp));