mirror of git://git.sysmocom.de/ofono
voicecall: Handle empty EFecc properly
When EFecc is empty we should still set the calling codes to the default_en_list, not keep the default_en_list + default_en_list_no_sim
This commit is contained in:
parent
58f223da5f
commit
fa222d810a
|
@ -2112,9 +2112,6 @@ static void ecc_g2_read_cb(int ok, int total_length, int record,
|
|||
g_strdup(en));
|
||||
}
|
||||
|
||||
if (vc->new_en_list == NULL)
|
||||
return;
|
||||
|
||||
set_new_ecc(vc);
|
||||
}
|
||||
|
||||
|
@ -2147,7 +2144,7 @@ static void ecc_g3_read_cb(int ok, int total_length, int record,
|
|||
return;
|
||||
|
||||
check:
|
||||
if (vc->new_en_list == NULL)
|
||||
if (!ok && vc->new_en_list == NULL)
|
||||
return;
|
||||
|
||||
set_new_ecc(vc);
|
||||
|
|
Loading…
Reference in New Issue