The uapi header of linux/nl80211.h was introduced with 3.7. Older version have to rely on the linux/nl80211.h header.
Signed-off-by: Sven Eckelmann sven@narfation.org --- compat-include/uapi/linux/nl80211.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/compat-include/uapi/linux/nl80211.h b/compat-include/uapi/linux/nl80211.h index 9b18178e..ead4c6dd 100644 --- a/compat-include/uapi/linux/nl80211.h +++ b/compat-include/uapi/linux/nl80211.h @@ -25,7 +25,11 @@ #define _NET_BATMAN_ADV_COMPAT_UAPI_LINUX_NL80211_H_
#include <linux/version.h> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0) #include_next <uapi/linux/nl80211.h> +#else +#include <linux/nl80211.h> +#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0)