Bluetooth: Fix clearing and restarting all LE actions on power cycle
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jul 2014 09:37:23 +0000 (12:37 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Jul 2014 09:58:09 +0000 (11:58 +0200)
commitd7347f3cc2b63be0ea35b3239faf4b32fde2fb44
treed7a58adfad32d8de4d8907f33f2041a89f37c5f7
parentae44e5d19e870385d1e73ce248c19ea4761bb40c
Bluetooth: Fix clearing and restarting all LE actions on power cycle

When powering off (hci_dev_do_close) we should clear both the
pend_le_reports and pend_le_conns types of entries. When powering on
respectively we should populate both lists. This patch converts the
hci_pend_le_conns_clear() function into hci_pend_le_actions_clear()
(which can now be static) and converts the restart_le_auto_conns()
function into restart_le_actions().

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