gsm: retry SIM ID if we didn't get it before card was enabled

This commit is contained in:
Dan Williams
2010-10-25 21:18:10 -05:00
parent 6f809b589b
commit 610a907d5c
+4
View File
@@ -1231,6 +1231,10 @@ mm_generic_gsm_enable_complete (MMGenericGsm *self,
/* Try to enable XON/XOFF flow control */
mm_at_serial_port_queue_command (priv->primary, "+IFC=1,1", 3, NULL, NULL);
/* Try one more time to get the SIM ID */
if (!priv->simid)
MM_GENERIC_GSM_GET_CLASS (self)->get_sim_iccid (self, get_iccid_done, NULL);
/* Get allowed mode */
if (MM_GENERIC_GSM_GET_CLASS (self)->get_allowed_mode)
MM_GENERIC_GSM_GET_CLASS (self)->get_allowed_mode (self, get_allowed_mode_done, NULL);