Bluetooth: Move {min,max}_key_size debugfs into hci_debugfs_create_le
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Jan 2020 08:19:51 +0000 (09:19 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 25 Jan 2020 14:33:52 +0000 (16:33 +0200)
commit18f81241b74fb49d576c83fbbab9a0b6e3bb20d4
treeec5c42552191b06c2f820518a61dac721110df34
parentcc974003615afa044fa62c7520ae690091fa684a
Bluetooth: Move {min,max}_key_size debugfs into hci_debugfs_create_le

The debugfs entries for {min,max}_key_size are created during SMP
registration and thus it might lead to multiple attempts to create the
same entries. Avoid this by moving them to the LE controller init
section.

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