summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-06-28 18:20:48 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-06-28 18:20:48 +0000
commit37b2639e96e6716f4cc950519f5eebc88e9886b7 (patch)
treeb6efcfd1a28dcc3e5845e31a8ded2841ffb1ae49
parentfc3c4d6cb4293ad0b82b6f1c3f93d9f5500d7936 (diff)
parentf1b6a259701994fe370be2f49d1f1fbffb8b19e2 (diff)
downloadlibhardware-37b2639e96e6716f4cc950519f5eebc88e9886b7.tar.gz
Merge "add is_valid to oob data" am: f1b6a25970
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1740145 Change-Id: Ie46270f7ef2e71ee093eae47d15692bae84b07eb
-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) */