From 44e1aaab15e72450bdbfcd8a16aa75e0de416fd7 Mon Sep 17 00:00:00 2001 From: Martin Brabham Date: Tue, 15 Jun 2021 20:43:01 -0700 Subject: add is_valid to oob data Bug: 178007935 Test: manual, test app Tag: #feature Change-Id: I9ba3639904471a4c34d8f5df753c416e149749c7 --- include/hardware/bluetooth.h | 1 + 1 file changed, 1 insertion(+) 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) */ -- cgit v1.2.3