diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-01-15 15:27:47 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-01-15 15:28:09 +0200 |
commit | 5b3860aac10dd94bb662c9d00cc1065d9f8d72ad (patch) | |
tree | 10e32ca0bccbff0e7c1a4504c627bf988cc5c349 | |
parent | 21acd8257bbaee96bfe0c7df046c8fd4b32c9aca (diff) |
tools/mgmt-tester: Add auth failure mgmt event to pair_device test conditions
-rw-r--r-- | tools/mgmt-tester.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 */ }; |