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)
commitaecebbaed2129f3029dbc2e12bd00bcac1bdf264
tree35971424933efff6422e77596408193aeecfb760
parent2a6b173e6d612a4ec8bce52e8edfce767b5a6dff
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35227 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/rtl8366_smi.c