aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm-2.4/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-01-07 04:26:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-01-07 04:26:14 +0000
commitaa8b64d13a61dba0f686a628a0668e4b14f9bea0 (patch)
tree7ad4029112ea4e702ec4b2614208af358cffe202 /target/linux/brcm-2.4/patches
parent8975e982f164c24695e69c3072ddb5254be6456d (diff)
downloadupstream-aa8b64d13a61dba0f686a628a0668e4b14f9bea0.tar.gz
upstream-aa8b64d13a61dba0f686a628a0668e4b14f9bea0.tar.bz2
upstream-aa8b64d13a61dba0f686a628a0668e4b14f9bea0.zip
make broadcom-wl robust against implicit kernel config changes (e.g. netfilter), upgrade it from minor version .2 to .3 (adds fixed bssid support for ad-hoc)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13912 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm-2.4/patches')
-rw-r--r--target/linux/brcm-2.4/patches/100-wl_config.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/target/linux/brcm-2.4/patches/100-wl_config.patch b/target/linux/brcm-2.4/patches/100-wl_config.patch
new file mode 100644
index 0000000000..4870c4c1ec
--- /dev/null
+++ b/target/linux/brcm-2.4/patches/100-wl_config.patch
@@ -0,0 +1,66 @@
+--- a/include/linux/netdevice.h
++++ b/include/linux/netdevice.h
+@@ -445,16 +445,12 @@ struct net_device
+ /* bridge stuff */
+ struct net_bridge_port *br_port;
+
+-#ifdef CONFIG_NET_FASTROUTE
+ #define NETDEV_FASTROUTE_HMASK 0xF
+ /* Semi-private data. Keep it at the end of device struct. */
+ rwlock_t fastpath_lock;
+ struct dst_entry *fastpath[NETDEV_FASTROUTE_HMASK+1];
+-#endif
+-#ifdef CONFIG_NET_DIVERT
+ /* this will get initialized at each interface type init routine */
+ struct divert_blk *divert;
+-#endif /* CONFIG_NET_DIVERT */
+ };
+
+ /* 2.6 compatibility */
+--- a/include/linux/skbuff.h
++++ b/include/linux/skbuff.h
+@@ -83,7 +83,6 @@
+ #define NET_CALLER(arg) __builtin_return_address(0)
+ #endif
+
+-#ifdef CONFIG_NETFILTER
+ struct nf_conntrack {
+ atomic_t use;
+ void (*destroy)(struct nf_conntrack *);
+@@ -92,7 +91,6 @@ struct nf_conntrack {
+ struct nf_ct_info {
+ struct nf_conntrack *master;
+ };
+-#endif
+ #if defined(CONFIG_IMQ) || defined(CONFIG_IMQ_MODULE)
+ struct nf_info;
+ #endif
+@@ -201,7 +199,6 @@ struct sk_buff {
+ unsigned char *end; /* End pointer */
+
+ void (*destructor)(struct sk_buff *); /* Destruct function */
+-#ifdef CONFIG_NETFILTER
+ /* Can be used for communication between hooks. */
+ unsigned long nfmark;
+ /* Cache info */
+@@ -211,7 +208,6 @@ struct sk_buff {
+ #ifdef CONFIG_NETFILTER_DEBUG
+ unsigned int nf_debug;
+ #endif
+-#endif /*CONFIG_NETFILTER*/
+
+ #if defined(CONFIG_HIPPI)
+ union{
+@@ -219,12 +215,8 @@ struct sk_buff {
+ } private;
+ #endif
+
+-#ifdef CONFIG_NET_SCHED
+ __u32 tc_index; /* traffic control index */
+-#endif
+-#if defined(CONFIG_IMQ) || defined(CONFIG_IMQ_MODULE)
+ struct nf_info *nf_info;
+-#endif
+ };
+
+ #ifdef __KERNEL__