Hauke Mehrtens írta: > This is now compiling with kernel at least 2.6.26 to 2.6.30. > MAC80211_DRIVER_API_TRACER is only working with kernel >= 2.6.30. > > Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> > --- <snip> > > /* > +--- a/net/mac80211/driver-trace.h > ++++ b/net/mac80211/driver-trace.h > +@@ -1,7 +1,9 @@ > + #if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ) > + #define __MAC80211_DRIVER_TRACE > + > ++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) > + #include <linux/tracepoint.h> > ++#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */ ^^ typo? > + #include <net/mac80211.h> > + #include "ieee80211_i.h" > + > +@@ -645,4 +647,6 @@ TRACE_EVENT(drv_ampdu_action, > + #define TRACE_INCLUDE_PATH . > + #undef TRACE_INCLUDE_FILE > + #define TRACE_INCLUDE_FILE driver-trace > ++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) > + #include <trace/define_trace.h> > ++#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */ > --- a/net/mac80211/iface.c 2009-07-08 15:46:16.452255410 -0700 > +++ b/net/mac80211/iface.c 2009-07-08 15:46:06.060257895 -0700 > @@ -643,6 +643,7 @@ -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html