error = is needed before ether_ioctl() so that unsupported/unknown

IOCLTs are properly handled.  This gets the cs driver properly
reporting things via ifconfig.

# my pccard still doesn't work.
This commit is contained in:
Warner Losh 2005-01-28 00:28:22 +00:00
parent c0604e27a8
commit c1195b0646

View File

@ -1151,7 +1151,7 @@ cs_ioctl(register struct ifnet *ifp, u_long command, caddr_t data)
break;
default:
ether_ioctl(ifp, command, data);
error = ether_ioctl(ifp, command, data);
break;
}