mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Clear full-duplex when half-duplex flag is set. This actually makes
'mediaopt half-duplex' working as it should. It is now equivalent of '-mediaopt full-duplex'.
This commit is contained in:
parent
b472f371b2
commit
f7c6b0a8c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165359
@ -303,9 +303,13 @@ domediaopt(const char *val, int clear, int s)
|
||||
ifr.ifr_media = ifmr->ifm_current;
|
||||
if (clear)
|
||||
ifr.ifr_media &= ~options;
|
||||
else
|
||||
else {
|
||||
if (options & IFM_HDX) {
|
||||
ifr.ifr_media &= ~IFM_FDX;
|
||||
options &= ~IFM_HDX;
|
||||
}
|
||||
ifr.ifr_media |= options;
|
||||
|
||||
}
|
||||
ifmr->ifm_current = ifr.ifr_media;
|
||||
callback_register(setifmediacallback, (void *)ifmr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user