• hsum's avatar
    Refactor DL TTI request handling and improve code clarity · 9d99f1e9
    hsum authored
    This commit refactors the DL TTI request handling in the PNF P7 module and enhances code clarity.
    
    Changes made:
    - Updated the definition of `dl_tti_req` in the `nfapi_pnf_interface.h` header file to directly store the `nfapi_nr_dl_tti_request_t` structure instead of a pointer.
    - Refactored DL TTI request processing in the `pnf_handle_dl_tti_request` function in `pnf_p7.c` to simplify the code structure and improve readability.
    - Introduced a static function, `cp_nr_dl_tti_req`, to copy DL TTI request structures, improving code modularity and reducing duplication.
    - Updated DL TTI request handling to utilize the refactored logic.
    - Removed unnecessary deallocation of DL TTI request in error handling path to prevent double deallocation.
    9d99f1e9
nfapi_pnf.c 89.2 KB