]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix incorrect LE CoC PDU length restriction based on HCI MTU
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 15 Aug 2014 18:06:51 +0000 (21:06 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Sep 2014 17:07:52 +0000 (19:07 +0200)
commit6909fb45ee6a58f15103aaa3fb1e0cf812e431da
tree78513272787c14712c47af74cfed3d6bfe1d32a5
parentf7e25a17dbb497604831b86cc9a9f882a9a373ac
Bluetooth: Fix incorrect LE CoC PDU length restriction based on HCI MTU

The l2cap_create_le_flowctl_pdu() function that l2cap_segment_le_sdu()
calls is perfectly capable of doing packet fragmentation if given bigger
PDUs than the HCI buffers allow. Forcing the PDU length based on the HCI
MTU (conn->mtu) would therefore needlessly strict operation on hardware
with limited LE buffers (e.g. both Intel and Broadcom seem to have this
set to just 27 bytes).

This patch removes the restriction and makes it possible to send PDUs of
the full length that the remote MPS value allows.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: stable@vger.kernel.org
net/bluetooth/l2cap_core.c