Wireless extensions changes are for 2.6.27, not 2.6.26
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 10 Jul 2008 14:50:56 +0000 (14:50 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 10 Jul 2008 14:50:56 +0000 (14:50 +0000)
Don't use compatibility code if IW_REQUEST_FLAG_COMPAT is defined, which
means that the kernel identifies itself as 2.6.26, but acts like 2.6.27
would.

Remove unneeded use of ellipsis in iwe_stream_lcp_len() definition.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3767 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_wireless.c

index e77f13a84c4521ed20bf79f5088c54d774ee8678..e874c90bf449b84af8f0618987a9c85d199cab19 100644 (file)
@@ -1776,12 +1776,12 @@ struct iwscanreq {              /* XXX: right place for this declaration? */
        int mode;
 };
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) && !defined(IW_REQUEST_FLAG_COMPAT)
 #define        iwe_stream_add_event(a, b, c, d, e)     iwe_stream_add_event(b, c, d, e)
 #define        iwe_stream_add_point(a, b, c, d, e)     iwe_stream_add_point(b, c, d, e)
 #define        iwe_stream_add_value(a, b, c, d, e, f)  \
        iwe_stream_add_value(b, c, d, e, f)
-#define        iwe_stream_lcp_len(...)                 IW_EV_LCP_LEN
+#define        iwe_stream_lcp_len(a)                   IW_EV_LCP_LEN
 #endif
 static int
 giwscan_cb(void *arg, const struct ieee80211_scan_entry *se)