this makes enable_vlan=0 practical for vlan passthrough
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29719
3c298f89-4303-0410-b956-
a3cf2f4a3e73
bool port4_phy;
char buf[80];
bool port4_phy;
char buf[80];
/* all fields below are cleared on reset */
bool vlan;
u16 vlan_id[AR8X16_MAX_VLANS];
/* all fields below are cleared on reset */
bool vlan;
u16 vlan_id[AR8X16_MAX_VLANS];
ar8216_vtu_op(priv, AR8216_VTU_OP_FLUSH, 0);
memset(portmask, 0, sizeof(portmask));
ar8216_vtu_op(priv, AR8216_VTU_OP_FLUSH, 0);
memset(portmask, 0, sizeof(portmask));
/* calculate the port destination masks and load vlans
* into the vlan translation unit */
for (j = 0; j < AR8X16_MAX_VLANS; j++) {
/* calculate the port destination masks and load vlans
* into the vlan translation unit */
for (j = 0; j < AR8X16_MAX_VLANS; j++) {
if (priv->chip == AR8316) {
ret = ar8316_hw_init(priv);
if (ret) {
if (priv->chip == AR8316) {
ret = ar8316_hw_init(priv);
if (ret) {
dev->netdev_ops = &priv->ndo;
}
dev->netdev_ops = &priv->ndo;
}