Commit 6f186c2f authored by rmagueta's avatar rmagueta

Remove memclr_mac

parent b5b0c404
...@@ -128,7 +128,6 @@ void tx_func(void *param) { ...@@ -128,7 +128,6 @@ void tx_func(void *param) {
syncMsg->ru = gNB->RU_list[0]; syncMsg->ru = gNB->RU_list[0];
res->key = slot_tx; res->key = slot_tx;
pushTpool(gNB->threadPool, res); pushTpool(gNB->threadPool, res);
gNB->memclr_mac(gNB->Mod_id, gNB->CC_id);
} }
void rx_func(void *param) { void rx_func(void *param) {
...@@ -494,7 +493,6 @@ void init_gNB(int single_thread_flag,int wait_for_sync) { ...@@ -494,7 +493,6 @@ void init_gNB(int single_thread_flag,int wait_for_sync) {
LOG_I(PHY,"Registering with MAC interface module (after %p)\n",gNB->if_inst); LOG_I(PHY,"Registering with MAC interface module (after %p)\n",gNB->if_inst);
gNB->if_inst->NR_Schedule_response = nr_schedule_response; gNB->if_inst->NR_Schedule_response = nr_schedule_response;
gNB->if_inst->NR_PHY_config_req = nr_phy_config_request; gNB->if_inst->NR_PHY_config_req = nr_phy_config_request;
gNB->memclr_mac = memclr_mac;
memset((void *)&gNB->UL_INFO,0,sizeof(gNB->UL_INFO)); memset((void *)&gNB->UL_INFO,0,sizeof(gNB->UL_INFO));
LOG_I(PHY,"Setting indication lists\n"); LOG_I(PHY,"Setting indication lists\n");
......
...@@ -695,7 +695,6 @@ typedef struct PHY_VARS_gNB_s { ...@@ -695,7 +695,6 @@ typedef struct PHY_VARS_gNB_s {
NR_IF_Module_t *if_inst; NR_IF_Module_t *if_inst;
NR_UL_IND_t UL_INFO; NR_UL_IND_t UL_INFO;
pthread_mutex_t UL_INFO_mutex; pthread_mutex_t UL_INFO_mutex;
void (*memclr_mac)(int Mod_id, int CC_id);
/// NFAPI RX ULSCH information /// NFAPI RX ULSCH information
nfapi_nr_rx_data_pdu_t rx_pdu_list[MAX_UL_PDUS_PER_SLOT]; nfapi_nr_rx_data_pdu_t rx_pdu_list[MAX_UL_PDUS_PER_SLOT];
......
...@@ -796,11 +796,12 @@ int main(int argc, char **argv) ...@@ -796,11 +796,12 @@ int main(int argc, char **argv)
n_rx, n_rx,
channel_model, channel_model,
fs/1e6,//sampling frequency in MHz fs/1e6,//sampling frequency in MHz
bw, bw,
30e-9, 30e-9,
0, 0,
0, 0,
0, 0); 0,
0);
if (gNB2UE==NULL) { if (gNB2UE==NULL) {
printf("Problem generating channel model. Exiting.\n"); printf("Problem generating channel model. Exiting.\n");
......
...@@ -267,9 +267,3 @@ NR_IF_Module_t *NR_IF_Module_init(int Mod_id) { ...@@ -267,9 +267,3 @@ NR_IF_Module_t *NR_IF_Module_init(int Mod_id) {
return nr_if_inst[Mod_id]; return nr_if_inst[Mod_id];
} }
void memclr_mac(int Mod_id, int CC_id) {
nfapi_nr_dl_tti_request_pdu_t *dl_tti_pdu_list = &RC.nrmac[Mod_id]->DL_req[CC_id].dl_tti_request_body.dl_tti_pdu_list[0];
memset(dl_tti_pdu_list, 0, sizeof(nfapi_nr_dl_tti_request_pdu_t)*NFAPI_NR_MAX_DL_TTI_PDUS);
}
...@@ -120,8 +120,6 @@ typedef struct NR_IF_Module_s { ...@@ -120,8 +120,6 @@ typedef struct NR_IF_Module_s {
/*Initial */ /*Initial */
NR_IF_Module_t *NR_IF_Module_init(int Mod_id); NR_IF_Module_t *NR_IF_Module_init(int Mod_id);
void memclr_mac(int Mod_id, int CC_id);
void NR_IF_Module_kill(int Mod_id); void NR_IF_Module_kill(int Mod_id);
void NR_UL_indication(NR_UL_IND_t *UL_INFO); void NR_UL_indication(NR_UL_IND_t *UL_INFO);
......
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