Commit 4b7ef55a authored by Tim Hockin's avatar Tim Hockin

drivers/net/mii.c: fix flipped logic

parent 0f237b8f
...@@ -299,9 +299,9 @@ int generic_mii_ioctl(struct mii_if_info *mii_if, ...@@ -299,9 +299,9 @@ int generic_mii_ioctl(struct mii_if_info *mii_if,
case MII_BMCR: { case MII_BMCR: {
unsigned int new_duplex = 0; unsigned int new_duplex = 0;
if (val & (BMCR_RESET|BMCR_ANENABLE)) if (val & (BMCR_RESET|BMCR_ANENABLE))
mii_if->force_media = 1;
else
mii_if->force_media = 0; mii_if->force_media = 0;
else
mii_if->force_media = 1;
if (mii_if->force_media && if (mii_if->force_media &&
(val & BMCR_FULLDPLX)) (val & BMCR_FULLDPLX))
new_duplex = 1; new_duplex = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment