diff options
-rw-r--r-- | net/mac80211/Kconfig | 13 | ||||
-rw-r--r-- | net/mac80211/tx.c | 42 |
2 files changed, 0 insertions, 55 deletions
diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig index 80d693392b0f..8427518e4f20 100644 --- a/net/mac80211/Kconfig +++ b/net/mac80211/Kconfig | |||
@@ -179,19 +179,6 @@ config MAC80211_VERBOSE_MPL_DEBUG | |||
179 | 179 | ||
180 | Do not select this option. | 180 | Do not select this option. |
181 | 181 | ||
182 | config MAC80211_LOWTX_FRAME_DUMP | ||
183 | bool "Debug frame dumping" | ||
184 | depends on MAC80211_DEBUG_MENU | ||
185 | ---help--- | ||
186 | Selecting this option will cause the stack to | ||
187 | print a message for each frame that is handed | ||
188 | to the lowlevel driver for transmission. This | ||
189 | message includes all MAC addresses and the | ||
190 | frame control field. | ||
191 | |||
192 | If unsure, say N and insert the debugging code | ||
193 | you require into the driver you are debugging. | ||
194 | |||
195 | config MAC80211_DEBUG_COUNTERS | 182 | config MAC80211_DEBUG_COUNTERS |
196 | bool "Extra statistics for TX/RX debugging" | 183 | bool "Extra statistics for TX/RX debugging" |
197 | depends on MAC80211_DEBUG_MENU | 184 | depends on MAC80211_DEBUG_MENU |
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index d136a371e6bd..20d683641b42 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -38,43 +38,6 @@ | |||
38 | 38 | ||
39 | /* misc utils */ | 39 | /* misc utils */ |
40 | 40 | ||
41 | #ifdef CONFIG_MAC80211_LOWTX_FRAME_DUMP | ||
42 | static void ieee80211_dump_frame(const char *ifname, const char *title, | ||
43 | const struct sk_buff *skb) | ||
44 | { | ||
45 | const struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; | ||
46 | unsigned int hdrlen; | ||
47 | DECLARE_MAC_BUF(mac); | ||
48 | |||
49 | printk(KERN_DEBUG "%s: %s (len=%d)", ifname, title, skb->len); | ||
50 | if (skb->len < 4) { | ||
51 | printk("\n"); | ||
52 | return; | ||
53 | } | ||
54 | |||
55 | hdrlen = ieee80211_hdrlen(hdr->frame_control); | ||
56 | if (hdrlen > skb->len) | ||
57 | hdrlen = skb->len; | ||
58 | if (hdrlen >= 4) | ||
59 | printk(" FC=0x%04x DUR=0x%04x", | ||
60 | le16_to_cpu(hdr->frame_control), le16_to_cpu(hdr->duration_id)); | ||
61 | if (hdrlen >= 10) | ||
62 | printk(" A1=%s", print_mac(mac, hdr->addr1)); | ||
63 | if (hdrlen >= 16) | ||
64 | printk(" A2=%s", print_mac(mac, hdr->addr2)); | ||
65 | if (hdrlen >= 24) | ||
66 | printk(" A3=%s", print_mac(mac, hdr->addr3)); | ||
67 | if (hdrlen >= 30) | ||
68 | printk(" A4=%s", print_mac(mac, hdr->addr4)); | ||
69 | printk("\n"); | ||
70 | } | ||
71 | #else /* CONFIG_MAC80211_LOWTX_FRAME_DUMP */ | ||
72 | static inline void ieee80211_dump_frame(const char *ifname, const char *title, | ||
73 | struct sk_buff *skb) | ||
74 | { | ||
75 | } | ||
76 | #endif /* CONFIG_MAC80211_LOWTX_FRAME_DUMP */ | ||
77 | |||
78 | static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, int group_addr, | 41 | static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, int group_addr, |
79 | int next_frag_len) | 42 | int next_frag_len) |
80 | { | 43 | { |
@@ -1068,8 +1031,6 @@ static int __ieee80211_tx(struct ieee80211_local *local, struct sk_buff *skb, | |||
1068 | return IEEE80211_TX_AGAIN; | 1031 | return IEEE80211_TX_AGAIN; |
1069 | info = IEEE80211_SKB_CB(skb); | 1032 | info = IEEE80211_SKB_CB(skb); |
1070 | 1033 | ||
1071 | ieee80211_dump_frame(wiphy_name(local->hw.wiphy), | ||
1072 | "TX to low-level driver", skb); | ||
1073 | ret = local->ops->tx(local_to_hw(local), skb); | 1034 | ret = local->ops->tx(local_to_hw(local), skb); |
1074 | if (ret) | 1035 | if (ret) |
1075 | return IEEE80211_TX_AGAIN; | 1036 | return IEEE80211_TX_AGAIN; |
@@ -1099,9 +1060,6 @@ static int __ieee80211_tx(struct ieee80211_local *local, struct sk_buff *skb, | |||
1099 | ~IEEE80211_TX_CTL_RATE_CTRL_PROBE; | 1060 | ~IEEE80211_TX_CTL_RATE_CTRL_PROBE; |
1100 | } | 1061 | } |
1101 | 1062 | ||
1102 | ieee80211_dump_frame(wiphy_name(local->hw.wiphy), | ||
1103 | "TX to low-level driver", | ||
1104 | tx->extra_frag[i]); | ||
1105 | ret = local->ops->tx(local_to_hw(local), | 1063 | ret = local->ops->tx(local_to_hw(local), |
1106 | tx->extra_frag[i]); | 1064 | tx->extra_frag[i]); |
1107 | if (ret) | 1065 | if (ret) |