Merge remote-tracking branch 'origin/develop-uedirectorysplit' into develop_integration_2018_w19
Status so far: - monolithic eNB compiles and is functional with 1 UE in FDD, 5/10/20MHz. For 20MHz we don't have a nice TCP downlink (on haswell). - oaisim does not compile - UE does not compile - phy simulators don't compile - many new warnings Conflicts: cmake_targets/CMakeLists.txt openair1/PHY/LTE_TRANSPORT/transport_eNB.h openair1/PHY/LTE_UE_TRANSPORT/transport_proto_ue.h openair1/PHY/defs_eNB.h openair1/SCHED/pusch_pc.c openair1/SCHED/sched_common.h openair1/SCHED_UE/phy_procedures_lte_ue.c openair2/LAYER2/MAC/eNB_scheduler.c openair2/LAYER2/MAC/eNB_scheduler_mch.c openair2/LAYER2/MAC/mac.h openair2/LAYER2/MAC/ra_procedures.c openair2/LAYER2/MAC/ue_procedures.c openair2/RRC/LTE/MESSAGES/asn1_msg.h openair2/RRC/LTE/rrc_UE.c openair2/RRC/LTE/rrc_defs.h targets/RT/USER/lte-softmodem.h targets/RT/USER/lte-ue.c
This commit is contained in:
@@ -30,76 +30,24 @@
|
||||
* \warning
|
||||
*/
|
||||
|
||||
#include "extern.h"
|
||||
#include "defs.h"
|
||||
#include "proto.h"
|
||||
#include "mac_extern.h"
|
||||
#include "mac.h"
|
||||
#include "mac_proto.h"
|
||||
#include "UTIL/LOG/vcd_signal_dumper.h"
|
||||
#include "PHY_INTERFACE/extern.h"
|
||||
#include "SCHED/defs.h"
|
||||
#include "PHY_INTERFACE/phy_interface_extern.h"
|
||||
#include "SCHED_UE/sched_UE.h"
|
||||
#include "COMMON/mac_rrc_primitives.h"
|
||||
#include "RRC/LITE/extern.h"
|
||||
#include "RRC/LTE/rrc_extern.h"
|
||||
#include "RRC/L2_INTERFACE/openair_rrc_L2_interface.h"
|
||||
#include "UTIL/LOG/log.h"
|
||||
#include "UTIL/OPT/opt.h"
|
||||
#include "OCG.h"
|
||||
#include "OCG_extern.h"
|
||||
#ifdef PHY_EMUL
|
||||
#include "SIMULATION/simulation_defs.h"
|
||||
#endif
|
||||
|
||||
#include "SIMULATION/TOOLS/defs.h" // for taus
|
||||
#include "SIMULATION/TOOLS/sim.h" // for taus
|
||||
|
||||
extern uint8_t nfapi_mode;
|
||||
extern UE_MODE_t get_ue_mode(uint8_t Mod_id,uint8_t CC_id,uint8_t eNB_index);
|
||||
|
||||
|
||||
int8_t get_DELTA_PREAMBLE(module_id_t module_idP,int CC_id)
|
||||
{
|
||||
|
||||
AssertFatal(CC_id == 0,
|
||||
"Transmission on secondary CCs is not supported yet\n");
|
||||
uint8_t prachConfigIndex =
|
||||
UE_mac_inst[module_idP].radioResourceConfigCommon->
|
||||
prach_Config.prach_ConfigInfo.prach_ConfigIndex;
|
||||
uint8_t preambleformat;
|
||||
|
||||
if (UE_mac_inst[module_idP].tdd_Config) { // TDD
|
||||
if (prachConfigIndex < 20) {
|
||||
preambleformat = 0;
|
||||
} else if (prachConfigIndex < 30) {
|
||||
preambleformat = 1;
|
||||
} else if (prachConfigIndex < 40) {
|
||||
preambleformat = 2;
|
||||
} else if (prachConfigIndex < 48) {
|
||||
preambleformat = 3;
|
||||
} else {
|
||||
preambleformat = 4;
|
||||
}
|
||||
} else { // FDD
|
||||
preambleformat = prachConfigIndex >> 2;
|
||||
}
|
||||
|
||||
switch (preambleformat) {
|
||||
case 0:
|
||||
case 1:
|
||||
return (0);
|
||||
|
||||
case 2:
|
||||
case 3:
|
||||
return (-3);
|
||||
|
||||
case 4:
|
||||
return (8);
|
||||
|
||||
default:
|
||||
AssertFatal(1 == 0,
|
||||
"[UE %d] ue_procedures.c: FATAL, Illegal preambleformat %d, prachConfigIndex %d\n",
|
||||
module_idP, preambleformat, prachConfigIndex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// This routine implements Section 5.1.2 (UE Random Access Resource Selection) from 36.321
|
||||
void
|
||||
get_prach_resources(module_id_t module_idP,
|
||||
|
||||
Reference in New Issue
Block a user