fix link status detection in various switch drivers