]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Limit LE MPS to the MTU value
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Oct 2013 13:35:26 +0000 (15:35 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Dec 2013 15:05:35 +0000 (07:05 -0800)
commit109a8336d84668f26bffb65684d6c761cd47498a
treed572b4d5d86d0ca5079cc30c3ba1d317a7530762
parente955aed21397bf7f4853ff9579d9f03723bc0016
Bluetooth: Limit LE MPS to the MTU value

It doesn't make sense to have an MPS value greater than the configured
MTU value since we will then not be able to fill up the packets to their
full possible size. We need to set the MPS both in flowctl_init()
as well as flowctl_start() since the imtu may change after init() but
start() is only called after we've sent the LE Connection Request PDU
which depends on having a valid MPS value.

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