diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-10-26 16:57:21 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-10-26 16:57:21 -0500 |
commit | c7a113dbd2547cb074823a0e9f1cc5629a54957c (patch) | |
tree | 39fb0fe622f1f7c8eb691fd2865f233cbf11f01a | |
parent | d5fe6dce96b5c8b0a4fa324dd9032d348022a63c (diff) | |
download | ofono-c7a113dbd2547cb074823a0e9f1cc5629a54957c.tar.bz2 |
Ignore gprs status when not attached/attaching
-rw-r--r-- | src/gprs.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -985,6 +985,11 @@ static void set_registration_technology(struct ofono_gprs *gprs, void ofono_gprs_status_notify(struct ofono_gprs *gprs, int status, int lac, int ci, int tech) { + /* If we are not attached and haven't tried to attach, ignore */ + if (gprs->driver_attached == FALSE && + (gprs->flags & GPRS_FLAG_ATTACHING) == 0) + return; + if (gprs->status != status) set_registration_status(gprs, status); |