SupportWpsMonitoring=True
SupportDnsMonitoring=True
SupportGatewayMonitoring=True
-SupportRtnlMonitoring=True
+SupportRtnlMonitoring=false
SupportArpMonitoring=True
-SupportIfaceMonitoring=True
\ No newline at end of file
+SupportIfaceMonitoring=True
+SupportRetryTxRateMonitoring=false
\ No newline at end of file
#define INM_ERR_STR_OUT_OF_MEMORY "net.inmmanager.Error.OutOfMemory"
#define INM_ERR_STR_OP_FAILED "net.inmmanager.Error.OperationFailed"
#define INM_ERR_STR_IN_PROGRESS "net.inmmanager.Error.InProgress"
+#define INM_ERR_STR_NOT_INITIALIZED "net.inmmanager.Error.NotInitialized"
#define INM_WIFI_SERVICE INM_MANAGER_SERVICE ".wifi"
#define INM_WIFI_IFACE INM_MANAGER_SERVICE ".wifi"
INM_ERR_STR_IN_PROGRESS);
}
+static void inm_error_not_initialized(GError **error)
+{
+ *error = g_dbus_error_new_for_dbus_error(
+ INM_ERR_STR_NOT_INITIALIZED,
+ INM_ERR_STR_NOT_INITIALIZED);
+}
+
void inm_error_set_gerror(inm_manager_error_e error_code, GError **error)
{
switch (error_code) {
case INM_MANAGER_ERROR_IN_PROGRESS:
inm_error_in_progress(error);
break;
+ case INM_MANAGER_ERROR_NOT_INITIALIZED:
+ inm_error_not_initialized(error);
+ break;
default:
INM_LOGI("Error Not handled [%d]", error_code);
inm_error_operation_failed(error);
__INM_FUNC_ENTER__;
ret = inm_rtnl_get_links_variant(&arg);
- if (ret != INM_MANAGER_ERROR_NONE) {
+
+ if (ret == INM_RTNL_ERROR_NOT_INITIALIZED) {
+ INM_LOGW("Not initialized");
+ __dbus_return_err(INM_MANAGER_ERROR_NOT_INITIALIZED, invocation);
+ __INM_FUNC_EXIT__;
+ return;
+ }
+ if (ret != INM_RTNL_ERROR_NONE) {
INM_LOGW("Failed to get links");
__dbus_return_err(INM_MANAGER_ERROR_OPERATION_FAILED, invocation);
__INM_FUNC_EXIT__;
static inline void __init_retry_tx_rate_monitor()
{
- int ret = 0;
-
__INM_FUNC_ENTER__;
+ if (!check_monitoring_flag("SupportRetryTxRateMonitoring")) {
+ INM_LOGI("Retry monitoring not supported");
+ return;
+ }
+
+ int ret = 0;
ret = inm_retry_tx_rate_monitor_start(__retry_tx_rate_cb, NULL);
if (ret != INM_MANAGER_ERROR_NONE)
INM_LOGW("inm_retry_tx_rate_monitor_start failed");