iridium: fix operator name and code to be reported
This commit is contained in:
@@ -216,6 +216,24 @@ get_sim_iccid (MMGenericGsm *modem,
|
||||
callback (MM_MODEM (modem), "", NULL, callback_data);
|
||||
}
|
||||
|
||||
static void
|
||||
get_operator_name (MMGenericGsm *modem,
|
||||
MMModemStringFn callback,
|
||||
gpointer callback_data)
|
||||
{
|
||||
/* Only "IRIDIUM" operator name is assumed */
|
||||
callback (MM_MODEM (modem), "IRIDIUM", NULL, callback_data);
|
||||
}
|
||||
|
||||
static void
|
||||
get_operator_code (MMGenericGsm *modem,
|
||||
MMModemStringFn callback,
|
||||
gpointer callback_data)
|
||||
{
|
||||
/* Only "90103" operator code is assumed */
|
||||
callback (MM_MODEM (modem), "90103", NULL, callback_data);
|
||||
}
|
||||
|
||||
static void
|
||||
set_property (GObject *object,
|
||||
guint prop_id,
|
||||
@@ -326,5 +344,7 @@ mm_modem_iridium_gsm_class_init (MMModemIridiumGsmClass *klass)
|
||||
gsm_class->set_allowed_mode = set_allowed_mode;
|
||||
gsm_class->get_allowed_mode = get_allowed_mode;
|
||||
gsm_class->get_sim_iccid = get_sim_iccid;
|
||||
gsm_class->get_operator_name = get_operator_name;
|
||||
gsm_class->get_operator_code = get_operator_code;
|
||||
}
|
||||
|
||||
|
@@ -3236,7 +3236,7 @@ mm_generic_gsm_set_reg_status (MMGenericGsm *self,
|
||||
g_assert (MM_GENERIC_GSM_GET_CLASS (self)->get_operator_name);
|
||||
MM_GENERIC_GSM_GET_CLASS (self)->get_operator_name (self, get_operator_name_done, NULL);
|
||||
g_assert (MM_GENERIC_GSM_GET_CLASS (self)->get_operator_code);
|
||||
MM_GENERIC_GSM_GET_CLASS (self)->get_operator_name (self, get_operator_code_done, NULL);
|
||||
MM_GENERIC_GSM_GET_CLASS (self)->get_operator_code (self, get_operator_code_done, NULL);
|
||||
}
|
||||
|
||||
/* And update signal quality and access technology */
|
||||
|
Reference in New Issue
Block a user