iface-modem-messaging: automatically detect the best default storage
Instead of letting the plugins specify a default storage to use, just look at the supported ones and use the best one. "MT is preferred over "ME" or "SM", as "MT=ME+SM"
This commit is contained in:
@@ -1163,7 +1163,6 @@ mm_broadband_modem_cinterion_new (const gchar *device,
|
||||
MM_BASE_MODEM_PLUGIN, plugin,
|
||||
MM_BASE_MODEM_VENDOR_ID, vendor_id,
|
||||
MM_BASE_MODEM_PRODUCT_ID, product_id,
|
||||
MM_IFACE_MODEM_MESSAGING_SMS_DEFAULT_STORAGE, MM_SMS_STORAGE_MT,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
@@ -410,8 +410,6 @@ mm_broadband_modem_iridium_new (const gchar *device,
|
||||
MM_BASE_MODEM_MAX_TIMEOUTS, 3,
|
||||
/* Only CS network is supported by the Iridium modem */
|
||||
MM_IFACE_MODEM_3GPP_PS_NETWORK_SUPPORTED, FALSE,
|
||||
/* 'ME' storage not supported */
|
||||
MM_IFACE_MODEM_MESSAGING_SMS_DEFAULT_STORAGE, MM_SMS_STORAGE_SM,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
@@ -432,8 +432,6 @@ mm_broadband_modem_novatel_lte_new (const gchar *device,
|
||||
MM_BASE_MODEM_PLUGIN, plugin,
|
||||
MM_BASE_MODEM_VENDOR_ID, vendor_id,
|
||||
MM_BASE_MODEM_PRODUCT_ID, product_id,
|
||||
/* 'ME' storage not supported */
|
||||
MM_IFACE_MODEM_MESSAGING_SMS_DEFAULT_STORAGE, MM_SMS_STORAGE_SM,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
@@ -753,8 +753,6 @@ mm_broadband_modem_novatel_new (const gchar *device,
|
||||
MM_BASE_MODEM_PLUGIN, plugin,
|
||||
MM_BASE_MODEM_VENDOR_ID, vendor_id,
|
||||
MM_BASE_MODEM_PRODUCT_ID, product_id,
|
||||
/* 'ME' storage not supported */
|
||||
MM_IFACE_MODEM_MESSAGING_SMS_DEFAULT_STORAGE, MM_SMS_STORAGE_SM,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user