]> git.ipfire.org Git - people/arne_f/kernel.git/commit
Bluetooth: L2CAP: Detect if remote is not able to use the whole MPS
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 4 Sep 2018 10:39:22 +0000 (13:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:00:46 +0000 (18:00 +0100)
commit433a53dc26330e53bded59c4ac31e274ceb8f86e
tree1b622d6cadd9cdbe9d41e6bc718b7975f8246394
parent191e19752460e0cabfe0a95a75a9a1ddd9b1cdd7
Bluetooth: L2CAP: Detect if remote is not able to use the whole MPS

[ Upstream commit a5c3021bb62b970713550db3f7fd08aa70665d7e ]

If the remote is not able to fully utilize the MPS choosen recalculate
the credits based on the actual amount it is sending that way it can
still send packets of MTU size without credits dropping to 0.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/l2cap_core.c