Bluetooth: Use hci_copy_identity_addr() helper for SMP chan creation
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 20 Feb 2015 11:48:24 +0000 (13:48 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 20 Feb 2015 17:15:41 +0000 (18:15 +0100)
commit39e3e74423a35bfc95b077fb65acaa00d1d39d64
tree0b21ea84a4904ea6b07d6bd3e331309d264a0830
parenta2cb01de1cb1db05b946e0132aeecbb514c57024
Bluetooth: Use hci_copy_identity_addr() helper for SMP chan creation

The only reason the SMP code is essentially duplicating the
hci_copy_identity_addr() function is that the helper returns the address
type in the HCI format rather than the three-value format expected by
l2cap_chan. This patch converts the SMP code to use the helper and then
do a simple conversion from one address type to another.

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