diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-02-16 13:08:46 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-02-16 13:04:45 +0000 |
commit | 97c50e53af3d45617d5208725b381a2b55f88136 (patch) | |
tree | c61b6101ab73cff44c573dee4913d71d95518ace /plugins/fibocom/mm-plugin-fibocom.c | |
parent | 499cdf79dcd54a0ad00bff9d4525bdb291ef840e (diff) |
fibocom: detect ID_MM_FIBOCOM_INITIAL_EPS_OFF_ON on runtime
We won't create a full new different modem object based on whether the
ID_MM_FIBOCOM_INITIAL_EPS_OFF_ON tag is found or not. Instead, we
always will create the same object type, and detect whether the OFF/ON
cycle is required during runtime.
Diffstat (limited to 'plugins/fibocom/mm-plugin-fibocom.c')
-rw-r--r-- | plugins/fibocom/mm-plugin-fibocom.c | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/plugins/fibocom/mm-plugin-fibocom.c b/plugins/fibocom/mm-plugin-fibocom.c index a8370848..a9816d92 100644 --- a/plugins/fibocom/mm-plugin-fibocom.c +++ b/plugins/fibocom/mm-plugin-fibocom.c @@ -42,22 +42,6 @@ MM_PLUGIN_DEFINE_MINOR_VERSION /*****************************************************************************/ -#if defined WITH_MBIM -static gboolean -mm_port_probe_list_has_initial_eps_off_on_tag (GList *probes) -{ - GList *l; - - for (l = probes; l; l = g_list_next (l)) { - if (mm_kernel_device_get_global_property_as_boolean (mm_port_probe_peek_port (MM_PORT_PROBE (l->data)), - "ID_MM_FIBOCOM_INITIAL_EPS_OFF_ON")) - return TRUE; - } - - return FALSE; -} -#endif - static MMBaseModem * create_modem (MMPlugin *self, const gchar *uid, @@ -71,20 +55,11 @@ create_modem (MMPlugin *self, if (mm_port_probe_list_has_mbim_port (probes)) { if (mm_port_probe_list_is_xmm (probes)) { mm_obj_dbg (self, "MBIM-powered XMM-based Fibocom modem found..."); - if (mm_port_probe_list_has_initial_eps_off_on_tag (probes)) { - mm_obj_dbg (self, "initial eps need to toggle modem power"); - return MM_BASE_MODEM (mm_broadband_modem_mbim_xmm_fibocom_new (uid, - drivers, - mm_plugin_get_name (self), - vendor, - product)); - } - - return MM_BASE_MODEM (mm_broadband_modem_mbim_xmm_new (uid, - drivers, - mm_plugin_get_name (self), - vendor, - product)); + return MM_BASE_MODEM (mm_broadband_modem_mbim_xmm_fibocom_new (uid, + drivers, + mm_plugin_get_name (self), + vendor, + product)); } mm_obj_dbg (self, "MBIM-powered Fibocom modem found..."); return MM_BASE_MODEM (mm_broadband_modem_mbim_new (uid, |