diff mbox series

[6/6] batman-adv: compat: Map to linux/nl80211.h for Linux < 3.7

Message ID 20171119161207.32588-7-sven@narfation.org
State Accepted, archived
Delegated to: Sven Eckelmann
Headers show
Series batman-adv: Include cleanup | expand

Commit Message

Sven Eckelmann Nov. 19, 2017, 4:12 p.m. UTC
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 mbox series

Patch

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)