summaryrefslogtreecommitdiff
path: root/tools/oobtest.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-03-14 21:27:48 -0700
committerMarcel Holtmann <marcel@holtmann.org>2015-03-14 21:27:48 -0700
commit5726c06f8cd54008e2fe6d83137330bb9ed64e12 (patch)
treed2911461f03f65d1807dbb4bf8a08ad09c81ce82 /tools/oobtest.c
parentc8d528a327c1eb274d4019b5d2450af10004fdfa (diff)
downloadbluez-5726c06f8cd54008e2fe6d83137330bb9ed64e12.tar.gz
lib: Use single mgmt structure for legacy local OOB data
Diffstat (limited to 'tools/oobtest.c')
-rw-r--r--tools/oobtest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/oobtest.c b/tools/oobtest.c
index 9cc6c162e..b25ba2a9e 100644
--- a/tools/oobtest.c
+++ b/tools/oobtest.c
@@ -277,7 +277,7 @@ static void add_remote_oob_data(uint16_t index, const bdaddr_t *bdaddr,
static void read_oob_data_complete(uint8_t status, uint16_t len,
const void *param, void *user_data)
{
- const struct mgmt_rp_read_local_oob_ext_data *rp = param;
+ const struct mgmt_rp_read_local_oob_data *rp = param;
uint16_t index = PTR_TO_UINT(user_data);
const uint8_t *hash192, *rand192, *hash256, *rand256;
int i;
@@ -293,7 +293,7 @@ static void read_oob_data_complete(uint8_t status, uint16_t len,
if (provide_p192) {
hash192 = rp->hash192;
- rand192 = rp->randomizer192;
+ rand192 = rp->rand192;
} else {
hash192 = NULL;
rand192 = NULL;
@@ -306,7 +306,7 @@ static void read_oob_data_complete(uint8_t status, uint16_t len,
printf(" Randomizer R with P-192: ");
for (i = 0; i < 16; i++)
- printf("%02x", rp->randomizer192[i]);
+ printf("%02x", rp->rand192[i]);
printf("\n");
if (len < sizeof(*rp)) {
@@ -317,7 +317,7 @@ static void read_oob_data_complete(uint8_t status, uint16_t len,
if (provide_p256) {
hash256 = rp->hash256;
- rand256 = rp->randomizer256;
+ rand256 = rp->rand256;
} else {
hash256 = NULL;
rand256 = NULL;
@@ -330,7 +330,7 @@ static void read_oob_data_complete(uint8_t status, uint16_t len,
printf(" Randomizer R with P-256: ");
for (i = 0; i < 16; i++)
- printf("%02x", rp->randomizer256[i]);
+ printf("%02x", rp->rand256[i]);
printf("\n");
done: