Diff between a3291a3b319eb1a6d8cf975edfb8bd6c52214a89 and 832348ac8e9c778fdf107a2f76bcaf14a10dc63b

Changed Files

File Additions Deletions Status
tools/mgmt-tester.c +12 -0 modified

Full Patch

diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 9a25061..2a6e847 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -2676,6 +2676,15 @@ static const struct generic_data load_irks_nval_param2_test = {
 	.expect_status = MGMT_STATUS_INVALID_PARAMS,
 };
 
+static const char load_irks_nval_len[] = { 0x02, 0x00, 0xff, 0xff };
+
+static const struct generic_data load_irks_nval_param3_test = {
+	.send_opcode = MGMT_OP_LOAD_IRKS,
+	.send_param = load_irks_nval_len,
+	.send_len = sizeof(load_irks_nval_len),
+	.expect_status = MGMT_STATUS_INVALID_PARAMS,
+};
+
 static const struct generic_data load_irks_not_supported_test = {
 	.send_opcode = MGMT_OP_LOAD_IRKS,
 	.send_param = load_irks_empty_list,
@@ -3985,6 +3994,9 @@ int main(int argc, char *argv[])
 	test_bredrle("Load IRKs - Invalid Parameters 2",
 				&load_irks_nval_param2_test,
 				NULL, test_command_generic);
+	test_bredrle("Load IRKs - Invalid Parameters 3",
+				&load_irks_nval_param3_test,
+				NULL, test_command_generic);
 	test_bredr("Load IRKs - Not Supported",
 				&load_irks_not_supported_test,
 				NULL, test_command_generic);