if(ru->is_slave==0&&((proc->RU_mask[ru->proc.subframe_rx]&(1<<i))==1)&&eNB->RU_list[i]->state==RU_RUN){// This is master & the RRU has already been received
LOG_E(PHY,"RU %d is not SYNC, subframe %d, time %f this is master\n",eNB->RU_list[i]->idx,ru->proc.subframe_rx,fabs(eNB->RU_list[i]->proc.t[ru->proc.subframe_rx].tv_nsec-eNB->RU_list[0]->proc.t[ru->proc.subframe_rx].tv_nsec));
...
...
@@ -1214,6 +1221,7 @@ void wakeup_L1s(RU_t *ru) {
LOG_D(PHY,"ru->proc.subframe_rx is %d \n",ru->proc.subframe_rx);
LOG_D(PHY,"Reseting mask frame %d, subframe %d, this is RU %d\n",ru->proc.frame_rx,ru->proc.subframe_rx,ru->idx);
if(eNB_proc->RU_mask_tx!=(1<<eNB->num_RU)-1){// not all RUs have provided their information so return
printf("Not all RUs have provided their info (mask = %d), RU %d, num_RUs %d\n",eNB_proc->RU_mask_tx,ru->idx,eNB->num_RU);
//printf("Not all RUs have provided their info (mask = %d), RU %d, num_RUs %d\n", eNB_proc->RU_mask_tx,ru->idx,eNB->num_RU);
pthread_mutex_unlock(&eNB_proc->mutex_RU_tx);
}
else{// all RUs TX are finished so send the ready signal to eNB processing
printf("All RUs TX are finished. Ready to send wakeup signal to eNB processing, num_RUs %d, RU %d, mask %d\n",eNB->num_RU,ru->idx,eNB_proc->RU_mask_tx);
//printf("All RUs TX are finished. Ready to send wakeup signal to eNB processing, num_RUs %d, RU %d, mask %d\n", eNB->num_RU,ru->idx,eNB_proc->RU_mask_tx);