Bluetooth: Fix local name setting for LE-only controllers
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 15 Mar 2013 22:07:02 +0000 (17:07 -0500)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 18 Mar 2013 17:02:05 +0000 (14:02 -0300)
commit3f985050fa5e2f6715b215452198f005df2d5746
tree1472e8485b1d097ecac1dbd5396954f2c3a9caa2
parent04b4edcbc9049e100681c0149b572de439be42ab
Bluetooth: Fix local name setting for LE-only controllers

This patch fixes the mgmt_set_local_name command to send the appropriate
HCI commands based on BR/EDR support and LE support. Local name and EIR
data should only be sent for BR/EDR capable controllers whereas an
update to the AD should only happen for LE capable controllers.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c