Bluetooth: Auto tune if input MTU is set to 0
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 2 Jan 2020 23:00:57 +0000 (15:00 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 4 Jan 2020 09:51:46 +0000 (10:51 +0100)
commit4b6e228e297b73451f3a4b12fb7d0b24d9d32e6f
tree4b6f4464c66baa7d1d3371a61d1e9e40372cc20e
parent1efd927d660e6ab02a9cd32fbbe3c7dc47980132
Bluetooth: Auto tune if input MTU is set to 0

This enables the code to set the input MTU using the underline link
packet types when set to 0, previously this would likely be rejected by
the remote peer since it would be bellow the minimal of 48 for BR/EDR
or 23 for LE, that way it shall be safe to use 0 without causing any
side effects.

This is convenient for the likes of A2DP transport, see:

https://habr.com/en/post/456182/

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