summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2022-10-06 15:51:35 -0700
committerBrian Gix <brian.gix@intel.com>2022-10-06 15:51:35 -0700
commitfc598fa12c08b554fb31e1a75b76ec3377c4dbaa (patch)
treedbbf7c0659625d6c0288199cff4d42535cbb8200 /tools
parent838ddc931263b5582b6170e09878fc0c4337506b (diff)
downloadbluez-fc598fa12c08b554fb31e1a75b76ec3377c4dbaa.tar.gz
tools: mgmt-tester - Test for HCI cmd after static addr set
This change checks for the expected HCI command after Static Address change requested.
Diffstat (limited to 'tools')
-rw-r--r--tools/mgmt-tester.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 5747ab84b..7bb219953 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -4065,6 +4065,9 @@ static const struct generic_data set_static_addr_success_test = {
.expect_param = set_static_addr_settings,
.expect_len = sizeof(set_static_addr_settings),
.expect_settings_set = MGMT_SETTING_STATIC_ADDRESS,
+ .expect_hci_command = BT_HCI_CMD_LE_SET_RANDOM_ADDRESS,
+ .expect_hci_param = set_static_addr_valid_param,
+ .expect_hci_len = sizeof(set_static_addr_valid_param),
};
static const char set_static_addr_settings_dual[] = { 0x80, 0x00, 0x00, 0x00 };
@@ -4076,6 +4079,9 @@ static const struct generic_data set_static_addr_success_test_2 = {
.expect_status = MGMT_STATUS_SUCCESS,
.expect_param = set_static_addr_settings_dual,
.expect_len = sizeof(set_static_addr_settings_dual),
+ .expect_hci_command = BT_HCI_CMD_LE_SET_RANDOM_ADDRESS,
+ .expect_hci_param = set_static_addr_valid_param,
+ .expect_hci_len = sizeof(set_static_addr_valid_param),
};
static const struct generic_data set_static_addr_failure_test = {