]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Do not include LE SC out-of-band data if not enabled
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Mar 2015 19:39:00 +0000 (12:39 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Mar 2015 19:39:45 +0000 (21:39 +0200)
commit3044604e1caac98c7f256b33e7aa994d26ff5bdc
tree143a0991044cc64f83d813ccc1a84392e269462b
parent5863db8102af64b5be05b7763818099a28d37771
Bluetooth: Do not include LE SC out-of-band data if not enabled

In case LE Secure Connections is not enabled, then the command for
returning local out-of-band data should not include the confirmation
and random value for LE SC pairing. All other fields are still valid,
but these two need to be left out. In that case it is also no needed
to generate the public/private key pair for out-of-band pairing.

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