From 486847d0e60ded7adb7bc6c9e5627543c86a1b4e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 11 Jan 2013 15:40:10 +0200 Subject: [PATCH] tools: Add HCI command monitoring for mgmt link security test --- tools/mgmt-tester.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 057c1de26..8579e7639 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -612,6 +612,7 @@ static const char set_link_sec_invalid_param[] = { 0x02 }; static const char set_link_sec_garbage_param[] = { 0x01, 0x00 }; static const char set_link_sec_settings_param_1[] = { 0xa0, 0x00, 0x00, 0x00 }; static const char set_link_sec_settings_param_2[] = { 0xa1, 0x00, 0x00, 0x00 }; +static const char set_link_sec_auth_enable_param[] = { 0x01 }; static const struct generic_data set_link_sec_on_success_test_1 = { .send_opcode = MGMT_OP_SET_LINK_SECURITY, @@ -631,6 +632,9 @@ static const struct generic_data set_link_sec_on_success_test_2 = { .expect_param = set_link_sec_settings_param_2, .expect_len = sizeof(set_link_sec_settings_param_2), .expect_settings_set = MGMT_SETTING_LINK_SECURITY, + .expect_hci_command = BT_HCI_CMD_WRITE_AUTH_ENABLE, + .expect_hci_param = set_link_sec_auth_enable_param, + .expect_hci_len = sizeof(set_link_sec_auth_enable_param), }; static const struct generic_data set_link_sec_on_invalid_param_test_1 = { -- 2.47.3