mirror of
https://review.haiku-os.org/haiku
synced 2025-02-22 21:48:35 +01:00
network/ethernet: Do not set IFM_ETHER in update_link_state.
All the drivers that support ETHER_GET_LINK_STATE set this correctly; and more specifically, it should actually not be set on some devices (WiFi devices, specifically). Since SIOCGIFMEDIA has always been passed through directly to the driver if it supports it, WiFi devices worked anyway because this value never made it to userland. That will soon change, hence this needed to be fixed.
This commit is contained in:
parent
7de24641a4
commit
b5fae38254
@ -66,9 +66,6 @@ update_link_state(ethernet_device *device, bool notify = true)
|
||||
return B_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
state.media |= IFM_ETHER;
|
||||
// make sure the media type is returned correctly
|
||||
|
||||
if (device->media != state.media
|
||||
|| device->link_quality != state.quality
|
||||
|| device->link_speed != state.speed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user