Skip to content

Commit

Permalink
Bluetooth: Set HCI_MGMT flag only in read_controller_info
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hedberg authored and Gustavo F. Padovan committed Nov 7, 2011
1 parent 43611a7 commit df164df
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ static int read_index_list(struct sock *sk)
list_for_each_entry(d, &hci_dev_list, list) {
hci_del_off_timer(d);

set_bit(HCI_MGMT, &d->flags);

if (test_bit(HCI_SETUP, &d->flags))
continue;

Expand Down

0 comments on commit df164df

Please sign in to comment.