Bluetooth: Align minimum encryption key size for LE and BR/EDR connections
commit745f5c5f2ac14ac1cbb7fe3cbdc893c9d1af1356
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 24 Apr 2019 20:19:17 +0000 (24 22:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 May 2019 15:52:10 +0000 (10 17:52 +0200)
tree0d9886cccf135ffe952d99232452aee17d4aac2a
parent0d134aebfd7222dc946437ea2941b94fa64be605
Bluetooth: Align minimum encryption key size for LE and BR/EDR connections

commit d5bb334a8e171b262e48f378bd2096c0ea458265 upstream.

The minimum encryption key size for LE connections is 56 bits and to
align LE with BR/EDR, enforce 56 bits of minimum encryption key size for
BR/EDR connections as well.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c