]> 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)
commit196f74c1ffda7be84989491b11998fe34242abb9
treed572b4d5d86d0ca5079cc30c3ba1d317a7530762
parent8b291ee2aa2d13127102c50c824cb7e9de6ff788
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