diff options
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index dbb1e5776644..5f871b385a27 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -142,6 +142,8 @@ static int read_index_list(struct sock *sk) | |||
142 | 142 | ||
143 | hci_del_off_timer(d); | 143 | hci_del_off_timer(d); |
144 | 144 | ||
145 | set_bit(HCI_MGMT, &d->flags); | ||
146 | |||
145 | if (test_bit(HCI_SETUP, &d->flags)) | 147 | if (test_bit(HCI_SETUP, &d->flags)) |
146 | continue; | 148 | continue; |
147 | 149 | ||
@@ -200,6 +202,8 @@ static int read_controller_info(struct sock *sk, unsigned char *data, u16 len) | |||
200 | 202 | ||
201 | hci_dev_lock_bh(hdev); | 203 | hci_dev_lock_bh(hdev); |
202 | 204 | ||
205 | set_bit(HCI_MGMT, &hdev->flags); | ||
206 | |||
203 | put_unaligned_le16(hdev->id, &rp->index); | 207 | put_unaligned_le16(hdev->id, &rp->index); |
204 | rp->type = hdev->dev_type; | 208 | rp->type = hdev->dev_type; |
205 | 209 | ||