generic: rtl8366_smi: only assign pvid if no pvid was set yet
authorjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 18 Jan 2013 15:19:11 +0000 (15:19 +0000)
committerjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 18 Jan 2013 15:19:11 +0000 (15:19 +0000)
commit8d8c86f762063894cde5c92749ee5dfce6bdee58
tree35971424933efff6422e77596408193aeecfb760
parent252b4befd76afc00843a42f3cd358d53e8c807e3
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