Bluetooth: Set HCI_MGMT flag only in read_controller_info
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Oct 2011 20:36:26 +0000 (22:36 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 31 Oct 2011 19:31:02 +0000 (17:31 -0200)
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>
net/bluetooth/mgmt.c

index 53e109eb043e073a22479b479082bdee0a321d6d..99251d19bf6faef3655267c8daf50a0f5b012501 100644 (file)
@@ -147,8 +147,6 @@ static int read_index_list(struct sock *sk)
 
                hci_del_off_timer(d);
 
-               set_bit(HCI_MGMT, &d->flags);
-
                if (test_bit(HCI_SETUP, &d->flags))
                        continue;
 
This page took 0.032499 seconds and 5 git commands to generate.