Commit a97dcd62 authored by frtabu's avatar frtabu

attempt to fix prach.c wrong ru/eNB test

parent 824d2b47
...@@ -96,13 +96,13 @@ void rx_prach0(PHY_VARS_eNB *eNB, ...@@ -96,13 +96,13 @@ void rx_prach0(PHY_VARS_eNB *eNB,
int prach_ifft_cnt=0; int prach_ifft_cnt=0;
#endif #endif
if(eNB) { if(ru) {
fp = &(eNB->frame_parms);
nb_rx = fp->nb_antennas_rx;
} else {
fp = &(ru->frame_parms); fp = &(ru->frame_parms);
nb_rx = ru->nb_rx; nb_rx = ru->nb_rx;
} else {
fp = &(eNB->frame_parms);
nb_rx = fp->nb_antennas_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;
......
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