提交 f4e2dd53 编写于 作者: A Andrzej Kaczmarek 提交者: Marcel Holtmann

Bluetooth: Add missing msecs to jiffies conversion

conn_info_age value is calculated in ms, so need to be converted to
jiffies.
Signed-off-by: NAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 eed5daf3
...@@ -4708,7 +4708,8 @@ static int get_conn_info(struct sock *sk, struct hci_dev *hdev, void *data, ...@@ -4708,7 +4708,8 @@ static int get_conn_info(struct sock *sk, struct hci_dev *hdev, void *data,
/* Query controller to refresh cached values if they are too old or were /* Query controller to refresh cached values if they are too old or were
* never read. * never read.
*/ */
if (time_after(jiffies, conn->conn_info_timestamp + conn_info_age) || if (time_after(jiffies, conn->conn_info_timestamp +
msecs_to_jiffies(conn_info_age)) ||
!conn->conn_info_timestamp) { !conn->conn_info_timestamp) {
struct hci_request req; struct hci_request req;
struct hci_cp_read_tx_power req_txp_cp; struct hci_cp_read_tx_power req_txp_cp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册