{
struct ofono_call_barring *cb = data;
- if (cb->pending)
+ if (cb->pending || __ofono_ussd_is_busy(cb->ussd))
return __ofono_error_busy(msg);
if (!cb->driver->query)
int cls;
int mode;
- if (cb->pending)
+ if (cb->pending || __ofono_ussd_is_busy(cb->ussd))
return __ofono_error_busy(msg);
if (!dbus_message_iter_init(msg, &iter))
if (!cb->driver->set)
return __ofono_error_not_implemented(msg);
- if (cb->pending)
+ if (cb->pending || __ofono_ussd_is_busy(cb->ussd))
return __ofono_error_busy(msg);
if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &passwd,
if (!cb->driver->set_passwd)
return __ofono_error_not_implemented(msg);
- if (cb->pending)
+ if (cb->pending || __ofono_ussd_is_busy(cb->ussd))
return __ofono_error_busy(msg);
if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &old_passwd,