From 06f56000ffe05db55cdee562859e52dce8b8f247 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 18 Aug 2010 20:56:00 -0500 Subject: gprs: Update Attached when Auto-Attached succeded --- src/gprs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gprs.c b/src/gprs.c index f384dfa8..37afb993 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -1388,11 +1388,12 @@ void ofono_gprs_detached_notify(struct ofono_gprs *gprs) void ofono_gprs_status_notify(struct ofono_gprs *gprs, int status) { gprs->status = status; - gprs_attached_update(gprs); if (status != NETWORK_REGISTRATION_STATUS_REGISTERED && - status != NETWORK_REGISTRATION_STATUS_ROAMING) + status != NETWORK_REGISTRATION_STATUS_ROAMING) { + gprs_attached_update(gprs); return; + } /* We registered without being powered */ if (gprs->powered == FALSE) @@ -1403,6 +1404,8 @@ void ofono_gprs_status_notify(struct ofono_gprs *gprs, int status) goto detach; gprs->driver_attached = TRUE; + gprs_attached_update(gprs); + return; detach: -- cgit v1.2.3