mirror of git://git.sysmocom.de/ofono
Make Operator attribute work when SPN is empty
This commit is contained in:
parent
2c73893d0a
commit
ce68c39d0b
|
@ -343,8 +343,10 @@ static char *get_operator_display_name(struct ofono_modem *modem)
|
|||
return name;
|
||||
}
|
||||
|
||||
if (!netreg->spname)
|
||||
if (!netreg->spname || strlen(netreg->spname) == 0) {
|
||||
g_strlcpy(name, netreg->current_operator->name, len);
|
||||
return name;
|
||||
}
|
||||
|
||||
plmn = netreg->current_operator->name;
|
||||
|
||||
|
|
Loading…
Reference in New Issue