Bluetooth: __l2cap_wait_ack() use msecs_to_jiffies()
Use msecs_to_jiffies() instead of using HZ so that it is easier to specify the time in milliseconds. Also add a #define L2CAP_WAIT_ACK_POLL_PERIOD to specify the 200ms polling period so that it is defined in a single place. Signed-off-by: Dean Jenkins <Dean_Jenkins@mentor.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
Marcel Holtmann

parent
451e4c6c6b
commit
cb02a25583
@@ -55,6 +55,7 @@
|
||||
#define L2CAP_INFO_TIMEOUT msecs_to_jiffies(4000)
|
||||
#define L2CAP_MOVE_TIMEOUT msecs_to_jiffies(4000)
|
||||
#define L2CAP_MOVE_ERTX_TIMEOUT msecs_to_jiffies(60000)
|
||||
#define L2CAP_WAIT_ACK_POLL_PERIOD msecs_to_jiffies(200)
|
||||
|
||||
#define L2CAP_A2MP_DEFAULT_MTU 670
|
||||
|
||||
|
Reference in New Issue
Block a user