|
@@ -2970,7 +2970,8 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hdr
|
|
|
|
|
|
default:
|
|
|
sk->sk_err = ECONNRESET;
|
|
|
- __set_chan_timer(chan, L2CAP_DISC_REJ_TIMEOUT);
|
|
|
+ __set_chan_timer(chan,
|
|
|
+ msecs_to_jiffies(L2CAP_DISC_REJ_TIMEOUT));
|
|
|
l2cap_send_disconn_req(conn, chan, ECONNRESET);
|
|
|
goto done;
|
|
|
}
|
|
@@ -4478,7 +4479,8 @@ static inline void l2cap_check_encryption(struct l2cap_chan *chan, u8 encrypt)
|
|
|
if (encrypt == 0x00) {
|
|
|
if (chan->sec_level == BT_SECURITY_MEDIUM) {
|
|
|
__clear_chan_timer(chan);
|
|
|
- __set_chan_timer(chan, L2CAP_ENC_TIMEOUT);
|
|
|
+ __set_chan_timer(chan,
|
|
|
+ msecs_to_jiffies(L2CAP_ENC_TIMEOUT));
|
|
|
} else if (chan->sec_level == BT_SECURITY_HIGH)
|
|
|
l2cap_chan_close(chan, ECONNREFUSED);
|
|
|
} else {
|
|
@@ -4546,7 +4548,8 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
|
|
|
L2CAP_CONN_REQ, sizeof(req), &req);
|
|
|
} else {
|
|
|
__clear_chan_timer(chan);
|
|
|
- __set_chan_timer(chan, L2CAP_DISC_TIMEOUT);
|
|
|
+ __set_chan_timer(chan,
|
|
|
+ msecs_to_jiffies(L2CAP_DISC_TIMEOUT));
|
|
|
}
|
|
|
} else if (chan->state == BT_CONNECT2) {
|
|
|
struct l2cap_conn_rsp rsp;
|
|
@@ -4566,7 +4569,8 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
|
|
|
}
|
|
|
} else {
|
|
|
l2cap_state_change(chan, BT_DISCONN);
|
|
|
- __set_chan_timer(chan, L2CAP_DISC_TIMEOUT);
|
|
|
+ __set_chan_timer(chan,
|
|
|
+ msecs_to_jiffies(L2CAP_DISC_TIMEOUT));
|
|
|
res = L2CAP_CR_SEC_BLOCK;
|
|
|
stat = L2CAP_CS_NO_INFO;
|
|
|
}
|