Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
8d1e0657
Commit
8d1e0657
authored
Jan 03, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr mii] fix ugly lack of useful bit masking
Found by Ion Badulescu.
parent
380ddbbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/net/mii.c
drivers/net/mii.c
+4
-4
No files found.
drivers/net/mii.c
View file @
8d1e0657
...
...
@@ -124,13 +124,13 @@ int mii_ethtool_sset(struct mii_if_info *mii, struct ethtool_cmd *ecmd)
/* advertise only what has been requested */
advert
=
mii
->
mdio_read
(
dev
,
mii
->
phy_id
,
MII_ADVERTISE
);
tmp
=
advert
&
~
(
ADVERTISE_ALL
|
ADVERTISE_100BASE4
);
if
(
ADVERTISED_10baseT_Half
)
if
(
ecmd
->
advertising
&
ADVERTISED_10baseT_Half
)
tmp
|=
ADVERTISE_10HALF
;
if
(
ADVERTISED_10baseT_Full
)
if
(
ecmd
->
advertising
&
ADVERTISED_10baseT_Full
)
tmp
|=
ADVERTISE_10FULL
;
if
(
ADVERTISED_100baseT_Half
)
if
(
ecmd
->
advertising
&
ADVERTISED_100baseT_Half
)
tmp
|=
ADVERTISE_100HALF
;
if
(
ADVERTISED_100baseT_Full
)
if
(
ecmd
->
advertising
&
ADVERTISED_100baseT_Full
)
tmp
|=
ADVERTISE_100FULL
;
if
(
advert
!=
tmp
)
{
mii
->
mdio_write
(
dev
,
mii
->
phy_id
,
MII_ADVERTISE
,
tmp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment