]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix updating connection state to BT_CONNECT too early
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 28 Feb 2014 10:54:15 +0000 (12:54 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Feb 2014 15:53:07 +0000 (07:53 -0800)
commit38167914f25db10159c5523b437a235fd007b282
treeeb6c44570ccff40611b0ffeb09bd3ef986030d24
parentb95dd3991668ff0e860da49e4f356f4e850be8d5
Bluetooth: Fix updating connection state to BT_CONNECT too early

We shouldn't update the hci_conn state to BT_CONNECT until the moment
that we're ready to send the initiating HCI command for it. If the
connection has the BT_CONNECT state too early the code responsible for
updating the local random address may incorrectly think there's a
pending connection in progress and refuse to update the address.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_conn.c