Skip to content

Commit

Permalink
Bluetooth: Fixed wrong L2CAP Sock timer value
Browse files Browse the repository at this point in the history
L2CAP connection timeout needs to be assigned as miliseconds
and not as jiffies.

Signed-off-by: Chen Ganir <chen.ganir@ti.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Chen Ganir authored and Gustavo F. Padovan committed Aug 11, 2011
1 parent a71a0cf commit 6be6b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/l2cap_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, int p
INIT_LIST_HEAD(&bt_sk(sk)->accept_q);

sk->sk_destruct = l2cap_sock_destruct;
sk->sk_sndtimeo = msecs_to_jiffies(L2CAP_CONN_TIMEOUT);
sk->sk_sndtimeo = L2CAP_CONN_TIMEOUT;

sock_reset_flag(sk, SOCK_ZAPPED);

Expand Down

0 comments on commit 6be6b11

Please sign in to comment.