update to the fix for initial sync
This commit is contained in:
+1
-4
@@ -666,8 +666,6 @@ void *UE_thread(void *arg) {
|
|||||||
int thread_idx=0;
|
int thread_idx=0;
|
||||||
notifiedFIFO_t freeBlocks;
|
notifiedFIFO_t freeBlocks;
|
||||||
initNotifiedFIFO_nothreadSafe(&freeBlocks);
|
initNotifiedFIFO_nothreadSafe(&freeBlocks);
|
||||||
NR_UE_MAC_INST_t *mac = get_mac_inst(0);
|
|
||||||
|
|
||||||
|
|
||||||
for (int i=0; i<RX_NB_TH+1; i++) // RX_NB_TH working + 1 we are making to be pushed
|
for (int i=0; i<RX_NB_TH+1; i++) // RX_NB_TH working + 1 we are making to be pushed
|
||||||
pushNotifiedFIFO_nothreadSafe(&freeBlocks,
|
pushNotifiedFIFO_nothreadSafe(&freeBlocks,
|
||||||
@@ -685,8 +683,7 @@ void *UE_thread(void *arg) {
|
|||||||
syncRunning=false;
|
syncRunning=false;
|
||||||
syncData_t *tmp=(syncData_t *)NotifiedFifoData(res);
|
syncData_t *tmp=(syncData_t *)NotifiedFifoData(res);
|
||||||
// shift the frame index with all the frames we trashed meanwhile we perform the synch search
|
// shift the frame index with all the frames we trashed meanwhile we perform the synch search
|
||||||
decoded_frame_rx=((((mac->mib->systemFrameNumber.buf[0] >> mac->mib->systemFrameNumber.bits_unused)<<4) | tmp->proc.decoded_frame_rx) +
|
decoded_frame_rx=(tmp->proc.decoded_frame_rx + (!UE->init_sync_frame) + trashed_frames) % MAX_FRAME_NUMBER;
|
||||||
(!UE->init_sync_frame) + trashed_frames) % MAX_FRAME_NUMBER;
|
|
||||||
delNotifiedFIFO_elt(res);
|
delNotifiedFIFO_elt(res);
|
||||||
} else {
|
} else {
|
||||||
readFrame(UE, ×tamp, true);
|
readFrame(UE, ×tamp, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user