From e0d34d7f45254364e4bc7740de2285b05f8cd1ac Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 24 Feb 2014 12:08:52 +0200 Subject: [PATCH] tools/mgmt-tester: Add Load IRKs not supported response test --- tools/mgmt-tester.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 09e4a678e..03630a57d 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -2652,6 +2652,13 @@ static const struct generic_data load_irks_success2_test = { .expect_status = MGMT_STATUS_SUCCESS, }; +static const struct generic_data load_irks_not_supported_test = { + .send_opcode = MGMT_OP_LOAD_IRKS, + .send_param = load_irks_empty_list, + .send_len = sizeof(load_irks_empty_list), + .expect_status = MGMT_STATUS_NOT_SUPPORTED, +}; + static void client_cmd_complete(uint16_t opcode, uint8_t status, const void *param, uint8_t len, void *user_data) @@ -3948,6 +3955,9 @@ int main(int argc, char *argv[]) test_bredrle("Load IRKs - Success 2", &load_irks_success2_test, NULL, test_command_generic); + test_bredr("Load IRKs - Not Supported", + &load_irks_not_supported_test, + NULL, test_command_generic); return tester_run(); } -- 2.47.3