Bluetooth: Set HCI_MGMT flag only in read_controller_info
Subsystems (2)
PATCH 1/1 Bluetooth: Set HCI_MGMT flag only in read_controller_info
From: Johan Hedberg <[email protected]>
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 <[email protected]>
--- net/bluetooth/mgmt.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
net/bluetooth/mgmt.c +0 -2
@@ -151,8 +151,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 ;
Signature · 1 line
1.7.7
Gustavo Padovan
AppliedHi Johan,
Quoted 11 lines · * [email protected] <[email protected]> [2011-10-24 22:36:26 +0200]:
From: Johan Hedberg <[email protected]>
The
HCI_MGMTflag 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 actualread_controller_infocommand finishes.Signed-off-by Johan Hedberg <[email protected]>--- net/bluetooth/mgmt.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
Applied, thanks.
Gustavo