aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/niu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 3bbcea11329f..5f6beabf2d17 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -1319,6 +1319,7 @@ static int link_status_10g(struct niu *np, int *link_up_p)
1319 1319
1320static int link_status_1g(struct niu *np, int *link_up_p) 1320static int link_status_1g(struct niu *np, int *link_up_p)
1321{ 1321{
1322 struct niu_link_config *lp = &np->link_config;
1322 u16 current_speed, bmsr; 1323 u16 current_speed, bmsr;
1323 unsigned long flags; 1324 unsigned long flags;
1324 u8 current_duplex; 1325 u8 current_duplex;
@@ -1386,6 +1387,8 @@ static int link_status_1g(struct niu *np, int *link_up_p)
1386 link_up = 0; 1387 link_up = 0;
1387 } 1388 }
1388 } 1389 }
1390 lp->active_speed = current_speed;
1391 lp->active_duplex = current_duplex;
1389 err = 0; 1392 err = 0;
1390 1393
1391out: 1394out: