tools: mgmt-tester - Test for HCI cmd after static addr set
authorBrian Gix <brian.gix@intel.com>
Thu, 6 Oct 2022 22:51:35 +0000 (15:51 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
This change checks for the expected HCI command after Static Address
change requested.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
tools/mgmt-tester.c

index 5747ab8..7bb2199 100755 (executable)
@@ -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 = {