From: Joe Perches <joe@perches.com>
To: linux-kernel@vger.kernel.org
Cc: Richard Kennedy <richard@rsk.demon.co.uk>,
Johannes Berg <johannes@sipsolutions.net>,
"John W. Linville" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org
Subject: [PATCH v3 2/9] wireless.h: Use SIOCIWFIRST not SIOCSIWCOMMIT for range check
Date: Thu, 18 Mar 2010 18:29:33 -0700 [thread overview]
Message-ID: <3ab935c4b9e8ac8cb1b5b3deda8a6798476c453d.1268961559.git.joe@perches.com> (raw)
In-Reply-To: <cover.1268961559.git.joe@perches.com>
These two #defines use the same value, but
SIOCIWFIRST makes more sense in this use.
Signed-off-by: Joe Perches <joe@perches.com>
---
include/linux/wireless.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/wireless.h b/include/linux/wireless.h
index 0955b67..e6827ee 100644
--- a/include/linux/wireless.h
+++ b/include/linux/wireless.h
@@ -650,7 +650,7 @@
* 32 bit bitmasks. Note : 32 bits = 0x20 = 2^5. */
#define IW_EVENT_CAPA_BASE(cmd) ((cmd >= SIOCIWFIRSTPRIV) ? \
(cmd - SIOCIWFIRSTPRIV + 0x60) : \
- (cmd - SIOCSIWCOMMIT))
+ (cmd - SIOCIWFIRST))
#define IW_EVENT_CAPA_INDEX(cmd) (IW_EVENT_CAPA_BASE(cmd) >> 5)
#define IW_EVENT_CAPA_MASK(cmd) (1 << (IW_EVENT_CAPA_BASE(cmd) & 0x1F))
/* Event capability constants - event autogenerated by the kernel
--
1.7.0.14.g7e948
next prev parent reply other threads:[~2010-03-19 1:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 1:29 [PATCH v3 0/9] wireless: Use macros from wireless.h Joe Perches
2010-03-19 1:29 ` [PATCH v3 1/9] include/linux/wireless.h: Add IW_HANDLER macro to initialize array entry Joe Perches
2010-03-19 1:29 ` Joe Perches [this message]
2010-03-19 1:29 ` [PATCH v3 3/9] include/net/iw_handler.h: Use SIOCIWFIRST not SIOCSIWCOMMIT in comment Joe Perches
2010-03-19 1:29 ` [PATCH v3 4/9] net/wireless/wext_core.c: Use IW_IOCTL_IDX macro Joe Perches
2010-03-19 1:29 ` [PATCH v3 5/9] net/wireless/wext-core.c: Use IW_EVENT_IDX macro Joe Perches
2010-03-19 1:29 ` [PATCH v3 6/9] drivers/net/wireless: Use IW_HANDLER macro Joe Perches
2010-03-19 1:29 ` [PATCH v3 7/9] drivers/net: Remove local #define IW_IOCTL, use IW_HANDLER Joe Perches
2010-03-19 1:29 ` [PATCH v3 8/9] orinoco/wext.c: Remove local #define STD_IW_HANDLER Joe Perches
2010-03-19 1:29 ` [PATCH v3 9/9] drivers/net/wireless/ray_cs.c: Use iw_handler function prototypes Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3ab935c4b9e8ac8cb1b5b3deda8a6798476c453d.1268961559.git.joe@perches.com \
--to=joe@perches.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=richard@rsk.demon.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®