]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Make Set Connectable also update the LE advertising type
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 14 Oct 2013 18:15:24 +0000 (21:15 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Oct 2013 18:23:28 +0000 (11:23 -0700)
commitce5006c33ad32570a4dbde3b6178afb597c12891
treeedfa39da2b78ad2d0a2f095f846f8f3cd3471156
parentf6712af11704d54a14a2d8c6b885b7bdf5bf8d18
Bluetooth: Make Set Connectable also update the LE advertising type

This patch updates the Set Connectable Management command to also update
the LE advertising type to either connectable or non-connectable
advertising. An extra helper function is needed for getting the right
advertising type since we can not only rely on the HCI_CONNECTABLE flag
but must also check for a pending Set Connectable command (in which case
the flag does not yet have its final value).

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