OpenBSD/src JRyzEKMsys/net if_media.c

   Interpret ENETRESET from ifm_change() as success in ifmedia_ioctl().

   Drivers will return ENETREST if the hardware needs to be reinitialized
   after successfully switching to the new media mode; it's not an error.

   This change fixes unreliable 'ifconfig mode' with some wireless drivers.

   ok phessler@ jmatthew@
VersionDeltaFile
1.31+2-2sys/net/if_media.c
+2-21 files

UnifiedSplitRaw