diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2008-12-17 23:26:59 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-19 23:23:48 +0300 |
commit | 5e3f308997f53d00e8cbebdb89d4f6e347aa963a (patch) | |
tree | d3da8ee1f40a7becdd5009134932adb3bc96d845 /net | |
parent | 6110781af080c007b2202187a8518920e03d5748 (diff) | |
download | linux-5e3f308997f53d00e8cbebdb89d4f6e347aa963a.tar.xz |
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 <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |