diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 804191e..ac7c01a 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
};
static const char stop_discovery_bredrle_param[] = { 0x07 };
+static const char stop_discovery_bredrle_invalid_param[] = { 0x06 };
static const struct generic_data stop_discovery_success_test_1 = {
.send_opcode = MGMT_OP_STOP_DISCOVERY,
.expect_len = sizeof(stop_discovery_bredrle_param),
};
+static const struct generic_data stop_discovery_invalid_param_test_1 = {
+ .send_opcode = MGMT_OP_STOP_DISCOVERY,
+ .send_param = stop_discovery_bredrle_invalid_param,
+ .send_len = sizeof(stop_discovery_bredrle_invalid_param),
+ .expect_status = MGMT_STATUS_INVALID_PARAMS,
+ .expect_param = stop_discovery_bredrle_invalid_param,
+ .expect_len = sizeof(stop_discovery_bredrle_invalid_param),
+};
+
static const char set_dev_class_valid_param[] = { 0x01, 0x0c };
static const char set_dev_class_zero_rsp[] = { 0x00, 0x00, 0x00 };
static const char set_dev_class_valid_rsp[] = { 0x0c, 0x01, 0x00 };
test_bredrle("Stop Discovery - Rejected 1",
&stop_discovery_rejected_test_1,
setup_le_powered, test_command_generic);
+ test_bredrle("Stop Discovery - Invalid parameters 1",
+ &stop_discovery_invalid_param_test_1,
+ setup_start_discovery, test_command_generic);
test_bredrle("Set Device Class - Success 1",
&set_dev_class_valid_param_test_1,