After receive "NW DETACH"/"ME DETACH" unsolicited message, try to re-attach
according current registration status. If it is not allowed, re-attach
action will be triggered when registration status changed.

---
 src/gprs.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/gprs.c b/src/gprs.c
index acbfa56..11dcc06 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -2089,11 +2089,7 @@ void ofono_gprs_detached_notify(struct ofono_gprs *gprs)
        gprs->driver_attached = FALSE;
        gprs_attached_update(gprs);
 
-       /*
-        * TODO: The network forced a detach, we should wait for some time
-        * and try to re-attach.  This might also be related to a suspend
-        * event while voicecall is active.
-        */
+       gprs_netreg_update(gprs);
 }
 
 void ofono_gprs_status_notify(struct ofono_gprs *gprs, int status)
-- 
1.7.5

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to