aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2008-12-17 15:26:59 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-12-19 15:23:48 -0500
commit5e3f308997f53d00e8cbebdb89d4f6e347aa963a (patch)
treed3da8ee1f40a7becdd5009134932adb3bc96d845 /net/mac80211/main.c
parent6110781af080c007b2202187a8518920e03d5748 (diff)
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/mac80211/main.c')
-rw-r--r--net/mac80211/main.c3
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)
341 dev_kfree_skb(skb); 341 dev_kfree_skb(skb);
342 break ; 342 break ;
343 default: 343 default:
344 WARN_ON(1); 344 WARN(1, "mac80211: Packet is of unknown type %d\n",
345 skb->pkt_type);
345 dev_kfree_skb(skb); 346 dev_kfree_skb(skb);
346 break; 347 break;
347 } 348 }