diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-08-18 20:56:00 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-18 20:56:00 -0500 |
commit | 06f56000ffe05db55cdee562859e52dce8b8f247 (patch) | |
tree | 4671b001a4491f2f7427fccca0f2f6e954778070 /src | |
parent | 84bdd03683790f50e81ec6753c3655d5fef4199f (diff) | |
download | ofono-06f56000ffe05db55cdee562859e52dce8b8f247.tar.bz2 |
gprs: Update Attached when Auto-Attached succeded
Diffstat (limited to 'src')
-rw-r--r-- | src/gprs.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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: |