From 992c03340b81869c0ac3d47201fbd0349004694b Mon Sep 17 00:00:00 2001 From: Anjan Chanda <anjan.chanda@iopsys.eu> Date: Wed, 8 Jun 2022 16:41:42 +0200 Subject: [PATCH] replace more ubus_lookup_id() -> bus_wait_for_object_timeout() --- src/cntlr_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cntlr_map.c b/src/cntlr_map.c index 1c01f095..61f86348 100644 --- a/src/cntlr_map.c +++ b/src/cntlr_map.c @@ -653,7 +653,7 @@ int handle_ap_autoconfig_search(void *cntlr, struct cmdu_buff *rx_cmdu) "enabled", "0", UCI_TYPE_STRING); - res = ubus_lookup_id(c->bus, "uci", &uci_obj); + res = bus_wait_for_object_timeout(c->bus, "uci", 0, &uci_obj); if (!res) { struct blob_buf bb = {0}; @@ -758,7 +758,7 @@ int handle_ap_autoconfig_response(void *cntlr, struct cmdu_buff *rx_cmdu) trace("Disable and exit\n"); set_value_by_string("mapcontroller", "controller", "enabled", "0", UCI_TYPE_STRING); - res = ubus_lookup_id(c->bus, "uci", &uci_obj); + res = bus_wait_for_object_timeout(c->bus, "uci", 0, &uci_obj); if (!res) { struct blob_buf bb = {0}; -- GitLab