From 373c0231d2db3036fb43566f5d10da6ace7f916e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 1 Feb 2014 23:08:59 -0800 Subject: [PATCH] tools: Remove test for invalid key_type for long term keys --- tools/mgmt-tester.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 9d3455054..7d7d090dc 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -2159,21 +2159,8 @@ static const char load_ltks_invalid_param_2[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* value (1/2) */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* value (2/2) */ }; -/* Invalid authenticated value */ -static const char load_ltks_invalid_param_3[] = { - 0x01, 0x00, /* count */ - 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, /* bdaddr */ - 0x01, /* addr type */ - 0x02, /* authenticated */ - 0x00, /* master */ - 0x00, /* encryption size */ - 0x00, 0x00, /* diversifier */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* rand */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* value (1/2) */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* value (2/2) */ -}; /* Invalid master value */ -static const char load_ltks_invalid_param_4[] = { +static const char load_ltks_invalid_param_3[] = { 0x01, 0x00, /* count */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, /* bdaddr */ 0x01, /* addr type */ @@ -2214,13 +2201,6 @@ static const struct generic_data load_ltks_invalid_params_test_3 = { .expect_status = MGMT_STATUS_INVALID_PARAMS, }; -static const struct generic_data load_ltks_invalid_params_test_4 = { - .send_opcode = MGMT_OP_LOAD_LONG_TERM_KEYS, - .send_param = load_ltks_invalid_param_4, - .send_len = sizeof(load_ltks_invalid_param_4), - .expect_status = MGMT_STATUS_INVALID_PARAMS, -}; - static const char pair_device_param[] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x00, 0x00 }; static const char pair_device_rsp[] = { @@ -3848,9 +3828,6 @@ int main(int argc, char *argv[]) test_bredrle("Load Long Term Keys - Invalid Parameters 3", &load_ltks_invalid_params_test_3, NULL, test_command_generic); - test_bredrle("Load Long Term Keys - Invalid Parameters 4", - &load_ltks_invalid_params_test_4, - NULL, test_command_generic); test_bredrle("Pair Device - Not Powered 1", &pair_device_not_powered_test_1, -- 2.47.3