Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bluetooth: mesh: Use bt_get_name to get device name #81901

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 26, 2024

  1. bluetooth: mesh: Use bt_get_name to get device name

    By default if CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME
    or CONFIG_BT_MESH_PB_GATT_USE_DEVICE_NAME is enabled, the mesh stack
    will add BT_DATA_NAME_COMPLETE AD Type along with the Mesh Proxy Service
    or Mesh Provisioning Service advertisements accordingly.
    
    When BT_LE_ADV_OPT_USE_NAME was present and
    CONFIG_BT_DEVICE_NAME_DYNAMIC is enabled, the advertised name was
    automatically updated by the host. This turned out to be a side-effect
    rather than expected behavior and after zephyrproject-rtos#71700 this behavior waa
    changed.
    
    But customers use dynamic name feature.
    
    This commit makes the mesh stack use bt_get_name to get the device name,
    which returns runtime name if CONFIG_BT_DEVICE_NAME_DYNAMIC is enabled.
    
    Signed-off-by: Pavel Vasilyev <[email protected]>
    PavelVPV committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    ed7cdec View commit details
    Browse the repository at this point in the history