bbf:Get country code parameter value for DSL from uci config

This commit is contained in:
sandeep 2022-02-09 19:08:39 +05:30 committed by Amin Ben Ramdhane
parent e764524629
commit 6b0509ef22

View file

@ -715,10 +715,10 @@ static int get_DSLLine_XTURVendor(char *refparam, struct dmctx *ctx, void *data,
return 0; return 0;
} }
/*#Device.DSL.Line.{i}.XTURCountry!UBUS:dsl.line.1/status//xtur_country*/ /*#Device.DSL.Line.{i}.XTURCountry!UCI:dsl/oem-parameters,oem/country_code*/
static int get_DSLLine_XTURCountry(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value) static int get_DSLLine_XTURCountry(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
{ {
*value = get_dsl_value_without_argument("dsl.line", ((struct dsl_line_args*)data)->id, "status", "xtur_country"); *value = dmuci_get_option_value_fallback_def("dsl", "oem", "country_code", "0000");
return 0; return 0;
} }