generic: rtl8366_smi: only assign pvid if no pvid was set yet
authorJonas Gorski <jogo@openwrt.org>
Fri, 18 Jan 2013 15:19:11 +0000 (15:19 +0000)
committerJonas Gorski <jogo@openwrt.org>
Fri, 18 Jan 2013 15:19:11 +0000 (15:19 +0000)
commit60456b0491bccfea3ac332466425abe3960a598b
tree35971424933efff6422e77596408193aeecfb760
parent23e81b9cbd7b159dfaa718450a91c376f2df18a2
generic: rtl8366_smi: only assign pvid if no pvid was set yet

Only assign a pvid if the current pvid is 0. Fixes using mixed tagged
and untagged traffic on a port and the untagged vlan isn't the last one
of which the port is a member.

Tested on RTL8366S and RTL8367R.

Fixes #8501.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 35227
target/linux/generic/files/drivers/net/phy/rtl8366_smi.c