Commit 83a3f6ac authored by Florian Kaltenberger's avatar Florian Kaltenberger

small bugfix

parent e6e12b87
...@@ -640,19 +640,20 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP, ...@@ -640,19 +640,20 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP,
} }
} }
//configure SRS for secondary cell if (scc) {
int curr_bwp = NRRIV2BW(scc->downlinkConfigCommon->initialDownlinkBWP->genericParameters.locationAndBandwidth,MAX_BWP_SIZE); //configure SRS for secondary cell
int curr_bwp = NRRIV2BW(scc->downlinkConfigCommon->initialDownlinkBWP->genericParameters.locationAndBandwidth,MAX_BWP_SIZE);
RC.nrmac[Mod_idP]->setup_srs_config[0] = calloc(1,sizeof(NR_SetupRelease_SRS_Config_t));
config_srs(RC.nrmac[Mod_idP]->setup_srs_config[0], RC.nrmac[Mod_idP]->setup_srs_config[0] = calloc(1,sizeof(NR_SetupRelease_SRS_Config_t));
NULL, config_srs(RC.nrmac[Mod_idP]->setup_srs_config[0],
curr_bwp, NULL,
0, //lets assume ue_id = 0. curr_bwp,
0, //res_id = 0 for initial BWP 0, //lets assume ue_id = 0.
1); //do_srsg 0, //res_id = 0 for initial BWP
1); //do_srsg
}
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_RRC_MAC_CONFIG, VCD_FUNCTION_OUT); VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_RRC_MAC_CONFIG, VCD_FUNCTION_OUT);
return 0; return 0;
......
...@@ -494,7 +494,8 @@ static bool flushInput(rfsimulator_state_t *t, int timeout, int nsamps_for_initi ...@@ -494,7 +494,8 @@ static bool flushInput(rfsimulator_state_t *t, int timeout, int nsamps_for_initi
AssertFatal( (conn_sock = accept(t->listen_sock,NULL,NULL)) != -1, ""); AssertFatal( (conn_sock = accept(t->listen_sock,NULL,NULL)) != -1, "");
setblocking(conn_sock, notBlocking); setblocking(conn_sock, notBlocking);
allocCirBuf(t, conn_sock); allocCirBuf(t, conn_sock);
LOG_I(HW,"A client connected, sending the current time\n"); openair0_timestamp ts = t->lastWroteTS > 1 ? t->lastWroteTS-1 : 0;
LOG_I(HW,"A client connected, sending the current time %lu\n",ts);
c16_t v= {0}; c16_t v= {0};
void *samplesVoid[t->tx_num_channels]; void *samplesVoid[t->tx_num_channels];
......
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