Bluetooth: Use real advertising state to random address update decision
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 8 Jul 2014 12:07:49 +0000 (15:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 8 Jul 2014 12:22:06 +0000 (14:22 +0200)
commit5ce194c4a751ac603966dd1567b62035a7dfbf89
tree7ca6fbba2ac830ebfaba75d48f8d3247b0b963b7
parentc93bd15033027928709ee15bab2ce1f5582085c6
Bluetooth: Use real advertising state to random address update decision

Now that we have a flag for tracking the real advertising state we
should use that to determine whether it's safe to update the random
address or not. The couple of places that were clearing the flag due to
a pending request need to be updated too.

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