From: Eliad Peller Date: Tue, 5 Apr 2011 15:21:31 +0000 (+0300) Subject: wl12xx: print actual rx packet size (without padding) X-Git-Tag: MMI-PSA29.97-13-9~19291^2~16^2~186^2~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a20a5b7e48e24c1bf9c10ba27cb1862f8f777d00;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git wl12xx: print actual rx packet size (without padding) When debugging, reduce the padding size from each rx packet, to get the actual packet size (so comparing it against a cap file will be easier) Signed-off-by: Eliad Peller Signed-off-by: Luciano Coelho --- diff --git a/drivers/net/wireless/wl12xx/rx.c b/drivers/net/wireless/wl12xx/rx.c index 2a581495d5c9..faf5a1d3c2c3 100644 --- a/drivers/net/wireless/wl12xx/rx.c +++ b/drivers/net/wireless/wl12xx/rx.c @@ -121,7 +121,8 @@ static int wl1271_rx_handle_data(struct wl1271 *wl, u8 *data, u32 length) wl1271_rx_status(wl, desc, IEEE80211_SKB_RXCB(skb), beacon); - wl1271_debug(DEBUG_RX, "rx skb 0x%p: %d B %s", skb, skb->len, + wl1271_debug(DEBUG_RX, "rx skb 0x%p: %d B %s", skb, + skb->len - desc->pad_len, beacon ? "beacon" : ""); skb_trim(skb, skb->len - desc->pad_len);