From f9de22032b23d0fb1683dab147e6972e270769e4 Mon Sep 17 00:00:00 2001 From: Amin Ben Romdhane Date: Mon, 18 Mar 2024 10:55:48 +0100 Subject: [PATCH] WiFi.DataElements: not necessary to provide 'bsta' when calling 'steer_backhaul' ubus method --- libbbfdm/dmtree/tr181/wifi.dataelements.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libbbfdm/dmtree/tr181/wifi.dataelements.c b/libbbfdm/dmtree/tr181/wifi.dataelements.c index ada2a2a5..eaeb9807 100644 --- a/libbbfdm/dmtree/tr181/wifi.dataelements.c +++ b/libbbfdm/dmtree/tr181/wifi.dataelements.c @@ -3389,16 +3389,9 @@ static int operate_WiFiDataElementsNetworkDeviceMultiAPDeviceBackhaul_SteerWiFiB goto end; } - char *bsta = dmjson_get_value(((struct dm_data *)data)->json_object, 3, "MultiAPDevice", "Backhaul", "MACAddress"); - if (DM_STRLEN(bsta) == 0) { - status = "Error_Invalid_Input"; - goto end; - } - dmubus_call("map.controller", "steer_backhaul", UBUS_ARGS{{"agent", agent, String}, {"target_bssid", target_bbs, String}, - {"bsta", bsta, String}, - {"timeout", time_out, Integer}}, 4, &res); + {"timeout", time_out, Integer}}, 3, &res); if (res == NULL) { status = "Error_Invalid_Input";