Bluetooth: controller: fix compile error when VS cmds disabled
When vendor specific commands are disabled by setting BT_HCI_VS=n the host still calls bt_read_static_addr, but that function is not compiled in, resulting in a build error. Fixed by moving the code in controller/hci/hci.c outside of the conditional compile Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
This commit is contained in:
parent
ca3d0c8ee9
commit
02eac5cbc2
1 changed files with 10 additions and 9 deletions
|
@ -4726,6 +4726,16 @@ static int controller_cmd_handle(uint16_t ocf, struct net_buf *cmd,
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* If Zephyr VS HCI commands are not enabled provide this functionality directly
|
||||
*/
|
||||
#if !defined(CONFIG_BT_HCI_VS_EXT)
|
||||
uint8_t bt_read_static_addr(struct bt_hci_vs_static_addr addrs[], uint8_t size)
|
||||
{
|
||||
return hci_vendor_read_static_addr(addrs, size);
|
||||
}
|
||||
#endif /* !defined(CONFIG_BT_HCI_VS_EXT) */
|
||||
|
||||
|
||||
#if defined(CONFIG_BT_HCI_VS)
|
||||
static void vs_read_version_info(struct net_buf *buf, struct net_buf **evt)
|
||||
{
|
||||
|
@ -4793,15 +4803,6 @@ uint8_t __weak hci_vendor_read_static_addr(struct bt_hci_vs_static_addr addrs[],
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* If Zephyr VS HCI commands are not enabled provide this functionality directly
|
||||
*/
|
||||
#if !defined(CONFIG_BT_HCI_VS_EXT)
|
||||
uint8_t bt_read_static_addr(struct bt_hci_vs_static_addr addrs[], uint8_t size)
|
||||
{
|
||||
return hci_vendor_read_static_addr(addrs, size);
|
||||
}
|
||||
#endif /* !defined(CONFIG_BT_HCI_VS_EXT) */
|
||||
|
||||
#if defined(CONFIG_BT_HCI_VS_EXT)
|
||||
static void vs_write_bd_addr(struct net_buf *buf, struct net_buf **evt)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue