diff options
| author | Michael Biebl <biebl@debian.org> | 2010-01-21 23:38:11 +0000 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2010-01-21 23:38:11 +0000 |
| commit | 0f28ae7f4c00829b3ab82dff69fe50b252bb9e0e (patch) | |
| tree | b3a45b91a4ff197970ecf6658e758658efc026ad | |
| parent | eea01b4ae98928210c768fd90d1336a0dc8b1160 (diff) | |
Drop obsolete patch. Modem handling is handled in modemmanager now
git-svn-id: svn+ssh://svn.debian.org/svn/pkg-utopia/packages/experimental/networkmanager@3396 ceb527fc-18e6-0310-9fe2-813c157c29e7
| -rw-r--r-- | debian/patches/03-F3507g.patch | 128 | ||||
| -rw-r--r-- | debian/patches/series | 1 |
2 files changed, 0 insertions, 129 deletions
diff --git a/debian/patches/03-F3507g.patch b/debian/patches/03-F3507g.patch deleted file mode 100644 index d475a874..00000000 --- a/debian/patches/03-F3507g.patch +++ /dev/null @@ -1,128 +0,0 @@ -Index: network-manager-0.7.0/src/nm-gsm-device.c -=================================================================== ---- network-manager-0.7.0.orig/src/nm-gsm-device.c 2008-11-12 22:29:43.000000000 +0100 -+++ network-manager-0.7.0/src/nm-gsm-device.c 2008-12-16 10:03:48.000000000 +0100 -@@ -51,6 +51,15 @@ - guint init_tries; - } NMGsmDevicePrivate; - -+/* Various possible init sequences */ -+const gchar *modem_init_sequences[] = { -+ "ATZ E0 V1 X4 &C1 +FCLASS=0", -+ "ATZ E0 V1 &C1", -+ "AT&F E0 V1", -+ NULL -+}; -+ -+ - enum { - PROP_0, - PROP_MONITOR_IFACE, -@@ -69,7 +78,7 @@ - static void enter_pin (NMGsmDevice *device, NMGsmSecret secret_type, gboolean retry); - static void manual_registration (NMGsmDevice *device); - static void automatic_registration (NMGsmDevice *device); --static void init_modem (NMSerialDevice *device, gpointer user_data); -+static void init_modem (NMSerialDevice *device); - - NMGsmDevice * - nm_gsm_device_new (const char *udi, -@@ -431,7 +440,7 @@ - const char *responses[] = { "+CREG: 0,0", "+CREG: 0,1", "+CREG: 0,2", "+CREG: 0,3", "+CREG: 0,5", NULL }; - const char *terminators[] = { "OK", "ERROR", "ERR", NULL }; - -- modem_wait_for_reply (device, "AT+CREG?", 15, responses, terminators, automatic_registration_response, NULL); -+ modem_wait_for_reply (device, "AT+CREG?", 25, responses, terminators, automatic_registration_response, NULL); - } - - static void -@@ -496,13 +505,14 @@ - static void - init_modem_full (NMGsmDevice *device) - { -+ NMGsmDevicePrivate *priv = NM_GSM_DEVICE_GET_PRIVATE (device); - const char *responses[] = { "OK", "ERROR", "ERR", NULL }; - - /* Send E0 too because some devices turn echo back on after CPIN which - * just breaks stuff since echo-ed commands are interpreted as replies. - * rh #456770 - */ -- modem_wait_for_reply (device, "ATZ E0 V1 X4 &C1 +FCLASS=0", 10, responses, responses, init_full_done, NULL); -+ modem_wait_for_reply (device, modem_init_sequences[priv->init_tries], 10, responses, responses, init_full_done, NULL); - } - - static void -@@ -647,7 +657,6 @@ - - switch (reply_index) { - case 0: -- priv->init_tries = 0; - check_pin (NM_GSM_DEVICE (device)); - break; - case -1: -@@ -657,35 +666,26 @@ - NM_DEVICE_STATE_REASON_MODEM_INIT_FAILED); - break; - default: -- switch (priv->init_tries) { -- case 0: -- nm_warning ("Trying alternate modem initialization"); -- init_modem (device, "ATZ E0 V1 &C1"); -- break; -- case 1: -- nm_warning ("Trying second alternate modem initialization"); -- init_modem (device, "AT&F E0 V1"); -- break; -- default: -+ priv->init_tries++; -+ if (modem_init_sequences[priv->init_tries] != NULL) { -+ nm_warning ("Trying alternate modem initialization (%d)", -+ priv->init_tries); -+ init_modem (device); -+ } else { - nm_warning ("Modem initialization failed"); - nm_device_state_changed (NM_DEVICE (device), - NM_DEVICE_STATE_FAILED, - NM_DEVICE_STATE_REASON_MODEM_INIT_FAILED); -- break; - } -- priv->init_tries++; -- return; - } - } - - static void --init_modem (NMSerialDevice *device, gpointer user_data) -+init_modem (NMSerialDevice *device) - { -+ NMGsmDevicePrivate *priv = NM_GSM_DEVICE_GET_PRIVATE (device); - const char *responses[] = { "OK", "ERROR", "ERR", NULL }; -- const char *init_string = user_data; -- -- if (!init_string) -- init_string = "ATZ E0 V1 X4 &C1 +FCLASS=0"; -+ const char *init_string = modem_init_sequences[priv->init_tries]; - - modem_wait_for_reply (NM_GSM_DEVICE (device), init_string, 10, responses, responses, init_done, NULL); - } -@@ -706,7 +706,7 @@ - - NM_GSM_DEVICE_GET_PRIVATE (device)->init_tries = 0; - -- id = nm_serial_device_flash (serial_device, 100, init_modem, NULL); -+ id = nm_serial_device_flash (serial_device, 100, (NMSerialFlashFn) init_modem, NULL); - if (!id) - *reason = NM_DEVICE_STATE_REASON_UNKNOWN; - -Index: network-manager-0.7.0/src/nm-serial-device.c -=================================================================== ---- network-manager-0.7.0.orig/src/nm-serial-device.c 2008-11-20 18:12:16.000000000 +0100 -+++ network-manager-0.7.0/src/nm-serial-device.c 2008-12-16 10:03:48.000000000 +0100 -@@ -415,6 +415,7 @@ - } - - priv->channel = g_io_channel_unix_new (priv->fd); -+ g_io_channel_set_encoding (priv->channel, NULL, NULL); - - return TRUE; - } diff --git a/debian/patches/series b/debian/patches/series index 3ad97cdd..629d0956 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,2 @@ 02-dbus_access_network_manager.patch -#03-F3507g.patch #20-manual_means_always_online.patch |