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>
This commit is contained in:
parent
2cc6fb0049
commit
f9f85279fd
|
@ -1139,6 +1139,7 @@ static int hci_dev_do_close(struct hci_dev *hdev)
|
||||||
|
|
||||||
/* Clear flags */
|
/* Clear flags */
|
||||||
hdev->flags = 0;
|
hdev->flags = 0;
|
||||||
|
hdev->dev_flags &= ~HCI_PERSISTENT_MASK;
|
||||||
|
|
||||||
/* Controller radio is available but is currently powered down */
|
/* Controller radio is available but is currently powered down */
|
||||||
hdev->amp_status = 0;
|
hdev->amp_status = 0;
|
||||||
|
|
Loading…
Reference in a new issue