diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-11-28 16:35:59 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-11-28 16:36:36 +0200 |
commit | 1e367a94b0beb7e6721adea6338b364f074ca2ae (patch) | |
tree | 475dbe214139534a2e1210c3a3575c7f87748750 /tools/smp-tester.c | |
parent | b6d3089ff138dcb7fa1e948834df1304c3b2bdce (diff) | |
download | bluez-1e367a94b0beb7e6721adea6338b364f074ca2ae.tar.gz |
tools/smp-tester: Fix pairing random PDU content
Diffstat (limited to 'tools/smp-tester.c')
-rw-r--r-- | tools/smp-tester.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/smp-tester.c b/tools/smp-tester.c index c7513917f..cf764f013 100644 --- a/tools/smp-tester.c +++ b/tools/smp-tester.c @@ -607,12 +607,7 @@ static const void *get_pdu(const uint8_t *data) return buf; case 0x04: /* Pairing Random */ buf[0] = data[0]; - - if (test_data->out) - swap128(test_data->smp_prnd, &buf[1]); - else - smp_c1(test_data->smp_rrnd, &buf[1]); - + swap128(test_data->smp_prnd, &buf[1]); return buf; default: break; |