[6/6] batman-adv: compat: Map to linux/nl80211.h for Linux < 3.7
Commit Message
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(+)
@@ -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)