fix link-up/link-down initial state detection