Commit 38bae9cc authored by frtabu's avatar frtabu

fix wrong AssetFatal test in prach.c

parent a97dcd62
...@@ -97,14 +97,15 @@ void rx_prach0(PHY_VARS_eNB *eNB, ...@@ -97,14 +97,15 @@ void rx_prach0(PHY_VARS_eNB *eNB,
#endif #endif
if(ru) { if(eNB) {
fp = &(ru->frame_parms);
nb_rx = ru->nb_rx;
} else {
fp = &(eNB->frame_parms); fp = &(eNB->frame_parms);
nb_rx = fp->nb_antennas_rx; nb_rx = fp->nb_antennas_rx;
} else {
fp = &(ru->frame_parms);
nb_rx = ru->nb_rx;
} }
AssertFatal(fp==NULL,"rx_prach called without valid RU or eNB descriptor\n"); AssertFatal(fp!=NULL,"rx_prach called without valid RU or eNB descriptor\n");
frame_type = fp->frame_type; frame_type = fp->frame_type;
frame_type = fp->frame_type; frame_type = fp->frame_type;
......
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