mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 21:42:04 +02:00
generic: rtl8367: allow to use VLANs > 31
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31914 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e4b72001f6
commit
5a1c605a9e
@ -1350,6 +1350,9 @@ static int rtl8367_is_vlan_valid(struct rtl8366_smi *smi, unsigned vlan)
|
|||||||
{
|
{
|
||||||
unsigned max = RTL8367_NUM_VLANS;
|
unsigned max = RTL8367_NUM_VLANS;
|
||||||
|
|
||||||
|
if (smi->vlan4k_enabled)
|
||||||
|
max = RTL8367_NUM_VIDS - 1;
|
||||||
|
|
||||||
if (vlan == 0 || vlan >= max)
|
if (vlan == 0 || vlan >= max)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user