]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix LE reconnection logic
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 16 Oct 2015 07:07:51 +0000 (10:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 16 Oct 2015 07:24:41 +0000 (09:24 +0200)
commit0744e4a4d36a4694f235b3111fb52d66397dea3e
treef771981f049df58235cd958fd99da531a583312c
parent2d9ab1f75ddaec208c80b45f62b363b08bde5f6c
Bluetooth: Fix LE reconnection logic

We can't use hci_explicit_connect_lookup() since that would only cover
explicit connections, leaving normal reconnections completely
untouched. Not using it in turn means leaving out entries in
pend_le_reports.

To fix this and simplify the logic move conn params from the reports
list to the pend_le_conns list for the duration of an explicit
connect. Once the connect is complete move the params back to the
pend_le_reports list. This also means that the explicit connect lookup
function only needs to look into the pend_le_conns list.

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