aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-02-23 20:39:22 -0800
committerJohan Hedberg <johan.hedberg@intel.com>2014-02-24 08:49:31 +0200
commit2b5224dca5a9257a3df8cc9f93978ecb3757b9c2 (patch)
tree95e92a6c212a6fd8251bc454fd7845b120ed0514 /include/net/bluetooth/hci_core.h
parentBluetooth: Use privacy mode for non-connectable advertising (diff)
downloadlinux-dev-2b5224dca5a9257a3df8cc9f93978ecb3757b9c2.tar.xz
linux-dev-2b5224dca5a9257a3df8cc9f93978ecb3757b9c2.zip
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>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r--include/net/bluetooth/hci_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 0ee9cd11b3ef..fb3b677ff8a6 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -308,6 +308,7 @@ struct hci_dev {
__u8 irk[16];
__u32 rpa_timeout;
struct delayed_work rpa_expired;
+ bdaddr_t rpa;
int (*open)(struct hci_dev *hdev);
int (*close)(struct hci_dev *hdev);