mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
T#7627: Untagged value of wan port is changed to tagged after interface is created
This commit is contained in:
parent
7739a90d11
commit
59c37e36f9
1 changed files with 2 additions and 13 deletions
|
|
@ -885,23 +885,12 @@ end:
|
|||
static void get_bridge_vlanport_device_section(struct uci_section *dmmap_section, struct uci_section **device_section)
|
||||
{
|
||||
struct uci_section *s = NULL;
|
||||
char *name = NULL, *device_name = NULL;
|
||||
|
||||
/* Get name from dmmap section */
|
||||
dmuci_get_value_by_section_string(dmmap_section, "name", &name);
|
||||
|
||||
if (name && name[0] != '\0') {
|
||||
/* Find the device network section corresponding to this name */
|
||||
uci_foreach_option_eq("network", "device", "name", name, s) {
|
||||
*device_section = s;
|
||||
return;
|
||||
}
|
||||
}
|
||||
char *device_name = NULL;
|
||||
|
||||
/* Get section_name from dmmap section */
|
||||
dmuci_get_value_by_section_string(dmmap_section, "device_name", &device_name);
|
||||
|
||||
if (device_name && device_name[0] != '\0') {
|
||||
if (DM_STRLEN(device_name)) {
|
||||
/* Find the device network section corresponding to this device_name */
|
||||
uci_foreach_sections("network", "device", s) {
|
||||
if (strcmp(section_name(s), device_name) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue