diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/debug.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c index d2f84d76bb07..0230f30e9e9a 100644 --- a/drivers/net/wireless/ath/ath5k/debug.c +++ b/drivers/net/wireless/ath/ath5k/debug.c | |||
@@ -308,8 +308,6 @@ static const struct { | |||
308 | { ATH5K_DEBUG_CALIBRATE, "calib", "periodic calibration" }, | 308 | { ATH5K_DEBUG_CALIBRATE, "calib", "periodic calibration" }, |
309 | { ATH5K_DEBUG_TXPOWER, "txpower", "transmit power setting" }, | 309 | { ATH5K_DEBUG_TXPOWER, "txpower", "transmit power setting" }, |
310 | { ATH5K_DEBUG_LED, "led", "LED management" }, | 310 | { ATH5K_DEBUG_LED, "led", "LED management" }, |
311 | { ATH5K_DEBUG_DUMP_RX, "dumprx", "print received skb content" }, | ||
312 | { ATH5K_DEBUG_DUMP_TX, "dumptx", "print transmit skb content" }, | ||
313 | { ATH5K_DEBUG_DUMPBANDS, "dumpbands", "dump bands" }, | 311 | { ATH5K_DEBUG_DUMPBANDS, "dumpbands", "dump bands" }, |
314 | { ATH5K_DEBUG_DMA, "dma", "dma start/stop" }, | 312 | { ATH5K_DEBUG_DMA, "dma", "dma start/stop" }, |
315 | { ATH5K_DEBUG_ANI, "ani", "adaptive noise immunity" }, | 313 | { ATH5K_DEBUG_ANI, "ani", "adaptive noise immunity" }, |
@@ -1036,24 +1034,6 @@ ath5k_debug_printrxbuffs(struct ath5k_softc *sc, struct ath5k_hw *ah) | |||
1036 | } | 1034 | } |
1037 | 1035 | ||
1038 | void | 1036 | void |
1039 | ath5k_debug_dump_skb(struct ath5k_softc *sc, | ||
1040 | struct sk_buff *skb, const char *prefix, int tx) | ||
1041 | { | ||
1042 | char buf[16]; | ||
1043 | |||
1044 | if (likely(!((tx && (sc->debug.level & ATH5K_DEBUG_DUMP_TX)) || | ||
1045 | (!tx && (sc->debug.level & ATH5K_DEBUG_DUMP_RX))))) | ||
1046 | return; | ||
1047 | |||
1048 | snprintf(buf, sizeof(buf), "%s %s", wiphy_name(sc->hw->wiphy), prefix); | ||
1049 | |||
1050 | print_hex_dump_bytes(buf, DUMP_PREFIX_NONE, skb->data, | ||
1051 | min(200U, skb->len)); | ||
1052 | |||
1053 | printk(KERN_DEBUG "\n"); | ||
1054 | } | ||
1055 | |||
1056 | void | ||
1057 | ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf) | 1037 | ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf) |
1058 | { | 1038 | { |
1059 | struct ath5k_desc *ds = bf->desc; | 1039 | struct ath5k_desc *ds = bf->desc; |