ramips: ethernet: ralink: rewrite esw_rt3050 to support link states