summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-03-18 18:29:32 -0700
committerJohn W. Linville <linville@tuxdriver.com>2010-03-23 16:50:26 -0400
commitf6e0bb56d43d1f3b2ad54d51b65c07ef3bdead16 (patch)
tree8e9e1ecd416538a9b6b1b18ce555a33483282c81
parent3b56dd6a090e905eece023f690298013da4b6b67 (diff)
downloadblackbird-op-linux-f6e0bb56d43d1f3b2ad54d51b65c07ef3bdead16.tar.gz
blackbird-op-linux-f6e0bb56d43d1f3b2ad54d51b65c07ef3bdead16.zip
include/linux/wireless.h: Add IW_HANDLER macro to initialize array entry
Copied the idea from orinoco Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--include/linux/wireless.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/wireless.h b/include/linux/wireless.h
index 5b4c6c772a9b..0955b67616d2 100644
--- a/include/linux/wireless.h
+++ b/include/linux/wireless.h
@@ -346,6 +346,8 @@
#define SIOCIWFIRST 0x8B00
#define SIOCIWLAST SIOCIWLASTPRIV /* 0x8BFF */
#define IW_IOCTL_IDX(cmd) ((cmd) - SIOCIWFIRST)
+#define IW_HANDLER(id, func) \
+ [IW_IOCTL_IDX(id)] = func
/* Odd : get (world access), even : set (root access) */
#define IW_IS_SET(cmd) (!((cmd) & 0x1))
OpenPOWER on IntegriCloud