Commit df20a356 authored by Robert Schmidt's avatar Robert Schmidt

Merge remote-tracking branch 'origin/episys/enabling-multi-ues' into integration_2023_w51

parents cbff849b c4c1daeb
...@@ -426,6 +426,28 @@ static void get_channel_model_mode(configmodule_interface_t *cfg) ...@@ -426,6 +426,28 @@ static void get_channel_model_mode(configmodule_interface_t *cfg)
init_bler_table("NR_AWGN_RESULTS_DIR"); init_bler_table("NR_AWGN_RESULTS_DIR");
} }
void start_oai_nrue_threads()
{
init_queue(&nr_rach_ind_queue);
init_queue(&nr_rx_ind_queue);
init_queue(&nr_crc_ind_queue);
init_queue(&nr_uci_ind_queue);
init_queue(&nr_sfn_slot_queue);
init_queue(&nr_chan_param_queue);
init_queue(&nr_dl_tti_req_queue);
init_queue(&nr_tx_req_queue);
init_queue(&nr_ul_dci_req_queue);
init_queue(&nr_ul_tti_req_queue);
if (sem_init(&sfn_slot_semaphore, 0, 0) != 0)
{
LOG_E(MAC, "sem_init() error\n");
abort();
}
init_nrUE_standalone_thread(ue_id_g);
}
int NB_UE_INST = 1; int NB_UE_INST = 1;
configmodule_interface_t *uniqCfg = NULL; configmodule_interface_t *uniqCfg = NULL;
......
...@@ -97,7 +97,7 @@ extern void init_NR_UE(int, char *, char *, char *); ...@@ -97,7 +97,7 @@ extern void init_NR_UE(int, char *, char *, char *);
extern void init_NR_UE_threads(int); extern void init_NR_UE_threads(int);
extern void reset_opp_meas(void); extern void reset_opp_meas(void);
extern void print_opp_meas(void); extern void print_opp_meas(void);
extern void start_oai_nrue_threads(void); void start_oai_nrue_threads(void);
void *UE_thread(void *arg); void *UE_thread(void *arg);
void init_nr_ue_vars(PHY_VARS_NR_UE *ue, uint8_t UE_id, uint8_t abstraction_flag); void init_nr_ue_vars(PHY_VARS_NR_UE *ue, uint8_t UE_id, uint8_t abstraction_flag);
void init_nrUE_standalone_thread(int ue_idx); void init_nrUE_standalone_thread(int ue_idx);
......
...@@ -1647,28 +1647,6 @@ void *recv_msgs_from_lte_ue(void *args_p) ...@@ -1647,28 +1647,6 @@ void *recv_msgs_from_lte_ue(void *args_p)
return NULL; return NULL;
} }
void start_oai_nrue_threads()
{
init_queue(&nr_rach_ind_queue);
init_queue(&nr_rx_ind_queue);
init_queue(&nr_crc_ind_queue);
init_queue(&nr_uci_ind_queue);
init_queue(&nr_sfn_slot_queue);
init_queue(&nr_chan_param_queue);
init_queue(&nr_dl_tti_req_queue);
init_queue(&nr_tx_req_queue);
init_queue(&nr_ul_dci_req_queue);
init_queue(&nr_ul_tti_req_queue);
if (sem_init(&sfn_slot_semaphore, 0, 0) != 0)
{
LOG_E(MAC, "sem_init() error\n");
abort();
}
init_nrUE_standalone_thread(0);
}
static void nsa_rrc_ue_process_ueCapabilityEnquiry(void) static void nsa_rrc_ue_process_ueCapabilityEnquiry(void)
{ {
NR_UE_NR_Capability_t *UE_Capability_nr = NR_UE_rrc_inst[0].UECap.UE_NR_Capability = CALLOC(1, sizeof(NR_UE_NR_Capability_t)); NR_UE_NR_Capability_t *UE_Capability_nr = NR_UE_rrc_inst[0].UECap.UE_NR_Capability = CALLOC(1, sizeof(NR_UE_NR_Capability_t));
......
...@@ -115,7 +115,7 @@ void init_connections_with_lte_ue(void); ...@@ -115,7 +115,7 @@ void init_connections_with_lte_ue(void);
void nsa_sendmsg_to_lte_ue(const void *message, size_t msg_len, Rrc_Msg_Type_t msg_type); void nsa_sendmsg_to_lte_ue(const void *message, size_t msg_len, Rrc_Msg_Type_t msg_type);
void start_oai_nrue_threads(void); extern void start_oai_nrue_threads(void);
int get_from_lte_ue_fd(); int get_from_lte_ue_fd();
......
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