Reset counter for sync lost when PSS is found

master
Ismael Gomez 5 years ago
parent 7847c8da5e
commit 2859a75ca0

@ -46,7 +46,7 @@ bool srslte_cellid_isvalid(uint32_t cell_id) {
} }
bool srslte_nofprb_isvalid(uint32_t nof_prb) { bool srslte_nofprb_isvalid(uint32_t nof_prb) {
if (nof_prb >= 6 && nof_prb <= SRSLTE_MAX_PRB) { if (nof_prb >= 6 && nof_prb <= 100) {
return true; return true;
} else { } else {
return false; return false;

@ -35,7 +35,7 @@
#define MAX_TIME_OFFSET 128 #define MAX_TIME_OFFSET 128
#define TRACK_MAX_LOST 20 #define TRACK_MAX_LOST 10
#define TRACK_FRAME_SIZE 32 #define TRACK_FRAME_SIZE 32
#define FIND_NOF_AVG_FRAMES 4 #define FIND_NOF_AVG_FRAMES 4
@ -635,7 +635,8 @@ static int track_peak_ok(srslte_ue_sync_t* q, uint32_t track_idx)
q->peak_idx = q->sf_len/2 + q->last_sample_offset; q->peak_idx = q->sf_len/2 + q->last_sample_offset;
q->frame_ok_cnt++; q->frame_ok_cnt++;
q->frame_no_cnt = 0;
return 1; return 1;
} }

Loading…
Cancel
Save