From 4878463bdbc72ed016eea3daffcdabbaeb723efd Mon Sep 17 00:00:00 2001 From: proski Date: Thu, 10 Jul 2008 14:50:56 +0000 Subject: [PATCH] Wireless extensions changes are for 2.6.27, not 2.6.26 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net80211/ieee80211_wireless.c b/net80211/ieee80211_wireless.c index e77f13a..e874c90 100644 --- a/net80211/ieee80211_wireless.c +++ b/net80211/ieee80211_wireless.c @@ -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) -- 2.35.1