Bluetooth: Fix sending write_scan_enable when BR/EDR is disabled
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 19 Oct 2013 20:38:21 +0000 (23:38 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 20 Oct 2013 16:05:40 +0000 (09:05 -0700)
commit4b580614e1435628490a1762726638546f3a5e4e
tree0e622d789b3265ff6642ff3b48966980bae73549
parenteb2a8d202f91b874d5650c9e0a2c42fdaf137d91
Bluetooth: Fix sending write_scan_enable when BR/EDR is disabled

We should only send the HCI_Write_Scan_Enable command from
mgmt_set_powered_failed() when BR/EDR support is enabled. This is
particularly important when the discoverable setting is also tied to LE.

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