From fadb671268c32a188779b52d40a6d593e42e3c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= Date: Mon, 12 Feb 2018 15:17:44 +0100 Subject: [PATCH] nimble: Fix for failing unit tests X-Original-Commit: 06696776610c38575d52d47e712f238f2c62638f --- nimble/host/test/src/ble_hs_pvcy_test.c | 2 +- nimble/host/test/src/ble_hs_test_util_hci.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nimble/host/test/src/ble_hs_pvcy_test.c b/nimble/host/test/src/ble_hs_pvcy_test.c index 67b766edb..27e95fded 100644 --- a/nimble/host/test/src/ble_hs_pvcy_test.c +++ b/nimble/host/test/src/ble_hs_pvcy_test.c @@ -125,7 +125,7 @@ ble_hs_pvcy_test_util_start_host(int num_expected_irks) TEST_ASSERT_FATAL(rc == 0); /* Discard startup HCI commands. */ - ble_hs_test_util_hci_out_adj(12); + ble_hs_test_util_hci_out_adj(13); } static void diff --git a/nimble/host/test/src/ble_hs_test_util_hci.c b/nimble/host/test/src/ble_hs_test_util_hci.c index 737881147..8eb5c9479 100644 --- a/nimble/host/test/src/ble_hs_test_util_hci.c +++ b/nimble/host/test/src/ble_hs_test_util_hci.c @@ -250,6 +250,12 @@ ble_hs_test_util_hci_ack_set_startup(void) .opcode = ble_hs_hci_util_opcode_join(BLE_HCI_OGF_CTLR_BASEBAND, BLE_HCI_OCF_CB_RESET), }, + { + .opcode = ble_hs_hci_util_opcode_join( + BLE_HCI_OGF_INFO_PARAMS, BLE_HCI_OCF_IP_RD_LOCAL_VER), + .evt_params = { 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, + .evt_params_len = 8, + }, { .opcode = ble_hs_hci_util_opcode_join( BLE_HCI_OGF_CTLR_BASEBAND, BLE_HCI_OCF_CB_SET_EVENT_MASK),