OSDN Git Service

Bluetooth: Fix dependency for BR/EDR Secure Connections mode on SSP
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 22 Jan 2015 19:15:20 +0000 (11:15 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 22 Jan 2015 19:42:18 +0000 (21:42 +0200)
commit574ea3c7137c9deee75b107221be5159720ab501
tree7b035639b9ea5abaab35cd4c192ae24127bb58ff
parent91200e9f3e76af2652952e73ce5d9913f1c987c6
Bluetooth: Fix dependency for BR/EDR Secure Connections mode on SSP

The BR/EDR Secure Connections feature should only be enabled when the
Secure Simple Pairing mode has been enabled first. However since secure
connections is feature that is valid for BR/EDR and LE, this needs
special handling.

When enabling secure connections on a LE only configured controller,
thent the BR/EDR side should not be enabled in the controller. This
patches makes the BR/EDR Secure Connections feature depending on
enabling Secure Simple Pairing mode first.

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