Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e31fb860 authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann
Browse files

Bluetooth: Set discon_timeout to 0 in l2cap_conn_del



When the l2cap_conn_del() function is used we do not want to wait around
"in case something happens" before disconnecting. This patch sets the
disconnection timeout to 0 so that the disconnection routines get
immediately scheduled.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent bcbb655a
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1640,6 +1640,9 @@ static void l2cap_conn_del(struct hci_conn *hcon, int err)


	l2cap_unregister_all_users(conn);
	l2cap_unregister_all_users(conn);


	/* Force the connection to be immediately dropped */
	hcon->disc_timeout = 0;

	mutex_lock(&conn->chan_lock);
	mutex_lock(&conn->chan_lock);


	/* Kill channels */
	/* Kill channels */