• Cedric Roux's avatar
    add a stop_rf function in the RU · 96380582
    Cedric Roux authored
    When the program exits it has to stop the streaming of the USRP.
    The function exit_fun is supposed to do that. When quitting with
    control+c (very common case) this function is not called. The
    code is very unclear there, so let's add a stop_rf in the RU,
    as there is already a start_rf.
    
    If we don't call trx_end_func, then at the next run the USRP
    device may be in an unstable state and behave improperly.
    
    If the program crashes then the USRP device may be in an
    unstable state. The only solution to this problem is to reset
    the USRP device.
    
    Maybe there is a way to clean the state of the device when we
    open it, before we start using it. Sort of a cleanup before
    use. That could be a better solution to "bad state after program
    crash".
    
    What has been tested:
    - monolithic eNB only
    96380582
lte-ru.c 86.3 KB