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

Oct 3214 cherry pick fixes from upstream #2294

Commits on Nov 25, 2024

  1. [nrf fromtree] tests: Bluetooth: Tester: Fix use of uninitialized cig…

    …_id for CAP
    
    The CAP tests used u_group->cig->index but the u_group->cig may
    have been deleted when the stream is released, which meant
    that u_group->cig == NULL when e.g. unicast_stop_complete_cb
    was called and that could cause failing tests as the index
    would just be a uninitialized value.
    
    Signed-off-by: Emil Gydesen <[email protected]>
    (cherry picked from commit 5ebe119)
    Thalley authored and koffes committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    85dfc73 View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] Bluetooth: CSIP: Handle disconnects while in procedure

    If a device disconnects while we are in a procedure then
    get_next_active_instance would return a service instance pointer
    with the `conn` set to NULL.
    
    The issue was caused by the set_info being potentially memset
    when the device that disconnected was the one that held the
    set_info pointer.
    The solution is to not use a pointer, but rather a copy of the
    set_info, so that the active.set_info value is still valid
    after a disconnect.
    
    Since the set_info is not longer a pointer to a specific
    set_info from one of the members, the logs have been updated
    as well, as the pointer of the active.set_info is useless
    for debugging.
    
    Signed-off-by: Emil Gydesen <[email protected]>
    (cherry picked from commit 1f1e4af)
    Thalley authored and koffes committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    c9b647d View commit details
    Browse the repository at this point in the history
  3. [nrf fromtree] Bluetooth: CSIP: Fix off-by-one in in lock restore

    If the lock request was rejected by a set member we should
    restore any previously written logs in reverse order.
    
    However there was a off-by-one error in
    csip_set_coordinator_write_lock_cb which caused us to attempt to
    release member[1] instead of member[0] if member[1] was the
    one that rejected the lock request.
    
    Additionally, the lock_set_complete would be called
    prematurely before we get the response from the restore
    request.
    
    Signed-off-by: Emil Gydesen <[email protected]>
    (cherry picked from commit 7c40b07)
    Thalley authored and koffes committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    b674d88 View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] Bluetooth: CAP: Add support for doing just disable for…

    … unicast stop
    
    The unicast_stop function is changed to primarily do a
    BAP disable instead of a release, with optional
    support for releasing the streams once they have been disabled.
    
    This also adds unittests for the procedure which also
    allow us to remove the invalid param testing from the BSIM tests.
    
    Signed-off-by: Emil Gydesen <[email protected]>
    (cherry picked from commit fa4f2ff)
    Thalley authored and koffes committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    749e6f9 View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] Bluetooth: Tester: Added flag parameter to CAP stop cmd

    Added a flag parameter so that it is possible
    to use the bt_cap_initiator_unicast_audio_stop to perform
    disable+stop without releasing the streams by setting the
    RELEASE flag.
    
    This allows us to use the bt_cap_initiator_unicast_audio_stop
    function to just disable streams without releasing them,
    as that is requested by some PTS tests such as
    CAP/INI/UST/BV-40-C.
    
    Signed-off-by: Emil Gydesen <[email protected]>
    (cherry picked from commit 0fa9701a260d49f946e46841a607b14065b715c3)
    Thalley authored and koffes committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    d76d148 View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] shell: Added assert

    Assert to check columns. Averts a potential divide by zero
    
    Signed-off-by: Kristoffer Rist Skøien <[email protected]>
    (cherry picked from commit c73c5d9)
    koffes committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    31b1560 View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] boards nrf_bsim: Add NVIC_GetPendingIRQ() equivalent

    Add a substitute for NVIC_GetPendingIRQ()
    
    Signed-off-by: Alberto Escolar Piedras <[email protected]>
    (cherry picked from commit 1c75408)
    aescolar authored and koffes committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    a0f105d View commit details
    Browse the repository at this point in the history
  8. [nrf fromtree] boards nrf_bsim: Provide IRQ_PRIO_LOWEST

    Some apps use it, so let's provide it.
    
    Signed-off-by: Alberto Escolar Piedras <[email protected]>
    (cherry picked from commit c4e6ec8)
    aescolar authored and koffes committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    5884891 View commit details
    Browse the repository at this point in the history
  9. [nrf fromtree] manifest: Update nRF hw models to latest

    Update the HW models module to:
    aca798cf7cf0c5dc1fd89c66cf62670051feb8d0
    
    Including the following:
    * aca798c IRQ controller: Add missing prototype
    * 4f108bc IRQ controller: Add API to check if int is pending
    * a514448 MDK: provide replacement for SystemCoreClock*
    
    Signed-off-by: Alberto Escolar Piedras <[email protected]>
    (cherry picked from commit 15a7819)
    aescolar authored and koffes committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    8132da7 View commit details
    Browse the repository at this point in the history
  10. [nrf fromtree] native_simulator: Get latest from upstream

    Align with native_simulator's upstream main
    51b27b67addd0073dc86e3d83f492c5cac5c3361
    
    Which includes:
    * 51b27b nsi_utils: Add macro for weak declarations
    
    Signed-off-by: Alberto Escolar Piedras <[email protected]>
    (cherry picked from commit 6ffbb8c)
    aescolar authored and koffes committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    a84f119 View commit details
    Browse the repository at this point in the history