Just a quick bug fix to gsm322.c.
Basically, there were two commands in an "else" block without brackets, causing the "end = 1023+299" command to execute regardless of the state of index. Signed-off-by: Andreas Eversberg <jolly@eversberg.eu>
This commit is contained in:
parent
0eecdf24f3
commit
987787f0cb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue