aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/Kconfig
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-06-30 09:10:46 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-07-02 15:48:33 -0400
commitf4ea83dd743d3e1bec8fdf954ac911c6b12ae87a (patch)
tree2db594d668648779e1932981410e37258df76b2c /net/mac80211/Kconfig
parent49461622edf74cd1e1a1056cee3ca8dd90cd9556 (diff)
mac80211: rework debug settings and make debugging safer
This patch reworks the mac80211 debug settings making them more focused and adding help text for those that didn't have one. It also removes a number of printks that can be triggered remotely and add no value, e.g. "too short deauthentication frame received - ignoring". If somebody really needs to debug that they should just add a monitor interface and look at the frames in wireshark. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/Kconfig')
-rw-r--r--net/mac80211/Kconfig130
1 files changed, 91 insertions, 39 deletions
diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig
index 661d3c291482..11a1e7fa195d 100644
--- a/net/mac80211/Kconfig
+++ b/net/mac80211/Kconfig
@@ -88,10 +88,16 @@ config MAC80211_DEBUGFS
88 88
89 Say N unless you know you need this. 89 Say N unless you know you need this.
90 90
91menuconfig MAC80211_DEBUG_MENU
92 bool "Select mac80211 debugging features"
93 depends on MAC80211
94 ---help---
95 This option collects various mac80211 debug settings.
96
91config MAC80211_DEBUG_PACKET_ALIGNMENT 97config MAC80211_DEBUG_PACKET_ALIGNMENT
92 bool "Enable packet alignment debugging" 98 bool "Enable packet alignment debugging"
93 depends on MAC80211 99 depends on MAC80211_DEBUG_MENU
94 help 100 ---help---
95 This option is recommended for driver authors and strongly 101 This option is recommended for driver authors and strongly
96 discouraged for everybody else, it will trigger a warning 102 discouraged for everybody else, it will trigger a warning
97 when a driver hands mac80211 a buffer that is aligned in 103 when a driver hands mac80211 a buffer that is aligned in
@@ -100,33 +106,95 @@ config MAC80211_DEBUG_PACKET_ALIGNMENT
100 106
101 Say N unless you're writing a mac80211 based driver. 107 Say N unless you're writing a mac80211 based driver.
102 108
103config MAC80211_DEBUG 109config MAC80211_NOINLINE
104 bool "Enable debugging output" 110 bool "Do not inline TX/RX handlers"
105 depends on MAC80211 111 depends on MAC80211_DEBUG_MENU
106 ---help--- 112 ---help---
107 This option will enable debug tracing output for the 113 This option affects code generation in mac80211, when
108 ieee80211 network stack. 114 selected some functions are marked "noinline" to allow
115 easier debugging of problems in the transmit and receive
116 paths.
117
118 This option increases code size a bit and inserts a lot
119 of function calls in the code, but is otherwise safe to
120 enable.
109 121
110 If you are not trying to debug or develop the ieee80211 122 If unsure, say N unless you expect to be finding problems
111 subsystem, you most likely want to say N here. 123 in mac80211.
124
125config MAC80211_VERBOSE_DEBUG
126 bool "Verbose debugging output"
127 depends on MAC80211_DEBUG_MENU
128 ---help---
129 Selecting this option causes mac80211 to print out
130 many debugging messages. It should not be selected
131 on production systems as some of the messages are
132 remotely triggerable.
133
134 Do not select this option.
112 135
113config MAC80211_HT_DEBUG 136config MAC80211_HT_DEBUG
114 bool "Enable HT debugging output" 137 bool "Verbose HT debugging"
115 depends on MAC80211_DEBUG 138 depends on MAC80211_DEBUG_MENU
116 ---help--- 139 ---help---
117 This option enables 802.11n High Throughput features 140 This option enables 802.11n High Throughput features
118 debug tracing output. 141 debug tracing output.
119 142
120 If you are not trying to debug of develop the ieee80211 143 It should not be selected on production systems as some
121 subsystem, you most likely want to say N here. 144 of the messages are remotely triggerable.
122 145
123config MAC80211_VERBOSE_DEBUG 146 Do not select this option.
124 bool "Verbose debugging output" 147
125 depends on MAC80211_DEBUG 148config MAC80211_TKIP_DEBUG
149 bool "Verbose TKIP debugging"
150 depends on MAC80211_DEBUG_MENU
151 ---help---
152 Selecting this option causes mac80211 to print out
153 very verbose TKIP debugging messages. It should not
154 be selected on production systems as those messages
155 are remotely triggerable.
156
157 Do not select this option.
158
159config MAC80211_IBSS_DEBUG
160 bool "Verbose IBSS debugging"
161 depends on MAC80211_DEBUG_MENU
162 ---help---
163 Selecting this option causes mac80211 to print out
164 very verbose IBSS debugging messages. It should not
165 be selected on production systems as those messages
166 are remotely triggerable.
167
168 Do not select this option.
169
170config MAC80211_VERBOSE_PS_DEBUG
171 bool "Verbose powersave mode debugging"
172 depends on MAC80211_DEBUG_MENU
173 ---help---
174 Selecting this option causes mac80211 to print out very
175 verbose power save mode debugging messages (when mac80211
176 is an AP and has power saving stations.)
177 It should not be selected on production systems as those
178 messages are remotely triggerable.
179
180 Do not select this option.
181
182config MAC80211_VERBOSE_MPL_DEBUG
183 bool "Verbose mesh peer link debugging"
184 depends on MAC80211_DEBUG_MENU
185 depends on MAC80211_MESH
186 ---help---
187 Selecting this option causes mac80211 to print out very
188 verbose mesh peer link debugging messages (when mac80211
189 is taking part in a mesh network).
190 It should not be selected on production systems as those
191 messages are remotely triggerable.
192
193 Do not select this option.
126 194
127config MAC80211_LOWTX_FRAME_DUMP 195config MAC80211_LOWTX_FRAME_DUMP
128 bool "Debug frame dumping" 196 bool "Debug frame dumping"
129 depends on MAC80211_DEBUG 197 depends on MAC80211_DEBUG_MENU
130 ---help--- 198 ---help---
131 Selecting this option will cause the stack to 199 Selecting this option will cause the stack to
132 print a message for each frame that is handed 200 print a message for each frame that is handed
@@ -137,33 +205,17 @@ config MAC80211_LOWTX_FRAME_DUMP
137 If unsure, say N and insert the debugging code 205 If unsure, say N and insert the debugging code
138 you require into the driver you are debugging. 206 you require into the driver you are debugging.
139 207
140config MAC80211_TKIP_DEBUG
141 bool "TKIP debugging"
142 depends on MAC80211_DEBUG
143
144config MAC80211_DEBUG_COUNTERS 208config MAC80211_DEBUG_COUNTERS
145 bool "Extra statistics for TX/RX debugging" 209 bool "Extra statistics for TX/RX debugging"
146 depends on MAC80211_DEBUG 210 depends on MAC80211_DEBUG
147 211 depends on MAC80211_DEBUG_MENU
148config MAC80211_IBSS_DEBUG 212 depends on MAC80211_DEBUGFS
149 bool "Support for IBSS testing"
150 depends on MAC80211_DEBUG
151 ---help---
152 Say Y here if you intend to debug the IBSS code.
153
154config MAC80211_VERBOSE_PS_DEBUG
155 bool "Verbose powersave mode debugging"
156 depends on MAC80211_DEBUG
157 ---help--- 213 ---help---
158 Say Y here to print out verbose powersave 214 Selecting this option causes mac80211 to keep additional
159 mode debug messages. 215 and very verbose statistics about TX and RX handler use
216 and show them in debugfs.
160 217
161config MAC80211_VERBOSE_MPL_DEBUG 218 If unsure, say N.
162 bool "Verbose mesh peer link debugging"
163 depends on MAC80211_DEBUG && MAC80211_MESH
164 ---help---
165 Say Y here to print out verbose mesh peer link
166 debug messages.
167 219
168config MAC80211_VERBOSE_SPECT_MGMT_DEBUG 220config MAC80211_VERBOSE_SPECT_MGMT_DEBUG
169 bool "Verbose Spectrum Management (IEEE 802.11h)debugging" 221 bool "Verbose Spectrum Management (IEEE 802.11h)debugging"