Bluetooth: Fix re-enabling advertising after a connection
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 5 Oct 2013 10:01:06 +0000 (12:01 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 5 Oct 2013 10:03:38 +0000 (03:03 -0700)
commit2210246cf52bd60e8af452f8e184d1cb53e1e4b1
treef016431f2467a004071621ac20f554aaf57d215f
parentd2f5a196d7b401b79e2321b24cc0ac8636ffbc17
Bluetooth: Fix re-enabling advertising after a connection

LE controllers will automatically disable advertising whenever they
accept a new connection. In order not to fall out of sync with the
advertising setting we need to re-enable advertising whenever the last
LE connection drops. A failure to re-enable advertising should cause the
setting to be disabled, so this patch also calls mgmt_new_settings()
when this happens.

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