wl12xx: print actual rx packet size (without padding)
authorEliad Peller <eliad@wizery.com>
Tue, 5 Apr 2011 15:21:31 +0000 (18:21 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 2 May 2011 07:25:53 +0000 (10:25 +0300)
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 <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/rx.c

index 2a581495d5c94f95b414ef165cb6bda1a183fb61..faf5a1d3c2c3cf4adef320c96eceb0ec6180c433 100644 (file)
@@ -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);