mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 08:44:38 +08:00
tools/mgmt-tester: Update the correct suspend reason for disconnect
This patch fixes the suspend reason for the pairing test cases to the disconnect.
This commit is contained in:
parent
be1af7b8be
commit
b353ae3cf2
@ -10414,10 +10414,6 @@ static void test_50_controller_cap_response(const void *test_data)
|
|||||||
data, NULL);
|
data, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const uint8_t suspend_state_param_running[] = {
|
|
||||||
0x00,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const uint8_t suspend_state_param_disconnect[] = {
|
static const uint8_t suspend_state_param_disconnect[] = {
|
||||||
0x01,
|
0x01,
|
||||||
};
|
};
|
||||||
@ -10587,8 +10583,8 @@ static const struct generic_data suspend_resume_success_5 = {
|
|||||||
.client_pin = pair_device_pin,
|
.client_pin = pair_device_pin,
|
||||||
.client_pin_len = sizeof(pair_device_pin),
|
.client_pin_len = sizeof(pair_device_pin),
|
||||||
.expect_alt_ev = MGMT_EV_CONTROLLER_SUSPEND,
|
.expect_alt_ev = MGMT_EV_CONTROLLER_SUSPEND,
|
||||||
.expect_alt_ev_param = suspend_state_param_running,
|
.expect_alt_ev_param = suspend_state_param_disconnect,
|
||||||
.expect_alt_ev_len = sizeof(suspend_state_param_running),
|
.expect_alt_ev_len = sizeof(suspend_state_param_disconnect),
|
||||||
};
|
};
|
||||||
|
|
||||||
static void trigger_force_suspend(void *user_data)
|
static void trigger_force_suspend(void *user_data)
|
||||||
@ -10616,8 +10612,8 @@ static const struct generic_data suspend_resume_success_6 = {
|
|||||||
.setup_settings = settings_powered_connectable_bondable_ssp,
|
.setup_settings = settings_powered_connectable_bondable_ssp,
|
||||||
.client_enable_ssp = true,
|
.client_enable_ssp = true,
|
||||||
.expect_alt_ev = MGMT_EV_CONTROLLER_SUSPEND,
|
.expect_alt_ev = MGMT_EV_CONTROLLER_SUSPEND,
|
||||||
.expect_alt_ev_param = suspend_state_param_running,
|
.expect_alt_ev_param = suspend_state_param_disconnect,
|
||||||
.expect_alt_ev_len = sizeof(suspend_state_param_running),
|
.expect_alt_ev_len = sizeof(suspend_state_param_disconnect),
|
||||||
.expect_hci_command = BT_HCI_CMD_USER_CONFIRM_REQUEST_REPLY,
|
.expect_hci_command = BT_HCI_CMD_USER_CONFIRM_REQUEST_REPLY,
|
||||||
.expect_hci_func = client_bdaddr_param_func,
|
.expect_hci_func = client_bdaddr_param_func,
|
||||||
.io_cap = 0x03, /* NoInputNoOutput */
|
.io_cap = 0x03, /* NoInputNoOutput */
|
||||||
|
Loading…
Reference in New Issue
Block a user