Skip to content

Commit

Permalink
wl12xx: print actual rx packet size (without padding)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eliad Peller authored and Luciano Coelho committed May 2, 2011
1 parent b03acad commit a20a5b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/wl12xx/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a20a5b7

Please sign in to comment.