summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2007-11-25 16:47:45 +0000
committerBrad Smith <brad@cvs.openbsd.org>2007-11-25 16:47:45 +0000
commit33604415e86bd6bf9ea012d05bc80019380d6d18 (patch)
tree9307039b9478a18ba5ccaeb207d32088b54e0b03 /sys
parentebc4fc14327f660f49d8f089c850d697af79125b (diff)
return ENOTTY not EINVAL for an unknown ioctl.
ok reyk@ deraadt@ jsg@ dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c
index eb885de759a..adc7a3efc66 100644
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_ioctl.c,v 1.19 2007/07/18 18:10:31 damien Exp $ */
+/* $OpenBSD: ieee80211_ioctl.c,v 1.20 2007/11/25 16:47:44 brad Exp $ */
/* $NetBSD: ieee80211_ioctl.c,v 1.15 2004/05/06 02:58:16 dyoung Exp $ */
/*-
@@ -539,7 +539,7 @@ ieee80211_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
error = ENETRESET;
break;
default:
- error = EINVAL;
+ error = ENOTTY;
break;
}
return error;