mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-02-21 11:52:42 +01:00
T#8435: Device.Hosts.Host.{i}.Layer1Interface is shown as empty for Ethernet Devices in some cases
This commit is contained in:
parent
8888e99b7b
commit
5278cabfc3
1 changed files with 7 additions and 1 deletions
|
|
@ -121,8 +121,14 @@ static int get_HostsHost_Layer1Interface(char *refparam, struct dmctx *ctx, void
|
|||
dmuci_get_value_by_section_string(iface_s, "device", &linker);
|
||||
adm_entry_get_linker_param(ctx, "Device.WiFi.Radio.", linker, value);
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
adm_entry_get_linker_param(ctx, "Device.Ethernet.Interface.", linker, value);
|
||||
if (!(*value) || (*value)[0] == 0) {
|
||||
struct uci_section *device_s = get_dup_section_in_config_opt("network", "device", "name", linker);
|
||||
dmuci_get_value_by_section_string(device_s, "ifname", &linker);
|
||||
adm_entry_get_linker_param(ctx, "Device.Ethernet.Interface.", linker, value);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue