summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Eisenbach <eisenbach@google.com>2016-01-07 23:31:52 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-01-07 23:31:52 +0000
commit6815181c0b8f184093c55d5a9f5ab5fa81f28864 (patch)
treeba28c22e6989d805c1b3c50ddb8c9a032f998883
parentde5662d7fae646205aebc030f4105f50610e8b82 (diff)
parent00202fff5acdc4a28470cbac6263f472b041549f (diff)
downloadlibhardware-brillo-m9-release.tar.gz
Merge "Add structure for holding Bluetooth OOB data."brillo-m9-releasebrillo-m9-dev
-rw-r--r--include/hardware/bluetooth.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/hardware/bluetooth.h b/include/hardware/bluetooth.h
index 3427213d..683e369c 100644
--- a/include/hardware/bluetooth.h
+++ b/include/hardware/bluetooth.h
@@ -256,6 +256,19 @@ typedef struct
void *val;
} bt_property_t;
+/** Bluetooth Out Of Band data for bonding */
+typedef struct
+{
+ uint8_t c192[16]; /* Simple Pairing Hash C-192 */
+ uint8_t r192[16]; /* Simple Pairing Randomizer R-192 */
+ uint8_t c256[16]; /* Simple Pairing Hash C-256 */
+ uint8_t r256[16]; /* Simple Pairing Randomizer R-256 */
+ uint8_t sm_tk[16]; /* Security Manager TK Value */
+ uint8_t le_sc_c[16]; /* LE Secure Connections Random Value */
+ uint8_t le_sc_r[16]; /* LE Secure Connections Random Value */
+} bt_out_of_band_data_t;
+
+
/** Bluetooth Device Type */
typedef enum {
@@ -485,6 +498,10 @@ typedef struct {
/** Create Bluetooth Bonding */
int (*create_bond)(const bt_bdaddr_t *bd_addr, int transport);
+ /** Create Bluetooth Bond using out of band data */
+ int (*create_bond_out_of_band)(const bt_bdaddr_t *bd_addr, int transport,
+ const bt_out_of_band_data_t *oob_data);
+
/** Remove Bond */
int (*remove_bond)(const bt_bdaddr_t *bd_addr);