]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5fdc84b045d40b228cef75c41c67cdafe3908a8d
treef016431f2467a004071621ac20f554aaf57d215f
parent3727be4dde45540e320232c4cfff23fa7527d6ea
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