summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJohan Hedberg2014-02-25 18:56:31 +0100
committerMarcel Holtmann2014-02-25 19:02:53 +0100
commita4858cb942b9afa57c1220aa5d9b536a0d7ec623 (patch)
treeee39ea92d8c10355c73fc372ba734c63f2d8636e /kernel
parentBluetooth: Fix NULL pointer dereference when sending data (diff)
downloadkernel-qcow2-linux-a4858cb942b9afa57c1220aa5d9b536a0d7ec623.tar.gz
kernel-qcow2-linux-a4858cb942b9afa57c1220aa5d9b536a0d7ec623.tar.xz
kernel-qcow2-linux-a4858cb942b9afa57c1220aa5d9b536a0d7ec623.zip
Bluetooth: Fix advertising address type when toggling connectable
When the connectable setting is toggled using mgmt_set_connectable the HCI_CONNECTABLE flag will only be set once the related HCI commands succeed. When determining what kind of advertising to do we need to therefore also check whether there is a pending Set Connectable command in addition to the current flag value. The enable_advertising function was already taking care of this for the advertising type with the help of the get_adv_type function, but was failing to do the same for the address type selection. This patch converts the get_adv_type function to be more generic in that it returns the expected connectable state and updates the enable_advertising function to use the return value both for the advertising type as well as the advertising address type. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions