This adds support for adding extra tagged VLANs in addition to the primary one
Signed-off-by: Felix Fietkau <nbd@nbd.name>
blob_buf_init(&b, 0);
a = blobmsg_open_array(&b, "vlans");
blobmsg_printf(&b, NULL, "%d", vldev->id);
+ if (vlan && blobmsg_len(vlan))
+ blob_put_raw(&b, blobmsg_data(vlan), blobmsg_len(vlan));
blobmsg_close_array(&b, a);
if (add)
blob_buf_init(&b, 0);
a = blobmsg_open_array(&b, "vlans");
blobmsg_printf(&b, NULL, "%d", mvdev->config.vid);
+ if (vlan && blobmsg_len(vlan))
+ blob_put_raw(&b, blobmsg_data(vlan), blobmsg_len(vlan));
blobmsg_close_array(&b, a);
if (add)