Skip to contentSkip to conversation

Bluetooth: Set HCI_MGMT flag only in read_controller_info

PATCH Applied [email protected] 2 participants 2 messages Oct 24, 2011 – Oct 31, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 net/bluetooth/mgmt.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
net/bluetooth/mgmt.c +0 -2
index 9ffd7c3..b086c69 100644
@@ -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
#1 lore raw

Hi Johan,

Quoted 11 lines · * [email protected] <[email protected]> [2011-10-24 22:36:26 +0200]:

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.

---
 net/bluetooth/mgmt.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Applied, thanks.

Gustavo