int config_hci_snoop_log(uint8_t enable) { LOG_INFO("config_hci_snoop_log"); if (!interface_ready()) return BT_STATUS_NOT_READY; btsnoop_get_interface()->set_api_wants_to_log(enable); return BT_STATUS_SUCCESS; }
const hci_t *hci_layer_get_interface() { buffer_allocator = buffer_allocator_get_interface(); hal = hci_hal_get_interface(); btsnoop = btsnoop_get_interface(); hci_inject = hci_inject_get_interface(); packet_fragmenter = packet_fragmenter_get_interface(); vendor = vendor_get_interface(); low_power_manager = low_power_manager_get_interface(); init_layer_interface(); return &interface; }