Skip to content

Commit

Permalink
Fix regression where link speeds were not set
Browse files Browse the repository at this point in the history
  • Loading branch information
coolstar committed Mar 3, 2024
1 parent cc4d7e3 commit a5082c4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions if_re.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<FileDigestAlgorithm>sha256</FileDigestAlgorithm>
</DriverSign>
<Inf>
<TimeStamp>1.0.1</TimeStamp>
<TimeStamp>1.0.2</TimeStamp>
</Inf>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -148,7 +148,7 @@
<FileDigestAlgorithm>sha256</FileDigestAlgorithm>
</DriverSign>
<Inf>
<TimeStamp>1.0.1</TimeStamp>
<TimeStamp>1.0.2</TimeStamp>
</Inf>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
Expand All @@ -167,7 +167,7 @@
<FileDigestAlgorithm>sha256</FileDigestAlgorithm>
</DriverSign>
<Inf>
<TimeStamp>1.0.1</TimeStamp>
<TimeStamp>1.0.2</TimeStamp>
</Inf>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand All @@ -186,7 +186,7 @@
<FileDigestAlgorithm>sha256</FileDigestAlgorithm>
</DriverSign>
<Inf>
<TimeStamp>1.0.1</TimeStamp>
<TimeStamp>1.0.2</TimeStamp>
</Inf>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down
9 changes: 9 additions & 0 deletions link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ void RtlFirstStart(_In_ RT_ADAPTER* adapter) {
}

RtlResetLink(adapter);

re_softc* sc = &adapter->bsdData;

if (adapter->isRTL8125) {
re_ifmedia_upd_8125(sc);
}
else {
re_ifmedia_upd(sc);
}
}

void RtlLinkUp(_In_ RT_ADAPTER* adapter) {
Expand Down

0 comments on commit a5082c4

Please sign in to comment.