]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1e811110b4be488d498ae2285ea6636cb98275d
treee16506334c4b7e2f89012c873ffe3567549934a1
parentacb9272808bd2190f2b9a19924d31d5fed83fa48
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