summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-07-06 12:11:16 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-07-06 13:42:31 +0300
commit5ea234d3e5ff9b6e5c82bde5979307213dde249d (patch)
tree6458d7d0dd0de8938c8468d359da50216991e0a9 /net/bluetooth/mgmt.c
parent9713c17b086c1ebfe34ea4d34147a778276e2dab (diff)
downloadlinux-stable-5ea234d3e5ff9b6e5c82bde5979307213dde249d.tar.gz
linux-stable-5ea234d3e5ff9b6e5c82bde5979307213dde249d.tar.bz2
linux-stable-5ea234d3e5ff9b6e5c82bde5979307213dde249d.zip
Bluetooth: Clear HCI_RAW flag when controller becomes configured
When an unconfigured controllers reaches the configured state, it is important to change the HCI_RAW flag. It indicates to userspace that the controller is fully operational. External configuration allows to bring the controller back into an unconfigured state. In that case make sure HCI_RAW flag is set again. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 8275316ae099..e253f8e1fa47 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -5451,6 +5451,7 @@ static int set_external_config(struct sock *sk, struct hci_dev *hdev,
queue_work(hdev->req_workqueue, &hdev->power_on);
} else {
+ set_bit(HCI_RAW, &hdev->flags);
mgmt_index_added(hdev);
}
}