Bluetooth: Improve data packing in SAR mode
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>
Wed, 13 Aug 2014 14:01:41 +0000 (16:01 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:26 +0000 (08:49 +0200)
commit069cb27017de6476d47a70fbf144f69200d3e854
tree88495bd9f4d25a11c52506b4f3c89c14a5d38a23
parent3bbaf812065e8b0feca02b6c7e5117b731709008
Bluetooth: Improve data packing in SAR mode

There is no need to decrease pdu size with L2CAP SDU lenght in Start
L2CAP SDU frame. Start packtet is just 2 bytes longer as specified and
we can keep payload as long as possible.

When testing SAR L2CAP against PTS, L2CAP channel is usually configured
in that way, that SDU = MPS * 3. PTS expets then 3 I-Frames from IUT: Start,
Continuation and End frame.

Without this fix, we sent 4 I-Frames. We could pass a test by using -b
option in l2test and send just two bytes less than SDU length. With this
patch no need to use -b option.

Signed-off-by: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c