summaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2008-12-17 14:26:59 -0600
committerJohn W. Linville <linville@tuxdriver.com>2008-12-19 15:23:48 -0500
commit5e3f308997f53d00e8cbebdb89d4f6e347aa963a (patch)
treed3da8ee1f40a7becdd5009134932adb3bc96d845 /net/mac80211/main.c
parent6110781af080c007b2202187a8518920e03d5748 (diff)
downloadop-kernel-dev-5e3f308997f53d00e8cbebdb89d4f6e347aa963a.zip
op-kernel-dev-5e3f308997f53d00e8cbebdb89d4f6e347aa963a.tar.gz
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 a0371ca..ab6b736 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;
}
OpenPOWER on IntegriCloud