]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
wireless.h: Use SIOCIWFIRST not SIOCSIWCOMMIT for range check
authorJoe Perches <joe@perches.com>
Fri, 19 Mar 2010 01:29:33 +0000 (18:29 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 23 Mar 2010 20:50:26 +0000 (16:50 -0400)
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>
include/linux/wireless.h

index 0955b67616d2b4aedf02a9f2eb3d7e301f11d028..e6827eedf18bc4934f0f6b47e7b7a7c4de76f0df 100644 (file)
  * 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