Bluetooth: Update hci_add_link_key() to return pointer to key
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 24 Jun 2014 10:15:48 +0000 (13:15 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:45 +0000 (17:42 +0200)
commit567fa2aa3dfad9848c25a226927a4ca5f94229ac
treee16506334c4b7e2f89012c873ffe3567549934a1
parent37f468cd171c7d76d560b6bd5c09dc506ab9dbec
Bluetooth: Update hci_add_link_key() to return pointer to key

By returning the added (or updated) key we pave the way for further
refactoring (in subsequent patches) that allows moving the mgmt event
sending out from this function (and thereby removal of the awkward
new_key parameter).

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