Bluetooth: Add debug setting for changing minimum encryption key size
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 16 Jul 2019 18:34:41 +0000 (20:34 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 17 Aug 2019 10:54:40 +0000 (13:54 +0300)
commit58a96fc35375ab87db7c5b69336f5befde1b548f
tree3232c0e7f6658ead557a8d5c6055676143dd3456
parent6600c0808e2ea2939009e53983f066fe38bd308a
Bluetooth: Add debug setting for changing minimum encryption key size

For testing and qualification purposes it is useful to allow changing
the minimum encryption key size value that the host stack is going to
enforce. This adds a new debugfs setting min_encrypt_key_size to achieve
this functionality.

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