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:
parent
8f1597135d
commit
82aebfeacf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue