Commits
![Johan Hedberg](https://secure.gravatar.com/avatar/b8df355f75828610c3905a9fa7a9bc6e.jpg?s=96&d=mm)
Johan Hedberg committed 923e24143ef
Bluetooth: Fix SMP debug key handling We need to keep debug keys around at least until the point that they are used - otherwise e.g. slave role behavior wouldn't work as there'd be no key to be looked up. The correct behavior should therefore be to return any stored keys but when we clean up the SMP context to remove the key from the hdev list if keeping debug keys around hasn't been requestsed. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>