iridium: fix operator name and code to be reported

This commit is contained in:
Aleksander Morgado
2011-06-07 14:19:24 +02:00
parent 3a7f970931
commit 4b0cd28baf
2 changed files with 21 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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 */