Bluetooth: Store current RPA and update it if needed
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Feb 2014 04:39:22 +0000 (20:39 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Feb 2014 06:49:31 +0000 (08:49 +0200)
commit2b5224dca5a9257a3df8cc9f93978ecb3757b9c2
tree95e92a6c212a6fd8251bc454fd7845b120ed0514
parent41c90c186a3b51207cb1f2583fbadec3c76e4730
Bluetooth: Store current RPA and update it if needed

The RPA needs to be stored to know which is the current one. Otherwise
it is impossible to ensure that always the correct RPA can be programmed
into the controller when it is needed.

Current code checks if the address in the controller is a RPA, but that
can potentially lead to using a RPA that can not be resolved with the
IRK that has been distributed.

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