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

Commit b5694506 authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

Bluetooth: Don't forget to check for LE_LINK



Otherwise the wrong error can be returned.

Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 1a09bcb9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4127,7 +4127,7 @@ static int l2cap_disconn_ind(struct hci_conn *hcon)

	BT_DBG("hcon %p", hcon);

	if (hcon->type != ACL_LINK || !conn)
	if ((hcon->type != ACL_LINK && hcon->type != LE_LINK) || !conn)
		return 0x13;

	return conn->disc_reason;