提交 b3ff670a 编写于 作者: J Johan Hedberg 提交者: Marcel Holtmann

Bluetooth: Set disc_timeout to 0 when calling hci_chan_del

The hci_chan_del() function is used in scenarios where we've decided we
want to get rid of the underlying baseband link. It makes therefore
sense to force the disc_timeout to 0 so that the disconnection routines
are immediately scheduled.
Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 6c388d32
......@@ -1316,6 +1316,9 @@ void hci_chan_del(struct hci_chan *chan)
synchronize_rcu();
/* Force the connection to be immediately dropped */
conn->disc_timeout = 0;
hci_conn_drop(conn);
hci_conn_put(conn);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册