diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-05-27 17:09:41 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-05-27 17:09:41 +0000 |
commit | d57d3c1a109e447653b292f7a4d518d59cb42d14 (patch) | |
tree | ec8f1e4f16a3dca1d3c93d4130e99a34cfb1e221 /target/linux/generic/files/drivers/net/phy/rtl8367.c | |
parent | c9b641b53d917c3a8bd7ab80c371975824a5c453 (diff) | |
download | upstream-d57d3c1a109e447653b292f7a4d518d59cb42d14.tar.gz upstream-d57d3c1a109e447653b292f7a4d518d59cb42d14.tar.bz2 upstream-d57d3c1a109e447653b292f7a4d518d59cb42d14.zip |
generic: rtl8367: allow to use VLANs > 31
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31914 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8367.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8367.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8367.c b/target/linux/generic/files/drivers/net/phy/rtl8367.c index d60af022a7..f4ef0c14f4 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8367.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8367.c @@ -1350,6 +1350,9 @@ static int rtl8367_is_vlan_valid(struct rtl8366_smi *smi, unsigned vlan) { unsigned max = RTL8367_NUM_VLANS; + if (smi->vlan4k_enabled) + max = RTL8367_NUM_VIDS - 1; + if (vlan == 0 || vlan >= max) return 0; |