summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.h
diff options
context:
space:
mode:
authorJohan Hedberg2014-02-19 13:57:46 +0100
committerMarcel Holtmann2014-02-19 17:04:24 +0100
commit23d0e128e38049734c7ecc0987de02486d1ded3e (patch)
tree636b06843ff7642d7072d13d4014a492f4284625 /net/bluetooth/smp.h
parentBluetooth: Move New LTK store hint evaluation into mgmt_new_ltk (diff)
downloadkernel-qcow2-linux-23d0e128e38049734c7ecc0987de02486d1ded3e.tar.gz
kernel-qcow2-linux-23d0e128e38049734c7ecc0987de02486d1ded3e.tar.xz
kernel-qcow2-linux-23d0e128e38049734c7ecc0987de02486d1ded3e.zip
Bluetooth: Track SMP keys in the SMP context
As preparation to do mgmt notification in a single place at the end of the key distribution, store the keys that need to be notified within the SMP context. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/smp.h')
-rw-r--r--net/bluetooth/smp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/smp.h b/net/bluetooth/smp.h
index 675fd3b21d2c..d8cc543f523c 100644
--- a/net/bluetooth/smp.h
+++ b/net/bluetooth/smp.h
@@ -133,6 +133,9 @@ struct smp_chan {
bdaddr_t id_addr;
u8 id_addr_type;
u8 irk[16];
+ struct smp_ltk *ltk;
+ struct smp_ltk *slave_ltk;
+ struct smp_irk *remote_irk;
unsigned long smp_flags;
struct work_struct confirm;
struct work_struct random;