From 5b3860aac10dd94bb662c9d00cc1065d9f8d72ad Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 15 Jan 2014 15:27:47 +0200 Subject: [PATCH] tools/mgmt-tester: Add auth failure mgmt event to pair_device test conditions --- tools/mgmt-tester.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 1609232af..b9221ffda 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -2338,6 +2338,8 @@ static const struct generic_data pair_device_reject_test_1 = { .send_func = pair_device_send_param_func, .expect_status = MGMT_STATUS_AUTH_FAILED, .expect_func = pair_device_expect_param_func, + .expect_alt_ev = MGMT_EV_AUTH_FAILED, + .expect_alt_ev_len = 8, .expect_hci_command = BT_HCI_CMD_PIN_CODE_REQUEST_NEG_REPLY, .expect_hci_func = client_bdaddr_param_func, .expect_pin = true, @@ -2351,6 +2353,8 @@ static const struct generic_data pair_device_reject_test_2 = { .send_func = pair_device_send_param_func, .expect_status = MGMT_STATUS_AUTH_FAILED, .expect_func = pair_device_expect_param_func, + .expect_alt_ev = MGMT_EV_AUTH_FAILED, + .expect_alt_ev_len = 8, .expect_hci_command = BT_HCI_CMD_AUTH_REQUESTED, .expect_hci_param = auth_req_param, .expect_hci_len = sizeof(auth_req_param), @@ -2423,6 +2427,8 @@ static const struct generic_data pair_device_ssp_reject_1 = { .send_func = pair_device_send_param_func, .expect_status = MGMT_STATUS_AUTH_FAILED, .expect_func = pair_device_expect_param_func, + .expect_alt_ev = MGMT_EV_AUTH_FAILED, + .expect_alt_ev_len = 8, .expect_hci_command = BT_HCI_CMD_USER_CONFIRM_REQUEST_NEG_REPLY, .expect_hci_func = client_bdaddr_param_func, .io_cap = 0x01, /* DisplayYesNo */ @@ -2437,6 +2443,8 @@ static const struct generic_data pair_device_ssp_reject_2 = { .send_func = pair_device_send_param_func, .expect_status = MGMT_STATUS_AUTH_FAILED, .expect_func = pair_device_expect_param_func, + .expect_alt_ev = MGMT_EV_AUTH_FAILED, + .expect_alt_ev_len = 8, .expect_hci_command = BT_HCI_CMD_USER_CONFIRM_REQUEST_REPLY, .expect_hci_func = client_bdaddr_param_func, .io_cap = 0x01, /* DisplayYesNo */ @@ -2451,6 +2459,8 @@ static const struct generic_data pair_device_ssp_nonpairable_1 = { .send_func = pair_device_send_param_func, .expect_status = MGMT_STATUS_AUTH_FAILED, .expect_func = pair_device_expect_param_func, + .expect_alt_ev = MGMT_EV_AUTH_FAILED, + .expect_alt_ev_len = 8, .io_cap = 0x01, /* DisplayYesNo */ .client_io_cap = 0x01, /* DisplayYesNo */ }; -- 2.47.3