/*****************************************************************************
* Macros and Typedefs
*****************************************************************************/
-#define STC_DBUS_REPLY_TIMEOUT (120 * 1000)
+#define STC_DBUS_REPLY_TIMEOUT (5 * 1000)
#define STC_MANAGER_SERVICE "net.stc"
#define STC_MANAGER_STATS_INTERFACE STC_MANAGER_SERVICE ".statistics"
restriction_rule->month_start_date);
}
- STC_RETURN_VAL_IF(restriction_rule->roaming_type > STC_ROAMING_ENABLED,
+ STC_RETURN_VAL_IF(restriction_rule->roaming_type > STC_ROAMING_DISABLED,
STC_ERROR_INVALID_PARAMETER,
"Roaming type is not valid [%s]",
_stc_convert_roaming_to_string(restriction_rule->roaming_type));
"Invalid month start date [%d]",
restriction_rule->month_start_date);
- STC_RETURN_VAL_IF(restriction_rule->roaming_type > STC_ROAMING_ENABLED,
+ STC_RETURN_VAL_IF(restriction_rule->roaming_type > STC_ROAMING_DISABLED,
STC_ERROR_INVALID_PARAMETER,
"Roaming type is not valid [%s]",
_stc_convert_roaming_to_string(restriction_rule->roaming_type));
"Invalid rx limit [%"PRId64"] bytes",
restriction_rule->data_warn_limit);
- STC_RETURN_VAL_IF(restriction_rule->roaming_type > STC_ROAMING_ENABLED,
+ STC_RETURN_VAL_IF(restriction_rule->roaming_type > STC_ROAMING_DISABLED,
STC_ERROR_INVALID_PARAMETER,
"Roaming type is not valid [%d]",
restriction_rule->roaming_type);
"Invalid rx limit [%"PRId64"] bytes",
restriction_rule->data_warn_limit);
- STC_RETURN_VAL_IF(restriction_rule->roaming_type > STC_ROAMING_ENABLED,
+ STC_RETURN_VAL_IF(restriction_rule->roaming_type > STC_ROAMING_DISABLED,
STC_ERROR_INVALID_PARAMETER,
"Roaming type is not valid [%d]",
restriction_rule->roaming_type);
return ret;
}
- if (roaming <= STC_ROAMING_ENABLED) {
+ if (roaming == STC_ROAMING_ENABLED || roaming == STC_ROAMING_DISABLED) {
THREAD_IN;
ret = stc_restriction_rule_set_roaming_type(g_restriction_rule_h, roaming);
THREAD_OUT;
return ret;
}
- if (roaming <= STC_ROAMING_ENABLED) {
+ if (roaming == STC_ROAMING_ENABLED || roaming == STC_ROAMING_DISABLED) {
ret = stc_restriction_rule_set_roaming_type(rule_h, roaming);
if (ret == STC_ERROR_NONE)
msg(LOG_GREEN "Success to set roaming type" LOG_END);