Skip to content
  • Florian Grandel's avatar
    Bluetooth: mgmt: multi adv for set_advertising*() · 7816b820
    Florian Grandel authored
    
    
    The set_advertising() and set_advertising_complete() methods rely on
    the now obsolete hci_dev->adv_instance structure. We replace this
    reference by an equivalent access to the newly introduced dynamic
    advertising instance list.
    
    This patch introduces a helper function that schedules an advertising
    instance correctly calculating advertising timing based on the timeout
    and duration settings of the instance. Scheduling is factored into
    its own function for readability and code sharing.
    
    Signed-off-by: default avatarFlorian Grandel <fgrandel@gmail.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    7816b820