From c7a113dbd2547cb074823a0e9f1cc5629a54957c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 26 Oct 2009 16:57:21 -0500 Subject: Ignore gprs status when not attached/attaching --- src/gprs.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/gprs.c b/src/gprs.c index f08c1d0f..c321aac9 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -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); -- cgit v1.2.3