tools/smp-tester: Fix setting pariable setting for server tests

This commit is contained in:
Johan Hedberg 2013-11-21 11:10:08 +02:00
parent 0a70da381d
commit 1a6e9568ab

View File

@ -255,16 +255,14 @@ static const uint8_t smp_basic_req_1[] = { 0x01, /* Pairing Request */
0x10, /* Max key size */
0x00, /* Init. key dist. */
0x01, /* Rsp. key dist. */
};
static const uint8_t smp_basic_req_1_rsp[] = { 0x02, /* Pairing Response */
0x03, /* NoInputNoOutput */
0x00, /* OOB Flag */
0x00, /* SMP auth none */
0x01, /* Bonding - no MITM */
0x10, /* Max key size */
0x00, /* Init. key dist. */
0x00, /* Rsp. key dist. */
0x01, /* Rsp. key dist. */
};
static const struct smp_server_data smp_server_basic_req_1_test = {
@ -441,6 +439,8 @@ static void setup_powered_server(const void *test_data)
mgmt_send(data->mgmt, MGMT_OP_SET_LE, data->mgmt_index,
sizeof(param), param, NULL, NULL, NULL);
mgmt_send(data->mgmt, MGMT_OP_SET_PAIRABLE, data->mgmt_index,
sizeof(param), param, NULL, NULL, NULL);
mgmt_send(data->mgmt, MGMT_OP_SET_ADVERTISING, data->mgmt_index,
sizeof(param), param, NULL, NULL, NULL);
mgmt_send(data->mgmt, MGMT_OP_SET_POWERED, data->mgmt_index,