]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b85770a64d3984d746ef254d9e45642ca06ae7f
tree7ca6fbba2ac830ebfaba75d48f8d3247b0b963b7
parentf232731e890cee77a79871dc21409c2f92e00f46
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