summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dbus.c7
-rw-r--r--src/gprs.c2
-rw-r--r--src/ofono.h1
3 files changed, 9 insertions, 1 deletions
diff --git a/src/dbus.c b/src/dbus.c
index 25af2ec3..9a196c16 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -322,6 +322,13 @@ DBusMessage *__ofono_error_not_attached(DBusMessage *msg)
"GPRS is not attached");
}
+DBusMessage *__ofono_error_attach_in_progress(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg,
+ DBUS_GSM_ERROR_INTERFACE ".AttachInProgress",
+ "GPRS Attach is in progress");
+}
+
void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply)
{
DBusConnection *conn = ofono_dbus_get_connection();
diff --git a/src/gprs.c b/src/gprs.c
index 7c316793..b5332095 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -607,7 +607,7 @@ static DBusMessage *pri_set_property(DBusConnection *conn,
return __ofono_error_not_attached(msg);
if (ctx->gprs->flags & GPRS_FLAG_ATTACHING)
- return __ofono_error_busy(msg);
+ return __ofono_error_attach_in_progress(msg);
if (gc == NULL || gc->driver->activate_primary == NULL ||
gc->driver->deactivate_primary == NULL)
diff --git a/src/ofono.h b/src/ofono.h
index 037c4039..266ed880 100644
--- a/src/ofono.h
+++ b/src/ofono.h
@@ -52,6 +52,7 @@ DBusMessage *__ofono_error_timed_out(DBusMessage *msg);
DBusMessage *__ofono_error_sim_not_ready(DBusMessage *msg);
DBusMessage *__ofono_error_in_use(DBusMessage *msg);
DBusMessage *__ofono_error_not_attached(DBusMessage *msg);
+DBusMessage *__ofono_error_attach_in_progress(DBusMessage *msg);
void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply);