mii-tool: Fix gigabit link test
media_list tests for gigabit phys like this:

if (mask & BMCR_SPEED1000)

mask does not contain the value of the BMCR register though, so the
test is completely bogus. Test for mask2 instead which is only
nonzero when the phy has gigabit capabilities.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 68376f8 commit e5a0223b9e6a2661f6ffdb20781aa04f8754984b
@Sascha Hauer Sascha Hauer authored on 20 May 2014
Showing 1 changed file
View
commands/miitool.c