From 6199aa4e1923578f5cf37809a85af9c0c37aa2c4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 21 Oct 2013 16:21:20 +0300 Subject: [PATCH] tools/mgmt-tester: Add 'Not Supported' test case for set_fast_connectable --- tools/mgmt-tester.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 4789692a3..3b156e381 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -662,6 +662,14 @@ static const struct generic_data set_fast_conn_on_success_test_1 = { .expect_settings_set = MGMT_SETTING_FAST_CONNECTABLE, }; +static const struct generic_data set_fast_conn_on_not_supported_test_1 = { + .setup_settings = settings_powered_connectable, + .send_opcode = MGMT_OP_SET_FAST_CONNECTABLE, + .send_param = set_fast_conn_on_param, + .send_len = sizeof(set_fast_conn_on_param), + .expect_status = MGMT_STATUS_NOT_SUPPORTED, +}; + static const char set_pairable_on_param[] = { 0x01 }; static const char set_pairable_invalid_param[] = { 0x02 }; static const char set_pairable_garbage_param[] = { 0x01, 0x00 }; @@ -2641,6 +2649,9 @@ int main(int argc, char *argv[]) test_bredrle("Set fast connectable on - Success 1", &set_fast_conn_on_success_test_1, NULL, test_command_generic); + test_le("Set fast connectable on - Not Supported 1", + &set_fast_conn_on_not_supported_test_1, + NULL, test_command_generic); test_bredrle("Set pairable on - Success", &set_pairable_on_success_test, -- 2.47.3