From e90da8a6c26724489e341b4f50c1b24e5e646d94 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 1 May 2019 21:49:47 +0200 Subject: [PATCH] fix built --- platform/wiced/le_device_db_wiced_dct.c | 2 +- test/gatt_client/mock.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/wiced/le_device_db_wiced_dct.c b/platform/wiced/le_device_db_wiced_dct.c index 5c61f5d27..d42f712df 100644 --- a/platform/wiced/le_device_db_wiced_dct.c +++ b/platform/wiced/le_device_db_wiced_dct.c @@ -203,7 +203,7 @@ void le_device_db_info(int device_index, int * addr_type, bd_addr_t addr, sm_key // set defaults if not found if (!valid) { - memset(&entry, 0, sizeof(le_device_db_entry_t)); + memset(&entry, 0, sizeof(le_device_nvm_t)); entry.addr_type = BD_ADDR_TYPE_UNKNOWN; } diff --git a/test/gatt_client/mock.c b/test/gatt_client/mock.c index 5a29f0e2b..29c794aef 100644 --- a/test/gatt_client/mock.c +++ b/test/gatt_client/mock.c @@ -124,6 +124,9 @@ int l2cap_send_prepared_connectionless(uint16_t handle, uint16_t cid, uint16_t l return 0; } +void sm_add_event_handler(btstack_packet_callback_registration_t * callback_handler){ +} + int sm_cmac_ready(void){ return 1; } @@ -134,6 +137,9 @@ int sm_le_device_index(uint16_t handle ){ return -1; } +irk_lookup_state_t sm_identity_resolving_state(hci_con_handle_t con_handle){ + return IRK_LOOKUP_SUCCEEDED; +} void btstack_run_loop_set_timer(btstack_timer_source_t *a, uint32_t timeout_in_ms){ }