]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Revert "Bluetooth: L2CAP: convert timeouts to secs_to_jiffies()"
authorFrédéric Danis <frederic.danis@collabora.com>
Mon, 6 Oct 2025 08:35:44 +0000 (10:35 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 24 Oct 2025 14:30:30 +0000 (10:30 -0400)
commit76e20da0bd00c556ed0a1e7250bdb6ac3e808ea8
tree9bb0828be65080de9ae4d43e4d144df0bee25e0b
parente8785404de06a69d89dcdd1e9a0b6ea42dc6d327
Revert "Bluetooth: L2CAP: convert timeouts to secs_to_jiffies()"

This reverts commit c9d84da18d1e0d28a7e16ca6df8e6d47570501d4. It
replaces in L2CAP calls to msecs_to_jiffies() to secs_to_jiffies()
and updates the constants accordingly. But the constants are also
used in LCAP Configure Request and L2CAP Configure Response which
expect values in milliseconds.
This may prevent correct usage of L2CAP channel.

To fix it, keep those constants in milliseconds and so revert this
change.

Fixes: c9d84da18d1e ("Bluetooth: L2CAP: convert timeouts to secs_to_jiffies()")
Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c