summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-06-28 18:37:52 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-06-28 18:37:52 +0000
commit910783ccd8da83a1822bc535ac067888e2d5ed8a (patch)
treedbae744811ded942f03a4311d735e24bf4eaec79
parentaa6849af11c08b5b21f5a6deda0a2400d07d73ba (diff)
parent37b2639e96e6716f4cc950519f5eebc88e9886b7 (diff)
downloadlibhardware-910783ccd8da83a1822bc535ac067888e2d5ed8a.tar.gz
Merge "add is_valid to oob data" am: f1b6a25970 am: 37b2639e96
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1740145 Change-Id: I8613409beb35df171e8beacd187f4dfd5a255e71
-rw-r--r--include/hardware/bluetooth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hardware/bluetooth.h b/include/hardware/bluetooth.h
index afa0eef7..95a0b6e3 100644
--- a/include/hardware/bluetooth.h
+++ b/include/hardware/bluetooth.h
@@ -261,6 +261,7 @@ typedef struct
/** Represents the actual Out of Band data itself */
typedef struct {
// Both
+ bool is_valid = false; /* Default to invalid data; force caller to verify */
uint8_t address[7]; /* Bluetooth Device Address (6) plus Address Type (1) */
uint8_t c[16]; /* Simple Pairing Hash C-192/256 (Classic or LE) */
uint8_t r[16]; /* Simple Pairing Randomizer R-192/256 (Classic or LE) */