aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-18 20:26:16 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-06 20:07:25 +0200
commit01e85aa1efe217a5ccc6c3627d1f2bf76388947b (patch)
tree07bf93034c95afc08eb12a5bc8de2f66a16eda81
parent4f0157cec4a25af4c6d34fa4fcbe7dd3aad39ef9 (diff)
samsung: don't hardcode supported modes
Don't try to implement supported modes loading if we're just hardcoding the values; the proper way would be to run the %IPSYS=? test command and parse the results.
-rw-r--r--plugins/samsung/mm-broadband-modem-samsung.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/plugins/samsung/mm-broadband-modem-samsung.c b/plugins/samsung/mm-broadband-modem-samsung.c
index b7c07148..56886973 100644
--- a/plugins/samsung/mm-broadband-modem-samsung.c
+++ b/plugins/samsung/mm-broadband-modem-samsung.c
@@ -480,35 +480,6 @@ set_bands (MMIfaceModem *self,
ctx);
}
-static MMModemMode
-load_supported_modes_finish (MMIfaceModem *self,
- GAsyncResult *res,
- GError **error)
-{
- return (MMModemMode) GPOINTER_TO_UINT (g_simple_async_result_get_op_res_gpointer (
- G_SIMPLE_ASYNC_RESULT (res)));
-}
-
-static void
-load_supported_modes (MMIfaceModem *self,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- GSimpleAsyncResult *result;
-
- result = g_simple_async_result_new (G_OBJECT (self),
- callback,
- user_data,
- load_supported_modes);
-
- g_simple_async_result_set_op_res_gpointer (result,
- GUINT_TO_POINTER (MM_MODEM_MODE_2G |
- MM_MODEM_MODE_3G),
- NULL);
- g_simple_async_result_complete_in_idle (result);
- g_object_unref (result);
-}
-
MMBroadbandModemSamsung *
mm_broadband_modem_samsung_new (const gchar *device,
const gchar *driver,
@@ -968,8 +939,6 @@ iface_modem_init (MMIfaceModem *iface)
iface->load_current_bands_finish = load_current_bands_finish;
iface->set_bands = set_bands;
iface->set_bands_finish = set_bands_finish;
- iface->load_supported_modes = load_supported_modes;
- iface->load_supported_modes_finish = load_supported_modes_finish;
iface->load_access_technologies = load_access_technologies;
iface->load_access_technologies_finish = load_access_technologies_finish;
iface->load_unlock_retries = load_unlock_retries;