ramips: don't clobber vlans with remapped vid on mt7530/762x switches
authorJo-Philipp Wich <jo@mein.io>
Sun, 11 Feb 2018 19:24:37 +0000 (20:24 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Feb 2018 15:43:29 +0000 (16:43 +0100)
Avoid overwriting vlan entries with remapped vid in later iterations of
the vlan enumeration loop of mt7530_apply_config().

Fix the problem by refactoring the code to first reset the entire table,
then reprogram only vlans with members to prevent overwriting configured
vlans with unconfigured ones.

Fixes FS#1147, FS#1341

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

No differences found