net: phy: improve link partner capability detection