From 648154cc560f4c5132da28ffdfa970f0f8ffcbb1 Mon Sep 17 00:00:00 2001 From: Joe Perches Date: Thu, 18 Mar 2010 18:29:32 -0700 Subject: [PATCH] --- yaml --- r: 193848 b: refs/heads/master c: f6e0bb56d43d1f3b2ad54d51b65c07ef3bdead16 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/wireless.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 0386f41efa71..54d55a2775ea 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3b56dd6a090e905eece023f690298013da4b6b67 +refs/heads/master: f6e0bb56d43d1f3b2ad54d51b65c07ef3bdead16 diff --git a/trunk/include/linux/wireless.h b/trunk/include/linux/wireless.h index 5b4c6c772a9b..0955b67616d2 100644 --- a/trunk/include/linux/wireless.h +++ b/trunk/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))