projects
/
openwrt
/
staging
/
blocktrron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f567980
)
generic: rtl8367: allow to use VLANs > 31
author
Gabor Juhos
<
[email protected]
>
Sun, 27 May 2012 17:09:41 +0000
(17:09 +0000)
committer
Gabor Juhos
<
[email protected]
>
Sun, 27 May 2012 17:09:41 +0000
(17:09 +0000)
SVN-Revision: 31914
target/linux/generic/files/drivers/net/phy/rtl8367.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/rtl8367.c
b/target/linux/generic/files/drivers/net/phy/rtl8367.c
index d60af022a7226ce7466b1dfcf16f85d989e342fc..f4ef0c14f475cf813f28712f55e1c95a0e61cd36 100644
(file)
--- 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;