Commit f6e0bb56 authored by Joe Perches's avatar Joe Perches Committed by John W. Linville
Browse files

include/linux/wireless.h: Add IW_HANDLER macro to initialize array entry

Copied the idea from orinoco
Signed-off-by: default avatarJoe Perches <>
Signed-off-by: default avatarJohn W. Linville <>
parent 3b56dd6a
......@@ -346,6 +346,8 @@
#define SIOCIWFIRST 0x8B00
#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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment