[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone4-368-g700ab82

Michael 'Mickey' Lauer mickey at vanille-media.de
Mon Feb 2 18:51:35 UTC 2009


The following commit has been merged in the master branch:
commit 0a4274c2ee05219cda87b66fa7ddf5b6a3d48c50
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Thu Dec 11 21:59:35 2008 +0100

    ogsmd: pdp: release context at the end of shutting down ppp, so that
    the next ppp invocation will find the virtual channel in command mode

diff --git a/ChangeLog b/ChangeLog
index d5faf05..cdeee2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 	* [ogsmd] Implemented org.freesmartphone.GSM.PDP.NetworkStatus()
 	* [ogsmd] Implemented org.freesmartphone.GSM.PDP.GetNetworkStatus()
 	* [ogsmd] Implemented org.freesmartphone.GSM.Network.TimeZoneReport()
+	* [ogsmd] Refactor PDP handling
 
 2008-12-06	Michael Lauer	<mickey at openmoko.org>
 
diff --git a/framework/subsystems/ogsmd/modems/abstract/pdp.py b/framework/subsystems/ogsmd/modems/abstract/pdp.py
index cacb55a..d121151 100644
--- a/framework/subsystems/ogsmd/modems/abstract/pdp.py
+++ b/framework/subsystems/ogsmd/modems/abstract/pdp.py
@@ -34,6 +34,7 @@ class Pdp( AbstractMediator ):
     def __init__( self, dbus_object, **kwargs ):
         AbstractMediator.__init__( self, dbus_object, None, None, **kwargs )
         self._callchannel = self._object.modem.communicationChannel( "PdpMediator" )
+        self._netchannel = self._object.modem.communicationChannel( "NetworkMediator" )
 
         self.state = "release" # initial state
         self.ppp = None
@@ -148,6 +149,10 @@ class Pdp( AbstractMediator ):
         os.system( "ifdown %s" % self.default_route )
         os.system( "ifup %s" % self.default_route )
 
+        # release context just to be sure that the next ppp setup will find the
+        # data port in command mode
+        self._netchannel.enqueue( "+CGACT=0", lambda a,b:None, lambda a,b:None )
+
     def _defaultRoute( self ):
         f = open( "/proc/net/route", 'r' )
         l = f.readlines()

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list