Commit f84a5c16 authored by hsum's avatar hsum Committed by Robert Schmidt

Refactor UL TTI request handling and add clarity to function logic

This commit refactors the UL TTI request handling in the PNF P7 module and improves the clarity of function logic.

Changes made:
- Refactored UL TTI request handling to simplify code structure and improve readability.
- Introduced a static function, `cp_nr_ul_tti_req`, to copy UL TTI request structures, improving code modularity and reducing duplication.
- Updated UL TTI request processing to utilize the refactored logic.
- Removed unnecessary deallocation of UL TTI request in error handling path to prevent double deallocation.

Additionally, the commit enhances comments and debug traces for better understanding of the code flow and debugging.
parent 4e18c7b3
...@@ -570,14 +570,12 @@ typedef struct ...@@ -570,14 +570,12 @@ typedef struct
typedef struct typedef struct
{ {
//uint16_t sfn_slot
int16_t sfn; int16_t sfn;
int16_t slot; int16_t slot;
//TODO: Change P7 structs to NR nfapi_nr_dl_tti_request_t* dl_tti_req;
nfapi_nr_dl_tti_request_t* dl_tti_req;//nfapi_dl_config_request_t* dl_config_req; nfapi_nr_ul_tti_request_t ul_tti_req;
nfapi_nr_ul_tti_request_t* ul_tti_req;//nfapi_ul_config_request_t* ul_config_req; nfapi_nr_ul_dci_request_t ul_dci_req;
nfapi_nr_ul_dci_request_t ul_dci_req;//nfapi_hi_dci0_request_t* hi_dci0_req; nfapi_nr_tx_data_request_t tx_data_req;
nfapi_nr_tx_data_request_t tx_data_req;//nfapi_tx_request_t* tx_req;
//TODO: check these two later //TODO: check these two later
//nfapi_lbt_dl_config_request_t* lbt_dl_config_req; //nfapi_lbt_dl_config_request_t* lbt_dl_config_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