Skip to content

Commit

Permalink
generic: rtl8367: allow to use VLANs > 31
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31914 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
juhosg committed May 27, 2012
1 parent e4b7200 commit 5a1c605
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions target/linux/generic/files/drivers/net/phy/rtl8367.c
Expand Up @@ -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;

Expand Down

0 comments on commit 5a1c605

Please sign in to comment.