summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-03-15 17:06:58 -0500
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2013-03-18 14:02:02 -0300
commitf9f85279fd3a3284023231c7f0796f98c417e7cd (patch)
treeaab2961c8aaf39789c70b1eeed61966ca052e66d /net/bluetooth
parent2cc6fb0049bc02ca7a020ba7b4f88b4c35976058 (diff)
downloadblackbird-op-linux-f9f85279fd3a3284023231c7f0796f98c417e7cd.tar.gz
blackbird-op-linux-f9f85279fd3a3284023231c7f0796f98c417e7cd.zip
Bluetooth: Clear non-persistent flags when closing HCI device
When hci_dev_do_close() is called we should make sure to clear all non-persistent flags in hci->dev_flags. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 02070dcdfbbb..059bbae534d1 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1139,6 +1139,7 @@ static int hci_dev_do_close(struct hci_dev *hdev)
/* Clear flags */
hdev->flags = 0;
+ hdev->dev_flags &= ~HCI_PERSISTENT_MASK;
/* Controller radio is available but is currently powered down */
hdev->amp_status = 0;
OpenPOWER on IntegriCloud