summaryrefslogtreecommitdiffstats
path: root/include/linux/wireless.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-03-18 18:29:33 -0700
committerJohn W. Linville <linville@tuxdriver.com>2010-03-23 16:50:26 -0400
commit2ae2332ed11687325096e68e326ec57f0294cff9 (patch)
tree7fecd7db48c9bfc59842c050fb194eca74d49c3d /include/linux/wireless.h
parentf6e0bb56d43d1f3b2ad54d51b65c07ef3bdead16 (diff)
downloadlinux-2ae2332ed11687325096e68e326ec57f0294cff9.tar.gz
linux-2ae2332ed11687325096e68e326ec57f0294cff9.tar.bz2
linux-2ae2332ed11687325096e68e326ec57f0294cff9.zip
wireless.h: Use SIOCIWFIRST not SIOCSIWCOMMIT for range check
These two #defines use the same value, but SIOCIWFIRST makes more sense in this use. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/wireless.h')
-rw-r--r--include/linux/wireless.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/wireless.h b/include/linux/wireless.h
index 0955b67616d2..e6827eedf18b 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