Remove threequarter_fs, log_level; make functions static
2 functions with same name as static to make it clearer they are separate. remove unused copy of log_level global var. remove threequarter sampling variable from the radio board general configuration. The decision of sampling rate is made above. A better behavior can be done later, like ask to the radio board what sampling rate it can do,then use it to decide the appropiate sampling rate from the gNB configuration. In UE case, it is another issue, as the sampling rate would change after we decode SIB1, but also it is not developped yet.
This commit is contained in:
committed by
Robert Schmidt
parent
78f12dbc03
commit
c4f4f8d919
@@ -384,7 +384,8 @@ void set_default_frame_parms(LTE_DL_FRAME_PARMS *frame_parms[MAX_NUM_CCs]) {
|
||||
}
|
||||
}
|
||||
|
||||
void init_openair0(LTE_DL_FRAME_PARMS *frame_parms,int rxgain) {
|
||||
static void init_openair0(LTE_DL_FRAME_PARMS *frame_parms, int rxgain)
|
||||
{
|
||||
int card;
|
||||
int i;
|
||||
|
||||
|
||||
@@ -249,7 +249,7 @@ void set_options(int CC_id, PHY_VARS_NR_UE *UE){
|
||||
|
||||
}
|
||||
|
||||
void init_openair0()
|
||||
static void init_openair0()
|
||||
{
|
||||
int card;
|
||||
int freq_off = 0;
|
||||
@@ -261,7 +261,6 @@ void init_openair0()
|
||||
for (card=0; card<MAX_CARDS; card++) {
|
||||
uint64_t dl_carrier, ul_carrier;
|
||||
openair0_cfg[card].configFilename = NULL;
|
||||
openair0_cfg[card].threequarter_fs = frame_parms->threequarter_fs;
|
||||
openair0_cfg[card].sample_rate = frame_parms->samples_per_subframe * 1e3;
|
||||
openair0_cfg[card].samples_per_frame = frame_parms->samples_per_frame;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user