summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gprs.c5
1 files changed, 5 insertions, 0 deletions
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);