Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit cfcb3be43ef56ac4afa1af97c5d0022c1ae7ea7b Author: Sven Eckelmann sven@narfation.org Date: Sun Nov 19 17:12:07 2017 +0100
batman-adv: compat: Map to linux/nl80211.h for Linux < 3.7
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
cfcb3be43ef56ac4afa1af97c5d0022c1ae7ea7b 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)