appweb: restore autconf compat patch (#7897)

git-svn-id: svn://svn.openwrt.org/openwrt@35226 3c298f89-4303-0410-b956-a3cf2f4a3e73
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@35227 3c298f89-4303-0410-b956-a3cf2f4a3e73
AA: generic: rtl8366_smi: only assign pvid if no pvid was set yet

Backport or r35227.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt@35228 3c298f89-4303-0410-b956-a3cf2f4a3e73