Bluetooth: Don't store debug keys if flag for them is not set
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 24 Jun 2014 10:15:51 +0000 (13:15 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:45 +0000 (17:42 +0200)
commit6d5650c4e519794fcc441635ea54f47d68140c93
tree51c1ba7e8c1a3607512b31a039311b53149ea0ed
parent0663b297f1953e5d84928722e44f71272f5ff058
Bluetooth: Don't store debug keys if flag for them is not set

Instead of waiting for a disconnection to occur to remove a debug key
simply never store it in the list to begin with. This means we can also
remove the debug keys check when looking up keys in
hci_link_key_request_evt().

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