Bluetooth: Fix checks for LE support on LE-only controllers
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 24 Apr 2013 10:05:32 +0000 (13:05 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Jun 2013 14:20:54 +0000 (10:20 -0400)
commit757aee0f7177b7c7528aa0c120fc131aca8bf641
tree1be8fbb65253f11224de2a1ba66b72d43163a6ae
parentadd295a4afbdf5852d004c754c552d692b0fcac8
Bluetooth: Fix checks for LE support on LE-only controllers

LE-only controllers do not support extended features so any kind of host
feature bit checks do not make sense for them. This patch fixes code
used for both single-mode (LE-only) and dual-mode (BR/EDR/LE) to use the
HCI_LE_ENABLED flag instead of the "Host LE supported" feature bit for
LE support tests.

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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/bluetooth/mgmt.c
net/bluetooth/smp.c