]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Use hci_update_random_address() for enabling advertising
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 23 Feb 2014 17:42:23 +0000 (19:42 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Feb 2014 20:24:26 +0000 (12:24 -0800)
commit67d533981a902568b50b34bf07f9090441ea47f5
tree13d963eed1cd1450471c9828f0432b07d4e26563
parente86bdd5994c5bf8f89e8f209aa06db07ca95d980
Bluetooth: Use hci_update_random_address() for enabling advertising

When we enable advertising we need to update the local random address if
necessary. This patch takes advantage of the hci_update_random_address()
function to set the own_address_type variable 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/mgmt.c