summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorVadim Zhukov <zhuk@cvs.openbsd.org>2014-08-24 18:01:28 +0000
committerVadim Zhukov <zhuk@cvs.openbsd.org>2014-08-24 18:01:28 +0000
commitc12f37f472b6d1387b21ed88c7c7c1186cb78933 (patch)
tree5708a507ea78227c4942d9f3091b6ac91d3a6ead /sys/dev/ic
parent8fb55491e2d577e5c12064dd9d42d752e3919150 (diff)
Fix wrong IEEE 802.11 ioctl's:
* SIOCG80211ALLNODES operates on struct ieee80211_nodereq_all, not struct ieee80211_nodereq. * Six SIOC* from wi(4) were using same codes with generic parts of IEEE 802.11 framework. Things worked due to the fact that size of data struct being passed is encoded in actual SIOC*, too. This commit means that ifconfig and some ports will need to be rebuilt, if any of affected SIOC* codes is used. Port bumps to follow. First part okay reyk@, whole diff okay mpi@ Heavy prodding to commit now from deraadt@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/if_wi_hostap.h14
-rw-r--r--sys/dev/ic/if_wi_ieee.h6
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/ic/if_wi_hostap.h b/sys/dev/ic/if_wi_hostap.h
index c12825be3a6..f30754e5eee 100644
--- a/sys/dev/ic/if_wi_hostap.h
+++ b/sys/dev/ic/if_wi_hostap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi_hostap.h,v 1.9 2003/10/21 18:58:49 jmc Exp $ */
+/* $OpenBSD: if_wi_hostap.h,v 1.10 2014/08/24 18:01:27 zhuk Exp $ */
/*
* Copyright (c) 2002
@@ -53,12 +53,12 @@ struct hostap_sta {
#define HOSTAP_FLAGS_PERM 0x0004
#define HOSTAP_FLAGS_BITS "\20\01AUTH\02ASSOC\03PERM"
-#define SIOCHOSTAP_GET _IOWR('i', 210, struct ifreq)
-#define SIOCHOSTAP_ADD _IOWR('i', 211, struct ifreq)
-#define SIOCHOSTAP_DEL _IOWR('i', 212, struct ifreq)
-#define SIOCHOSTAP_GETALL _IOWR('i', 213, struct ifreq)
-#define SIOCHOSTAP_GFLAGS _IOWR('i', 214, struct ifreq)
-#define SIOCHOSTAP_SFLAGS _IOWR('i', 215, struct ifreq)
+#define SIOCHOSTAP_GET _IOWR('i', 200, struct ifreq)
+#define SIOCHOSTAP_ADD _IOWR('i', 201, struct ifreq)
+#define SIOCHOSTAP_DEL _IOWR('i', 202, struct ifreq)
+#define SIOCHOSTAP_GETALL _IOWR('i', 203, struct ifreq)
+#define SIOCHOSTAP_GFLAGS _IOWR('i', 204, struct ifreq)
+#define SIOCHOSTAP_SFLAGS _IOWR('i', 205, struct ifreq)
/* Flags for SIOCHOSTAP_GFLAGS/SFLAGS */
#define WIHAPFL_ACTIVE 0x0001
diff --git a/sys/dev/ic/if_wi_ieee.h b/sys/dev/ic/if_wi_ieee.h
index 140e1577235..c47e5bdac62 100644
--- a/sys/dev/ic/if_wi_ieee.h
+++ b/sys/dev/ic/if_wi_ieee.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi_ieee.h,v 1.29 2006/06/27 20:55:51 reyk Exp $ */
+/* $OpenBSD: if_wi_ieee.h,v 1.30 2014/08/24 18:01:27 zhuk Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -45,8 +45,8 @@
* interface, didn't I.
*/
-#define SIOCSWAVELAN _IOW('i', 249, struct ifreq) /* wavelan set op */
-#define SIOCGWAVELAN _IOWR('i', 250, struct ifreq) /* wavelan get op */
+#define SIOCSWAVELAN _IOW('i', 206, struct ifreq) /* wavelan set op */
+#define SIOCGWAVELAN _IOWR('i', 207, struct ifreq) /* wavelan get op */
/*
* Technically I don't think there's a limit to a record