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:
parent
b861797736
commit
701404624e
1 changed files with 0 additions and 2 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue