]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit8f2a0601a5d68d0dbd2221613dda7fb6fee32a6b
tree13d963eed1cd1450471c9828f0432b07d4e26563
parent85030be4c5ce39e709b2cb5d4f8ee8779af8e50b
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