mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-24 18:41:00 +00:00
generic: rtl8367: allow to use VLANs > 31
SVN-Revision: 31914
This commit is contained in:
parent
f567980d38
commit
466ef30173
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user