diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-10-24 16:36:26 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-11-07 14:24:51 -0500 |
commit | df164df9a77979d1774ede353988c1a62584594b (patch) | |
tree | 1ef2e2aff41c2df6b14e0a91341669d829058b2a /net/bluetooth | |
parent | 43611a7b16038753e0510dfb0c038c80a10c80c3 (diff) |
Bluetooth: Set HCI_MGMT flag only in read_controller_info
The HCI_MGMT flag should only be set when user space requests the full
controller information. This way we avoid potential issues with setting
change events ariving before the actual read_controller_info command
finishes.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 38220a2dc31e..cbc8a6dfa5ed 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -150,8 +150,6 @@ static int read_index_list(struct sock *sk) | |||
150 | list_for_each_entry(d, &hci_dev_list, list) { | 150 | list_for_each_entry(d, &hci_dev_list, list) { |
151 | hci_del_off_timer(d); | 151 | hci_del_off_timer(d); |
152 | 152 | ||
153 | set_bit(HCI_MGMT, &d->flags); | ||
154 | |||
155 | if (test_bit(HCI_SETUP, &d->flags)) | 153 | if (test_bit(HCI_SETUP, &d->flags)) |
156 | continue; | 154 | continue; |
157 | 155 | ||