Diff between b5321e29db3a4925602473eced82d51b2800f3ce and 373c0231d2db3036fb43566f5d10da6ace7f916e

Changed Files

File Additions Deletions Status
tools/mgmt-tester.c +1 -24 modified

Full Patch

diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 9d34550..7d7d090 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,