Skip to content
Snippets Groups Projects
Commit ce4add33 authored by Amin Ben Romdhane's avatar Amin Ben Romdhane
Browse files

Align bridge port mapping to WiFi.SSID

parent f1422e4d
Branches devel
No related tags found
1 merge request!18Align bridge port mapping to WiFi.SSID
Pipeline #209169 passed
......@@ -263,11 +263,18 @@ static int browseInterfaceStackInst(struct dmctx *dmctx, DMNODE *parent_node, vo
dmuci_get_value_by_section_string(port_s, "port", &port);
wl_s = get_dup_section_in_config_opt("wireless", "wifi-iface", "ifname", port);
wl_s = get_dup_section_in_dmmap_opt("dmmap_wireless", "ssid", "ap_section_name", section_name(wl_s));
if (wl_s != NULL) {
char *ssid = NULL, *device = NULL;
if (create_interface_stack_instance(dmctx, parent_node, &curr_interfacestack_data, wl_s,
"Device.WiFi.SSID.", "ssid_instance", "ssid_alias", &idx))
goto end;
dmuci_get_value_by_section_string(wl_s, "device", &device);
dmuci_get_value_by_section_string(wl_s, "ssid", &ssid);
wl_s = get_section_in_dmmap_with_options_eq("dmmap_wireless", "ssid", "device", device, "ssid", ssid);
if (create_interface_stack_instance(dmctx, parent_node, &curr_interfacestack_data, wl_s,
"Device.WiFi.SSID.", "ssid_instance", "ssid_alias", &idx))
goto end;
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment