Hi,
should fsogsmd not detach GPRS after call GSM.PDP.DeactivateContext()?
Because when i call GSM.PDP.ActivateContext() then i get "pdp.registration":
"home"
that is OK but after GSM.PDP.DeactivateContext() the pdp.registration is not
changed to unregister.
something like this (sorry that is only to show what i mean):
diff --git a/fsogsmd/src/lib/atpdp.vala b/fsogsmd/src/lib/atpdp.vala
index 3f29341..d9d085f 100644
--- a/fsogsmd/src/lib/atpdp.vala
+++ b/fsogsmd/src/lib/atpdp.vala
@@ -39,6 +39,7 @@ public class FsoGsm.AtPdpHandler : FsoGsm.PdpHandler
logger.debug( "ppp has been stopped" );
shutdownTransport();
ppp = null;
+ detachGPRS();
// inform base class
disconnected();
}
@@ -87,6 +88,13 @@ public class FsoGsm.AtPdpHandler : FsoGsm.PdpHandler
{
}
+ protected async virtual void detachGPRS()
+ {
+ var cmd = theModem.createAtCommand<PlusCGATT>( "+CGATT" );
+ var response = yield theModem.processAtCommandAsync( cmd, cmd.issue( 0
) );
+ checkResponseOk( cmd, response );
+ }
+
//
// public API
//
greets
Michael
_______________________________________________
Smartphones-userland mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland