system_information: fix unused 'mask' parameter in list_arfcn()

The callers of this function do pass different mask values, which
should be passed to gsm48_decode_freq_list().  Instead, 0xce was
passed regardless of the given mask value.

Change-Id: I47f2eab54ef8487b14992fd7a69d5c9ccbb3f5cf
This commit is contained in:
Vadim Yanitskiy 2022-03-03 03:18:45 +07:00 committed by laforge
parent 8f1597135d
commit 82aebfeacf
1 changed files with 1 additions and 1 deletions

View File

@ -709,7 +709,7 @@ static int list_arfcn(uint8_t *chan_list, uint8_t mask, char *text)
struct gsm_sysinfo_freq freq[1024];
memset(freq, 0, sizeof(freq));
gsm48_decode_freq_list(freq, chan_list, 16, 0xce, 1);
gsm48_decode_freq_list(freq, chan_list, 16, mask, 1);
for (i = 0; i < 1024; i++) {
if (freq[i].mask) {
if (!n)