Search Linux Wireless

Re: [PATCH] mac80211: Print unknown packet type in tasklet_handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2008-12-17 at 14:26 -0600, Larry Finger wrote:
> 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@xxxxxxxxxxxx>

Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

> ---
> 
> John.
> 
> This is 2.6.29 material.
> 
> Larry
> ---
> 
> Index: wireless-testing/net/mac80211/main.c
> ===================================================================
> --- wireless-testing.orig/net/mac80211/main.c
> +++ wireless-testing/net/mac80211/main.c
> @@ -341,7 +341,8 @@ static void ieee80211_tasklet_handler(un
>  			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;
>  		}
> 

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux