From: Johan Hedberg Date: Thu, 9 Sep 2010 07:32:39 +0000 (+0300) Subject: Bluetooth: Don't clear the blacklist when closing the HCI device X-Git-Tag: MMI-PSA29.97-13-9~21994^2~78^2~1^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80e2c88803c72747cb19febe2ad708bf0ad557bf;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Bluetooth: Don't clear the blacklist when closing the HCI device Clearing the blacklist in hci_dev_do_close() would mean that user space needs to do extra work to re-block devices after a DEVDOWN-DEVUP cycle. This patch removes the clearing of the blacklist in this case and thereby saves user space from the extra work. Signed-off-by: Johan Hedberg Acked-by: Ville Tervo Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index c52f091ee6de..bc2a052e518b 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -562,7 +562,6 @@ static int hci_dev_do_close(struct hci_dev *hdev) hci_dev_lock_bh(hdev); inquiry_cache_flush(hdev); hci_conn_hash_flush(hdev); - hci_blacklist_clear(hdev); hci_dev_unlock_bh(hdev); hci_notify(hdev, HCI_DEV_DOWN);