Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17104
b: refs/heads/master
c: 32a4ec9
h: refs/heads/master
v: v3
  • Loading branch information
Kenji Kaneshige authored and Jeff Garzik committed Jan 9, 2006
1 parent ab69bec commit 36d1b49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 504ddff4c0b8e31fa2a2775d6d484faeb126a265
refs/heads/master: 32a4ec97461f00aa63747fc8978011ea771bd543
10 changes: 7 additions & 3 deletions trunk/drivers/net/e1000/e1000_param.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ e1000_check_fiber_options(struct e1000_adapter *adapter)
static void __devinit
e1000_check_copper_options(struct e1000_adapter *adapter)
{
int speed, dplx;
int speed, dplx, an;
int bd = adapter->bd_number;

{ /* Speed */
Expand Down Expand Up @@ -641,8 +641,12 @@ e1000_check_copper_options(struct e1000_adapter *adapter)
.p = an_list }}
};

int an = AutoNeg[bd];
e1000_validate_option(&an, &opt, adapter);
if (num_AutoNeg > bd) {
an = AutoNeg[bd];
e1000_validate_option(&an, &opt, adapter);
} else {
an = opt.def;
}
adapter->hw.autoneg_advertised = an;
}

Expand Down

0 comments on commit 36d1b49

Please sign in to comment.