Commit 2df876c2 authored by hsum's avatar hsum Committed by Robert Schmidt

Refactor DL TTI request handling and improve code clarity

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.
parent f84a5c16
......@@ -1167,9 +1167,6 @@ int pnf_phy_dl_tti_req(gNB_L1_rxtx_proc_t *proc, nfapi_pnf_p7_config_t *pnf_p7,
nr_schedule_dl_tti_req(gNB, DL_req);
if(DL_req->vendor_extension)
free(DL_req->vendor_extension);
return 0;
}
......
......@@ -572,7 +572,7 @@ typedef struct
{
int16_t sfn;
int16_t slot;
nfapi_nr_dl_tti_request_t* dl_tti_req;
nfapi_nr_dl_tti_request_t dl_tti_req;
nfapi_nr_ul_tti_request_t ul_tti_req;
nfapi_nr_ul_dci_request_t ul_dci_req;
nfapi_nr_tx_data_request_t tx_data_req;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment