blobmsg_for_each_attr(cur, vlans, rem) {
struct bridge_vlan_hotplug_port *port;
- uint16_t flags = BRVLAN_F_UNTAGGED;
+ uint16_t flags = 0;
char *name_buf;
unsigned int vid;
char *end;
for (end++; *end; end++) {
switch (*end) {
- case 't':
- flags &= ~BRVLAN_F_UNTAGGED;
+ case 'u':
+ flags |= BRVLAN_F_UNTAGGED;
break;
case '*':
flags |= BRVLAN_F_PVID;
blob_buf_init(&b, 0);
a = blobmsg_open_array(&b, "vlans");
- blobmsg_printf(&b, NULL, "%d", vldev->id);
+ blobmsg_printf(&b, NULL, "%d:u", vldev->id);
if (vlan && blobmsg_len(vlan))
blob_put_raw(&b, blobmsg_data(vlan), blobmsg_len(vlan));
blobmsg_close_array(&b, a);
blob_buf_init(&b, 0);
a = blobmsg_open_array(&b, "vlans");
- blobmsg_printf(&b, NULL, "%d", mvdev->config.vid);
+ blobmsg_printf(&b, NULL, "%d:u", mvdev->config.vid);
if (vlan && blobmsg_len(vlan))
blob_put_raw(&b, blobmsg_data(vlan), blobmsg_len(vlan));
blobmsg_close_array(&b, a);