OSDN Git Service

tools/smp-tester: Fix pairing random PDU content
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 28 Nov 2013 14:35:59 +0000 (16:35 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 28 Nov 2013 14:36:36 +0000 (16:36 +0200)
tools/smp-tester.c

index c751391..cf764f0 100644 (file)
@@ -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;