blob: 3bb71d56c255c2683d4c1f54d10a3b5f3839a921 [file] [log] [blame]
/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <bluetooth/addr.h>
#include <bluetooth/hci_vs.h>
/**
* @brief This is a stub of a function that provides static address.
*
* This function is defined to silent warning printed by Host during BT stack initialization due
* to lack of static address stored in controller.
*/
uint8_t hci_vendor_read_static_addr(struct bt_hci_vs_static_addr addrs[], uint8_t size)
{
/* only one supported */
ARG_UNUSED(size);
/* Use some fake address, because it does not matter for test purposes */
(void)memset(addrs[0].ir, 0x01, sizeof(addrs[0].ir));
return 1;
}