OpenBSD/src JRyzEKM — sys/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@
Version | Delta | File | |
---|---|---|---|
1.31 | +2 | -2 | sys/net/if_media.c |
+2 | -2 | 1 files |