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:
Augustin Cavalier 2022-06-13 20:24:17 -04:00
parent 7de24641a4
commit b5fae38254

View File

@ -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) {