I'm currently trying to configure the Zephyr HCI USB sample to allow using legacy and extended advertising. Currently when I build the sample with extended advertising enabled and I issue a legacy advertising HCI command I always get a response of COMMAND_DISALLOWED. When I change the config to not build with extended advertising the HCI command works and I can see the advertisements. Is my configuration wrong, or is this not possible.
I'm using NCS v2.8.0 with the following prj.conf for the HCI USB sample:
CONFIG_BT=y CONFIG_BT_HCI=y CONFIG_BT_HCI_RAW=y CONFIG_BT_LL_SOFTDEVICE=y CONFIG_BT_CTLR_ADV_EXT=y CONFIG_BT_EXT_ADV=y CONFIG_USB_DEVICE_STACK=y CONFIG_USB_DEVICE_PID=0x000B CONFIG_USB_DEVICE_BLUETOOTH=y CONFIG_USB_DEVICE_BLUETOOTH_VS_H4=n CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n # We dont want any console or CDC ACM that may cause BlueZ to not detect hci_usb CONFIG_SERIAL=n CONFIG_CONSOLE=n CONFIG_UART_CONSOLE=n # Workaround: Unable to allocate command buffer when using K_NO_WAIT since # Host number of completed commands does not follow normal flow control. CONFIG_BT_BUF_CMD_TX_COUNT=10
Below see the output of btmon on the host that is issuing the HCI commands.