Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <joe@perches.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3b56dd6a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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))