diff --git a/dmtree/tr181/ethernet.c b/dmtree/tr181/ethernet.c index 825eda77..7b87cd10 100644 --- a/dmtree/tr181/ethernet.c +++ b/dmtree/tr181/ethernet.c @@ -1050,6 +1050,9 @@ static int set_EthernetLink_LowerLayers(char *refparam, struct dmctx *ctx, void // Get the device name char *device = get_device(interface); + //Generate the device name for bridge as br- if it is not available via ubus yet. + if (*device == '\0') + dmasprintf(&device, "br-%s", interface); // Get dmmap section dmuci_set_value_by_section(((struct dm_args *)data)->section, "device", device); dmuci_set_value_by_section(((struct dm_args *)data)->section, "section_name", interface);