Bluetooth: Use hci_update_random_address() when connecting LE
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 23 Feb 2014 17:42:22 +0000 (19:42 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Feb 2014 20:24:26 +0000 (12:24 -0800)
commit85030be4c5ce39e709b2cb5d4f8ee8779af8e50b
tree0d4f552bfc5c51326933b8bcf9ac20d8453b0675
parentebd3a74765377b7528bb372aab2890638790301d
Bluetooth: Use hci_update_random_address() when connecting LE

When we initiate LE connections we need to update the local random
address if necessary. This patch updates the LE connection creation
mechanism to use the new hci_update_random_address() function to set the
own_address_type parameter and to update the local random address if
necessary.

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