Skip to content

Doesn't work with LE peripheral disabled #705

@jf-uu

Description

@jf-uu

Describe the bug

Trying to set up a device to just be LE central, but disabling ENABLE_LE_PERIPHERAL causes compilation errors.

btstack/src/hci.c: In function 'hci_run_general_gap_le':
btstack/src/hci.c:6492:20: error: 'hci_stack_t' has no member named 'le_advertisements_state'; did you mean 'le_advertisements_todo'?
 6492 |         hci_stack->le_advertisements_state |= LE_ADVERTISEMENT_STATE_PRIVACY_PENDING;
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
      |                    le_advertisements_todo
btstack/src/hci.c:6501:21: error: 'hci_stack_t' has no member named 'le_advertisements_state'; did you mean 'le_advertisements_todo'?
 6501 |     if ((hci_stack->le_advertisements_state & LE_ADVERTISEMENT_STATE_PRIVACY_PENDING) != 0){
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
      |                     le_advertisements_todo
btstack/src/hci.c: In function 'gap_privacy_clients_handle_ready':
btstack/src/hci.c:10852:16: error: 'hci_stack_t' has no member named 'le_advertisements_state'; did you mean 'le_advertisements_todo'?
10852 |     hci_stack->le_advertisements_state &= ~LE_ADVERTISEMENT_STATE_PRIVACY_PENDING;

Expected behavior

The project compiles.

Environment: (please complete the following information):

  • Current BTstack branch: 501e6d2
  • Bluetooth Controller CYW43 (Pico W)
  • Remote device: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions