WiFi.DataElements: not necessary to provide 'bsta' when calling 'steer_backhaul' ubus method

This commit is contained in:
Amin Ben Romdhane 2024-03-18 10:55:48 +01:00
parent 0273b12ea4
commit f9de22032b

View file

@ -3389,16 +3389,9 @@ static int operate_WiFiDataElementsNetworkDeviceMultiAPDeviceBackhaul_SteerWiFiB
goto end; 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}, dmubus_call("map.controller", "steer_backhaul", UBUS_ARGS{{"agent", agent, String},
{"target_bssid", target_bbs, String}, {"target_bssid", target_bbs, String},
{"bsta", bsta, String}, {"timeout", time_out, Integer}}, 3, &res);
{"timeout", time_out, Integer}}, 4, &res);
if (res == NULL) { if (res == NULL) {
status = "Error_Invalid_Input"; status = "Error_Invalid_Input";