Bluetooth: RFCOMM: Use MTU auto tune logic
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 20 Feb 2020 05:31:55 +0000 (21:31 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 19 Feb 2020 19:31:45 +0000 (20:31 +0100)
commit1c22d3cda8afa3fffa3875cbfa5c82e818a3f780
tree5bf62c0462e0477faefc93a554783bdcb6809d63
parenta2a8b0b4adeaec3de5213b7825588352a696df75
Bluetooth: RFCOMM: Use MTU auto tune logic

This reuse the L2CAP MTU auto logic to select the MTU used for RFCOMM
channels, this should increase the maximum from 1013 to 1021 when 3-DH5
is supported.

Since it does not set an L2CAP MTU we no longer need a debugfs so that
is removed.

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