add a workaround for a race-condition in the wl driver (triggered by ap+sta mode...
[openwrt/openwrt.git] / target / linux / brcm-2.4 / patches / 011-wl_qdisc_war.patch
1 --- linux.old/net/sched/sch_generic.c 2006-11-24 02:42:23.000000000 +0100
2 +++ linux.dev/net/sched/sch_generic.c 2006-11-24 02:36:58.000000000 +0100
3 @@ -84,6 +84,11 @@
4 struct sk_buff *skb;
5
6 /* Dequeue packet */
7 + if (!q) {
8 + if (net_ratelimit())
9 + printk(KERN_DEBUG "HELP ME! qdisc_restart called, but no Qdisc!\n");
10 + return 0;
11 + }
12 if ((skb = q->dequeue(q)) != NULL) {
13 if (spin_trylock(&dev->xmit_lock)) {
14 /* Remember that the driver is grabbed by us. */