diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-10-29 16:41:36 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-10-29 16:41:36 +0000 |
commit | e3b6f090fc5ebf7945a933b9a42b1b5b7fc78889 (patch) | |
tree | ab7fd4da6cd1dec423ff99f2212fe7cc8c5400da /sys/dev | |
parent | ee6f9ed34ed10686d372ecbb9b0d23223c295594 (diff) |
In malo_ioctl() if the returned error is ENETRESET reset the device.
This is net80211 way of telling the driver that settings have changed.
OK mglocker@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/malo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c index 2e3c56b38d4..2c0c167d748 100644 --- a/sys/dev/ic/malo.c +++ b/sys/dev/ic/malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malo.c,v 1.14 2006/10/29 16:14:56 claudio Exp $ */ +/* $OpenBSD: malo.c,v 1.15 2006/10/29 16:41:35 claudio Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -786,6 +786,9 @@ malo_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) break; } + if (error == ENETRESET) + error = malo_reset(ifp); + splx(s); return (error); |