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

Commit 256995a0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "bluetooth: Notify connection deletion only for SCO/ESCO links."

parents 8b67fffe bc3522c5
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
/*
   BlueZ - Bluetooth protocol stack for Linux
   Copyright (c) 2000-2001, 2010, Code Aurora Forum. All rights reserved.
   Copyright (c) 2000-2001, 2010, 2014, Code Aurora Forum. All rights
   reserved.

   Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>

@@ -467,7 +468,8 @@ int hci_conn_del(struct hci_conn *conn)
		amp_mgr_put(conn->amp_mgr);

	hci_conn_hash_del(hdev, conn);
	if (hdev->notify)
	if (hdev->notify &&
		(conn->type == SCO_LINK || conn->type == ESCO_LINK))
			hdev->notify(hdev, HCI_NOTIFY_CONN_DEL);

	skb_queue_purge(&conn->data_q);