From 14b0b68e060f8c28a398e7d94f6cd9da0d29ae9d Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 17 Jul 2014 15:47:30 +0300 Subject: [PATCH] tools/mgmt-tester: Update non-pairable pairing initiator test Latest kernels allow pairing initiation while not parirable, so update the corresponding test. --- tools/mgmt-tester.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index a8602280a..1a576acba 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -2480,10 +2480,12 @@ static const struct generic_data pair_device_ssp_nonpairable_1 = { .client_enable_ssp = true, .send_opcode = MGMT_OP_PAIR_DEVICE, .send_func = pair_device_send_param_func, - .expect_status = MGMT_STATUS_AUTH_FAILED, + .expect_status = MGMT_STATUS_SUCCESS, .expect_func = pair_device_expect_param_func, - .expect_alt_ev = MGMT_EV_AUTH_FAILED, - .expect_alt_ev_len = 8, + .expect_alt_ev = MGMT_EV_NEW_LINK_KEY, + .expect_alt_ev_len = 26, + .expect_hci_command = BT_HCI_CMD_USER_CONFIRM_REQUEST_REPLY, + .expect_hci_func = client_bdaddr_param_func, .io_cap = 0x01, /* DisplayYesNo */ .client_io_cap = 0x01, /* DisplayYesNo */ }; -- 2.47.3