Bluetooth: Enforce validation on max value of connection interval
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 25 Jan 2024 06:50:28 +0000 (14:50 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 28 Feb 2024 14:44:11 +0000 (09:44 -0500)
commite4b019515f950b4e6e5b74b2e1bb03a90cb33039
treed34c6dde7334ad7670b3cfc9ba11900948377d7a
parent7e74aa53a68bf60f6019bd5d9a9a1406ec4d4865
Bluetooth: Enforce validation on max value of connection interval

Right now Linux BT stack cannot pass test case "GAP/CONN/CPUP/BV-05-C
'Connection Parameter Update Procedure Invalid Parameters Central
Responder'" in Bluetooth Test Suite revision GAP.TS.p44. [0]

That was revoled by commit c49a8682fc5d ("Bluetooth: validate BLE
connection interval updates"), but later got reverted due to devices
like keyboards and mice may require low connection interval.

So only validate the max value connection interval to pass the Test
Suite, and let devices to request low connection interval if needed.

[0] https://www.bluetooth.org/docman/handlers/DownloadDoc.ashx?doc_id=229869

Fixes: 68d19d7d9957 ("Revert "Bluetooth: validate BLE connection interval updates"")
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_event.c
net/bluetooth/l2cap_core.c