Diff between 85a85e00610bfb2155850c7e2f640f025623d6ca and 4ccabeb9a982aaf30530ceab7a69b403f69a8843

Changed Files

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

Full Patch

diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 6753c14..2fc8d99 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -3092,6 +3092,22 @@ static const struct generic_data remove_device_success_1 = {
 	.expect_alt_ev_len = sizeof(remove_device_param_1),
 };
 
+static const struct generic_data remove_device_success_2 = {
+	.setup_settings = settings_powered,
+	.send_opcode = MGMT_OP_REMOVE_DEVICE,
+	.send_param = remove_device_param_1,
+	.send_len = sizeof(remove_device_param_1),
+	.expect_param = remove_device_param_1,
+	.expect_len = sizeof(remove_device_param_1),
+	.expect_status = MGMT_STATUS_SUCCESS,
+	.expect_alt_ev = MGMT_EV_DEVICE_REMOVED,
+	.expect_alt_ev_param = remove_device_param_1,
+	.expect_alt_ev_len = sizeof(remove_device_param_1),
+	.expect_hci_command = BT_HCI_CMD_WRITE_SCAN_ENABLE,
+	.expect_hci_param = set_connectable_off_scan_enable_param,
+	.expect_hci_len = sizeof(set_connectable_off_scan_enable_param),
+};
+
 static void client_cmd_complete(uint16_t opcode, uint8_t status,
 					const void *param, uint8_t len,
 					void *user_data)
@@ -4514,6 +4530,9 @@ int main(int argc, char *argv[])
 	test_bredrle("Remove Device - Success 1",
 				&remove_device_success_1,
 				setup_add_device, test_command_generic);
+	test_bredrle("Remove Device - Success 2",
+				&remove_device_success_2,
+				setup_add_device, test_command_generic);
 
 	return tester_run();
 }