From b4633324ef7b75e4f1d5dc56a13a7486164212c1 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta Date: Fri, 9 Feb 2024 10:50:09 +0530 Subject: [PATCH] Fix the bandwidth datatype in ubus call --- libbbfdm/dmtree/tr181/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbbfdm/dmtree/tr181/wifi.c b/libbbfdm/dmtree/tr181/wifi.c index 3492e7a8..74f475ac 100644 --- a/libbbfdm/dmtree/tr181/wifi.c +++ b/libbbfdm/dmtree/tr181/wifi.c @@ -1300,7 +1300,7 @@ static int get_radio_possible_channels(char *refparam, struct dmctx *ctx, void * DM_ASSERT(res, *value = ""); bandwidth = dmjson_get_value(res, 1, "bandwidth"); - dmubus_call(object, "channels", UBUS_ARGS{{"bandwidth", bandwidth, String}}, 1, &res); + dmubus_call(object, "channels", UBUS_ARGS{{"bandwidth", bandwidth, Integer}}, 1, &res); DM_ASSERT(res, *value = ""); *value = dmjson_get_value_array_all(res, ",", 1, "channels");