Merge "bluetooth: Notify connection deletion only for SCO/ESCO links."
This commit is contained in:
commit
256995a04c
|
@ -1,6 +1,7 @@
|
|||
/*
|
||||
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,8 +468,9 @@ int hci_conn_del(struct hci_conn *conn)
|
|||
amp_mgr_put(conn->amp_mgr);
|
||||
|
||||
hci_conn_hash_del(hdev, conn);
|
||||
if (hdev->notify)
|
||||
hdev->notify(hdev, HCI_NOTIFY_CONN_DEL);
|
||||
if (hdev->notify &&
|
||||
(conn->type == SCO_LINK || conn->type == ESCO_LINK))
|
||||
hdev->notify(hdev, HCI_NOTIFY_CONN_DEL);
|
||||
|
||||
skb_queue_purge(&conn->data_q);
|
||||
|
||||
|
|
Loading…
Reference in New Issue