Fix the bandwidth datatype in ubus call

(cherry picked from commit b4633324ef)

b4633324 Fix the bandwidth datatype in ubus call
This commit is contained in:
Vivek Kumar Dutta 2024-02-09 10:50:09 +05:30
parent fffa5e45ae
commit 4dadf86362

View file

@ -1352,7 +1352,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");