From: Johan Hedberg Date: Thu, 28 Nov 2013 14:35:59 +0000 (+0200) Subject: tools/smp-tester: Fix pairing random PDU content X-Git-Tag: android-x86-4.4-r3~6674 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1e367a94b0beb7e6721adea6338b364f074ca2ae;p=android-x86%2Fexternal-bluetooth-bluez.git tools/smp-tester: Fix pairing random PDU content --- 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;