From: Larry Finger Date: Wed, 17 Dec 2008 20:26:59 +0000 (-0600) Subject: mac80211: Print unknown packet type in tasklet_handler X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5e3f308997f53d00e8cbebdb89d4f6e347aa963a;p=linux-beck.git mac80211: Print unknown packet type in tasklet_handler 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 Signed-off-by: John W. Linville --- diff --git a/net/mac80211/main.c b/net/mac80211/main.c index a0371caf01ce..ab6b73647b3e 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -341,7 +341,8 @@ static void ieee80211_tasklet_handler(unsigned long data) 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; }