• Robert Schmidt's avatar
    UL ref sequences: prevent double-initialization · 5600316d
    Robert Schmidt authored
    The existing code prevents double initialization if e.g., both gNB&UE
    call these functions (like in a simulator). However, in the case of a
    double-initialization such as stopping and re-starting the L1, the
    memory will be freed, but not freed again. Basically, this works:
    
        generate()
        generate() # not initialized again
    
    but this leads to problems:
    
        generate()
        free()
        generate() # not initialized again, but should be!
    
    Reimplement the check based on the data to be initialized, such that an
    intermediate free() will be handled properly.
    5600316d
ul_ref_seq_nr.c 10.4 KB