broadband-modem-qmi: change operator description priority
If an IoT SIM card is used, the service name is always used as the operator description. This is not what is expected. Therefore the priority is changed with this commit, so that the long name is tried to be set first, then the short name and finally the service name. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -3467,15 +3467,15 @@ get_plmn_name_ready (QmiClientNas *client,
|
||||
mm_obj_dbg (self, "current operator short name: %s", short_name);
|
||||
mm_obj_dbg (self, "current operator service name: %s", service_name);
|
||||
if (!self->priv->current_operator_description) {
|
||||
if (service_name) {
|
||||
mm_obj_dbg (self, "setting operator description to service name: %s", service_name);
|
||||
self->priv->current_operator_description = g_steal_pointer (&service_name);
|
||||
} else if (long_name) {
|
||||
mm_obj_dbg (self, "setting operator description to long name: %s", long_name);
|
||||
if (long_name) {
|
||||
mm_obj_dbg (self, "setting operator description to long_name: %s", long_name);
|
||||
self->priv->current_operator_description = g_steal_pointer (&long_name);
|
||||
} else if (short_name) {
|
||||
mm_obj_dbg (self, "setting operator description to short name: %s", short_name);
|
||||
self->priv->current_operator_description = g_steal_pointer (&short_name);
|
||||
} else if (service_name) {
|
||||
mm_obj_dbg (self, "setting operator description to service name: %s", service_name);
|
||||
self->priv->current_operator_description = g_steal_pointer (&service_name);
|
||||
} else {
|
||||
mm_obj_dbg (self, "unable to set operator description");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user