diff options
-rw-r--r-- | src/host/layer23/src/mobile/gsm322.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/host/layer23/src/mobile/gsm322.c b/src/host/layer23/src/mobile/gsm322.c index c5b87b28..ce5e1e1d 100644 --- a/src/host/layer23/src/mobile/gsm322.c +++ b/src/host/layer23/src/mobile/gsm322.c @@ -1840,10 +1840,11 @@ static int gsm322_cs_select(struct osmocom_ms *ms, int index, uint16_t mcc, /* loop through all scanned frequencies and select cell. * if an index is given (arfci), we just check this cell only */ - if (index >= 0) + if (index >= 0) { start = end = index; - else + } else { start = 0; end = 1023+299; + } for (i = start; i <= end; i++) { cs->list[i].flags &= ~GSM322_CS_FLAG_TEMP_AA; s = cs->list[i].sysinfo; |