Cleanup UE mac_enabled conditions

- skipping RA procedures when MAC is disabled
- added mac_enabled flag that allows to disable RA and TA at UE from CL
This commit is contained in:
cig
2020-12-27 19:28:13 +01:00
parent a21e858f4f
commit 895d97d0e8
5 changed files with 18 additions and 27 deletions
+2
View File
@@ -111,6 +111,7 @@ volatile int oai_exit = 0;
extern int16_t nr_dlsch_demod_shift;
static int tx_max_power[MAX_NUM_CCs] = {0};
int mac_enabled = 1;
int single_thread_flag = 1;
int threequarter_fs = 0;
int UE_scan_carrier = 0;
@@ -299,6 +300,7 @@ void set_options(int CC_id, PHY_VARS_NR_UE *UE){
tx_gain[0][CC_id] = tx_gain[0][0];
// Set UE variables
UE->mac_enabled = mac_enabled;
UE->UE_scan = UE_scan;
UE->UE_scan_carrier = UE_scan_carrier;
UE->UE_fo_compensation = UE_fo_compensation;