]> git.karo-electronics.de Git - linux-beck.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)
commit1987fdc77f49282efeec76d14eee2ded3ee9b5d2
treeedfa39da2b78ad2d0a2f095f846f8f3cd3471156
parentc6d887aaf8f772fbe07604390975921ad3350a58
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