From: Hauke Mehrtens Date: Fri, 20 Nov 2009 22:01:51 +0000 (+0100) Subject: Add IFF_DONT_BRIDGE definition to compat X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=86630cf4e8b8a95f4bae58e243d9b0304ba02134;p=openwrt%2Fstaging%2Fblogic.git Add IFF_DONT_BRIDGE definition to compat The IFF_DONT_BRIDGE flag will not be interpreted by an old kernel, but it does not hurt the kernel if it is set but not read by the non wireless network code. Signed-off-by: Hauke Mehrtens --- diff --git a/compat/compat-2.6.33.c b/compat/compat-2.6.33.c new file mode 100644 index 000000000000..2fccadbcb574 --- /dev/null +++ b/compat/compat-2.6.33.c @@ -0,0 +1,16 @@ +/* + * Copyright 2007 Luis R. Rodriguez + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Compatibility file for Linux wireless for kernels 2.6.33. + */ + +#include + +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) + +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) */ + diff --git a/compat/compat-2.6.33.h b/compat/compat-2.6.33.h new file mode 100644 index 000000000000..528627eab78e --- /dev/null +++ b/compat/compat-2.6.33.h @@ -0,0 +1,15 @@ +#ifndef LINUX_26_33_COMPAT_H +#define LINUX_26_33_COMPAT_H + +#include +#include +#include + +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) + +#define IFF_DONT_BRIDGE 0x800 /* disallow bridging this ether dev */ +/* source: include/linux/if.h */ + +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) */ + +#endif /* LINUX_26_33_COMPAT_H */ diff --git a/compat/compat.h b/compat/compat.h index 05612b2f4126..76e998d320bf 100644 --- a/compat/compat.h +++ b/compat/compat.h @@ -21,5 +21,6 @@ #include #include #include +#include #endif /* LINUX_26_COMPAT_H */ diff --git a/compat/patches/98-add-compat-wireless.patch b/compat/patches/98-add-compat-wireless.patch index e78c63f12339..0bbf85b4fa1d 100644 --- a/compat/patches/98-add-compat-wireless.patch +++ b/compat/patches/98-add-compat-wireless.patch @@ -20,7 +20,7 @@ added compat.h also for ssb, I forget. --- a/net/wireless/Makefile 2009-08-07 12:27:50.836497001 -0700 +++ b/net/wireless/Makefile 2009-08-07 12:27:51.952497240 -0700 -@@ -15,3 +15,16 @@ +@@ -15,3 +15,17 @@ cfg80211-$(CONFIG_CFG80211_WEXT) += wext-compat.o wext-sme.o ccflags-y += -D__CHECK_ENDIAN__ @@ -36,6 +36,7 @@ added compat.h also for ssb, I forget. +cfg80211-$(CONFIG_COMPAT_WIRELESS_30) += compat-2.6.30.o +cfg80211-$(CONFIG_COMPAT_WIRELESS_31) += compat-2.6.31.o +cfg80211-$(CONFIG_COMPAT_WIRELESS_32) += compat-2.6.32.o ++cfg80211-$(CONFIG_COMPAT_WIRELESS_33) += compat-2.6.33.o + --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h