add a workaround for a race-condition in the wl driver (triggered by ap+sta mode...
authorFelix Fietkau <nbd@openwrt.org>
Fri, 24 Nov 2006 01:48:23 +0000 (01:48 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 24 Nov 2006 01:48:23 +0000 (01:48 +0000)
SVN-Revision: 5635

target/linux/brcm-2.4/patches/011-wl_qdisc_war.patch [new file with mode: 0644]

diff --git a/target/linux/brcm-2.4/patches/011-wl_qdisc_war.patch b/target/linux/brcm-2.4/patches/011-wl_qdisc_war.patch
new file mode 100644 (file)
index 0000000..8a472cd
--- /dev/null
@@ -0,0 +1,14 @@
+--- linux.old/net/sched/sch_generic.c  2006-11-24 02:42:23.000000000 +0100
++++ linux.dev/net/sched/sch_generic.c  2006-11-24 02:36:58.000000000 +0100
+@@ -84,6 +84,11 @@
+       struct sk_buff *skb;
+       /* Dequeue packet */
++      if (!q) {
++              if (net_ratelimit())
++                      printk(KERN_DEBUG "HELP ME! qdisc_restart called, but no Qdisc!\n");
++              return 0;
++      }
+       if ((skb = q->dequeue(q)) != NULL) {
+               if (spin_trylock(&dev->xmit_lock)) {
+                       /* Remember that the driver is grabbed by us. */