~network-manager/network-manager/ubuntu.intrepid.07

« back to all changes in this revision

Viewing changes to debian/patches/lp303142_more_time_for_automatic_registration.patch

  • Committer: Alexander Sack
  • Date: 2008-11-28 12:07:10 UTC
  • Revision ID: asac@jwsdot.com-20081128120710-x51rnw5b2ksg78ly
* fix LP: #303142 - 3G [Option] some modems take a while time to register on
  network (CREG); we use g_timeout_add instead of _idle_add to give the
  modem some rest during registration phase.
  - add debian/patches/lp303142_more_time_for_automatic_registration.patch
  - update debian/patches/series

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=== modified file 'src/nm-gsm-device.c'
 
2
--- a/src/nm-gsm-device.c       2008-10-02 17:11:42 +0000
 
3
+++ b/src/nm-gsm-device.c       2008-11-03 15:54:33 +0000
 
4
@@ -323,17 +323,17 @@ automatic_registration_again (gpointer d
 
5
 static void
 
6
 schedule_automatic_registration_again (NMGsmDevice *self)
 
7
 {
 
8
        NMGsmDevicePrivate *priv = NM_GSM_DEVICE_GET_PRIVATE (self);
 
9
 
 
10
        if (priv->pending_id)
 
11
                g_source_remove (priv->pending_id);
 
12
 
 
13
-       priv->pending_id = g_idle_add (automatic_registration_again, self);
 
14
+       priv->pending_id = g_timeout_add (500, automatic_registration_again, self);
 
15
 }
 
16
 
 
17
 static void
 
18
 automatic_registration_response (NMSerialDevice *device,
 
19
                                  int reply_index,
 
20
                                  const char *reply,
 
21
                                  gpointer user_data)
 
22
 {
 
23