projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b56dd6
)
include/linux/wireless.h: Add IW_HANDLER macro to initialize array entry
author
Joe Perches
<joe@perches.com>
Fri, 19 Mar 2010 01:29:32 +0000
(18:29 -0700)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 23 Mar 2010 20:50:26 +0000
(16:50 -0400)
Copied the idea from orinoco
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/wireless.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/wireless.h
b/include/linux/wireless.h
index 5b4c6c772a9b1ac53926d27250d0d11cb033f560..0955b67616d2b4aedf02a9f2eb3d7e301f11d028 100644
(file)
--- 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))