]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
mac80211: Print unknown packet type in tasklet_handler
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 17 Dec 2008 20:26:59 +0000 (14:26 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Dec 2008 20:23:48 +0000 (15:23 -0500)
In stress testing p54usb, the WARN_ON() in ieee80211_tasklet_handler() was
triggered; however, there is no logging of the received value for packet
type. Adding that feature will improve the warning.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c

index a0371caf01cef04aa49c141bde020860d9d179e8..ab6b73647b3e3905495ea7f6f33f942150a12db0 100644 (file)
@@ -341,7 +341,8 @@ static void ieee80211_tasklet_handler(unsigned long data)
                        dev_kfree_skb(skb);
                        break ;
                default:
                        dev_kfree_skb(skb);
                        break ;
                default:
-                       WARN_ON(1);
+                       WARN(1, "mac80211: Packet is of unknown type %d\n",
+                            skb->pkt_type);
                        dev_kfree_skb(skb);
                        break;
                }
                        dev_kfree_skb(skb);
                        break;
                }