diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-10-24 16:36:26 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-10-31 15:31:02 -0400 |
commit | dafbde395ed560ddc3695df40f61d91c47433228 (patch) | |
tree | 3b294d40e1921a89a94b83be4e0fbca63637a71f | |
parent | e1b6eb3ccb0c2a34302a9fd87dd15d7b86337f23 (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>
-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 53e109eb043e..99251d19bf6f 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -147,8 +147,6 @@ static int read_index_list(struct sock *sk) | |||
147 | 147 | ||
148 | hci_del_off_timer(d); | 148 | hci_del_off_timer(d); |
149 | 149 | ||
150 | set_bit(HCI_MGMT, &d->flags); | ||
151 | |||
152 | if (test_bit(HCI_SETUP, &d->flags)) | 150 | if (test_bit(HCI_SETUP, &d->flags)) |
153 | continue; | 151 | continue; |
154 | 152 | ||