cosmetic: bts_uarfcn_add(): pass diversity directly to encode_fdd()

Change-Id: I274e5b7cf43b710a58b3c370334c5639c9f5e249
Related: SYS#6401
This commit is contained in:
Vadim Yanitskiy 2023-04-04 01:05:47 +07:00 committed by laforge
parent 377c1e3fd7
commit b96af7d7ec
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ int bts_uarfcn_add(struct gsm_bts *bts, uint16_t arfcn, uint16_t scramble, bool
size_t len = bts->si_common.uarfcn_length, i;
uint8_t si2q;
int pos = uarfcn_sc_pos(bts, arfcn, scramble);
uint16_t scr = diversity ? encode_fdd(scramble, true) : encode_fdd(scramble, false),
uint16_t scr = encode_fdd(scramble, diversity),
*ual = bts->si_common.data.uarfcn_list,
*scl = bts->si_common.data.scramble_list;