xref: /openbmc/linux/net/mac80211/Kconfig (revision 0bae35e1)
1f0706e82SJiri Bencconfig MAC80211
2f0706e82SJiri Benc	tristate "Generic IEEE 802.11 Networking Stack (mac80211)"
30aa8204bSJohannes Berg	depends on CFG80211
4f0706e82SJiri Benc	select CRYPTO
5f0706e82SJiri Benc	select CRYPTO_ECB
6f0706e82SJiri Benc	select CRYPTO_ARC4
7f0706e82SJiri Benc	select CRYPTO_AES
8f0706e82SJiri Benc	select CRC32
9f0706e82SJiri Benc	---help---
10f0706e82SJiri Benc	  This option enables the hardware independent IEEE 802.11
11f0706e82SJiri Benc	  networking stack.
12f0706e82SJiri Benc
130aa8204bSJohannes Bergcomment "CFG80211 needs to be enabled for MAC80211"
140aa8204bSJohannes Berg	depends on CFG80211=n
150aa8204bSJohannes Berg
16abd8ea22SLuis R. Rodriguezif MAC80211 != n
17ac71c691SJohannes Berg
18c2ef355bSAndres Salomonconfig MAC80211_HAS_RC
19c2ef355bSAndres Salomon	def_bool n
20c2ef355bSAndres Salomon
21e5f5e733SAdrian Bunkconfig MAC80211_RC_PID
22e5f5e733SAdrian Bunk	bool "PID controller based rate control algorithm" if EMBEDDED
23c2ef355bSAndres Salomon	select MAC80211_HAS_RC
24e5f5e733SAdrian Bunk	---help---
25e5f5e733SAdrian Bunk	  This option enables a TX rate control algorithm for
26e5f5e733SAdrian Bunk	  mac80211 that uses a PID controller to select the TX
27e5f5e733SAdrian Bunk	  rate.
28e5f5e733SAdrian Bunk
29cccf129fSFelix Fietkauconfig MAC80211_RC_MINSTREL
308eb41c93SLuis R. Rodriguez	bool "Minstrel" if EMBEDDED
31c2ef355bSAndres Salomon	select MAC80211_HAS_RC
328eb41c93SLuis R. Rodriguez	default y
33cccf129fSFelix Fietkau	---help---
34cccf129fSFelix Fietkau	  This option enables the 'minstrel' TX rate control algorithm
35cccf129fSFelix Fietkau
36ec8aa669SFelix Fietkauconfig MAC80211_RC_MINSTREL_HT
37ec8aa669SFelix Fietkau	bool "Minstrel 802.11n support" if EMBEDDED
38ec8aa669SFelix Fietkau	depends on MAC80211_RC_MINSTREL
39ec8aa669SFelix Fietkau	default y
40ec8aa669SFelix Fietkau	---help---
41ec8aa669SFelix Fietkau	  This option enables the 'minstrel_ht' TX rate control algorithm
42ec8aa669SFelix Fietkau
43c21b39acSStefano Briviochoice
44c21b39acSStefano Brivio	prompt "Default rate control algorithm"
45c2ef355bSAndres Salomon	depends on MAC80211_HAS_RC
468eb41c93SLuis R. Rodriguez	default MAC80211_RC_DEFAULT_MINSTREL
47c21b39acSStefano Brivio	---help---
48c21b39acSStefano Brivio	  This option selects the default rate control algorithm
49c21b39acSStefano Brivio	  mac80211 will use. Note that this default can still be
50692105b8SMatt LaPlante	  overridden through the ieee80211_default_rc_algo module
514b475898SJohannes Berg	  parameter if different algorithms are available.
52ac71c691SJohannes Berg
53c21b39acSStefano Brivioconfig MAC80211_RC_DEFAULT_PID
54c21b39acSStefano Brivio	bool "PID controller based rate control algorithm"
55e5f5e733SAdrian Bunk	depends on MAC80211_RC_PID
56c21b39acSStefano Brivio	---help---
57c21b39acSStefano Brivio	  Select the PID controller based rate control as the
58c21b39acSStefano Brivio	  default rate control algorithm. You should choose
59c21b39acSStefano Brivio	  this unless you know what you are doing.
60c21b39acSStefano Brivio
61cccf129fSFelix Fietkauconfig MAC80211_RC_DEFAULT_MINSTREL
62cccf129fSFelix Fietkau	bool "Minstrel"
63cccf129fSFelix Fietkau	depends on MAC80211_RC_MINSTREL
64cccf129fSFelix Fietkau	---help---
65cccf129fSFelix Fietkau	  Select Minstrel as the default rate control algorithm.
66cccf129fSFelix Fietkau
67cccf129fSFelix Fietkau
68c21b39acSStefano Brivioendchoice
69c21b39acSStefano Brivio
70c21b39acSStefano Brivioconfig MAC80211_RC_DEFAULT
71c21b39acSStefano Brivio	string
7292b50c4bSHelmut Schaa	default "minstrel_ht" if MAC80211_RC_DEFAULT_MINSTREL && MAC80211_RC_MINSTREL_HT
73cccf129fSFelix Fietkau	default "minstrel" if MAC80211_RC_DEFAULT_MINSTREL
748eb41c93SLuis R. Rodriguez	default "pid" if MAC80211_RC_DEFAULT_PID
75c21b39acSStefano Brivio	default ""
76c21b39acSStefano Brivio
77abd8ea22SLuis R. Rodriguezendif
78ad018375SMattias Nissler
79c2ef355bSAndres Salomoncomment "Some wireless drivers require a rate control algorithm"
80c2ef355bSAndres Salomon	depends on MAC80211_HAS_RC=n
81c2ef355bSAndres Salomon
822f5ce793SJohannes Bergconfig MAC80211_MESH
832f5ce793SJohannes Berg	bool "Enable mac80211 mesh networking (pre-802.11s) support"
8437659ff8SLuis Carlos Cobo	depends on MAC80211 && EXPERIMENTAL
852f5ce793SJohannes Berg	---help---
865c142e8dSJohannes Berg	 This options enables support of Draft 802.11s mesh networking.
8718889231SJavier Cardona	 The implementation is based on Draft 2.08 of the Mesh Networking
8818889231SJavier Cardona	 amendment.  However, no compliance with that draft is claimed or even
8918889231SJavier Cardona	 possible, as drafts leave a number of identifiers to be defined after
9018889231SJavier Cardona	 ratification.  For more information visit http://o11s.org/.
912f5ce793SJohannes Berg
92f0706e82SJiri Bencconfig MAC80211_LEDS
93f0706e82SJiri Benc	bool "Enable LED triggers"
94bd8fd21dSLuca Tettamanti	depends on MAC80211
95*0bae35e1SJohannes Berg	depends on LEDS_CLASS
96bd8fd21dSLuca Tettamanti	select LEDS_TRIGGERS
97f0706e82SJiri Benc	---help---
98f0706e82SJiri Benc	  This option enables a few LED triggers for different
99f0706e82SJiri Benc	  packet receive/transmit events.
100f0706e82SJiri Benc
101e9f207f0SJiri Bencconfig MAC80211_DEBUGFS
102e9f207f0SJiri Benc	bool "Export mac80211 internals in DebugFS"
103e9f207f0SJiri Benc	depends on MAC80211 && DEBUG_FS
104e9f207f0SJiri Benc	---help---
105e9f207f0SJiri Benc	  Select this to see extensive information about
106e9f207f0SJiri Benc	  the internal state of mac80211 in debugfs.
107e9f207f0SJiri Benc
108e9f207f0SJiri Benc	  Say N unless you know you need this.
109e9f207f0SJiri Benc
110f4ea83ddSJohannes Bergmenuconfig MAC80211_DEBUG_MENU
111f4ea83ddSJohannes Berg	bool "Select mac80211 debugging features"
112f4ea83ddSJohannes Berg	depends on MAC80211
113f4ea83ddSJohannes Berg	---help---
114f4ea83ddSJohannes Berg	  This option collects various mac80211 debug settings.
115f4ea83ddSJohannes Berg
116f4ea83ddSJohannes Bergconfig MAC80211_NOINLINE
117f4ea83ddSJohannes Berg	bool "Do not inline TX/RX handlers"
118f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
119f0706e82SJiri Benc	---help---
120f4ea83ddSJohannes Berg	  This option affects code generation in mac80211, when
121f4ea83ddSJohannes Berg	  selected some functions are marked "noinline" to allow
122f4ea83ddSJohannes Berg	  easier debugging of problems in the transmit and receive
123f4ea83ddSJohannes Berg	  paths.
124f0706e82SJiri Benc
125f4ea83ddSJohannes Berg	  This option increases code size a bit and inserts a lot
126f4ea83ddSJohannes Berg	  of function calls in the code, but is otherwise safe to
127f4ea83ddSJohannes Berg	  enable.
128f4ea83ddSJohannes Berg
129f4ea83ddSJohannes Berg	  If unsure, say N unless you expect to be finding problems
130f4ea83ddSJohannes Berg	  in mac80211.
131f4ea83ddSJohannes Berg
132f4ea83ddSJohannes Bergconfig MAC80211_VERBOSE_DEBUG
133f4ea83ddSJohannes Berg	bool "Verbose debugging output"
134f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
135f4ea83ddSJohannes Berg	---help---
136f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to print out
137f4ea83ddSJohannes Berg	  many debugging messages. It should not be selected
138f4ea83ddSJohannes Berg	  on production systems as some of the messages are
139f4ea83ddSJohannes Berg	  remotely triggerable.
140f4ea83ddSJohannes Berg
141f4ea83ddSJohannes Berg	  Do not select this option.
142f0706e82SJiri Benc
14382b3cad9SRon Rindjunskyconfig MAC80211_HT_DEBUG
144f4ea83ddSJohannes Berg	bool "Verbose HT debugging"
145f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
14682b3cad9SRon Rindjunsky	---help---
14782b3cad9SRon Rindjunsky	  This option enables 802.11n High Throughput features
14882b3cad9SRon Rindjunsky	  debug tracing output.
14982b3cad9SRon Rindjunsky
150f4ea83ddSJohannes Berg	  It should not be selected on production systems as some
151f4ea83ddSJohannes Berg	  of the messages are remotely triggerable.
15282b3cad9SRon Rindjunsky
153f4ea83ddSJohannes Berg	  Do not select this option.
154f4ea83ddSJohannes Berg
155f4ea83ddSJohannes Bergconfig MAC80211_TKIP_DEBUG
156f4ea83ddSJohannes Berg	bool "Verbose TKIP debugging"
157f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
158f4ea83ddSJohannes Berg	---help---
159f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to print out
160f4ea83ddSJohannes Berg	  very verbose TKIP debugging messages. It should not
161f4ea83ddSJohannes Berg	  be selected on production systems as those messages
162f4ea83ddSJohannes Berg	  are remotely triggerable.
163f4ea83ddSJohannes Berg
164f4ea83ddSJohannes Berg	  Do not select this option.
165f4ea83ddSJohannes Berg
166f4ea83ddSJohannes Bergconfig MAC80211_IBSS_DEBUG
167f4ea83ddSJohannes Berg	bool "Verbose IBSS debugging"
168f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
169f4ea83ddSJohannes Berg	---help---
170f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to print out
171f4ea83ddSJohannes Berg	  very verbose IBSS debugging messages. It should not
172f4ea83ddSJohannes Berg	  be selected on production systems as those messages
173f4ea83ddSJohannes Berg	  are remotely triggerable.
174f4ea83ddSJohannes Berg
175f4ea83ddSJohannes Berg	  Do not select this option.
176f4ea83ddSJohannes Berg
177f4ea83ddSJohannes Bergconfig MAC80211_VERBOSE_PS_DEBUG
178f4ea83ddSJohannes Berg	bool "Verbose powersave mode debugging"
179f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
180f4ea83ddSJohannes Berg	---help---
181f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to print out very
182f4ea83ddSJohannes Berg	  verbose power save mode debugging messages (when mac80211
183f4ea83ddSJohannes Berg	  is an AP and has power saving stations.)
184f4ea83ddSJohannes Berg	  It should not be selected on production systems as those
185f4ea83ddSJohannes Berg	  messages are remotely triggerable.
186f4ea83ddSJohannes Berg
187f4ea83ddSJohannes Berg	  Do not select this option.
188f4ea83ddSJohannes Berg
189f4ea83ddSJohannes Bergconfig MAC80211_VERBOSE_MPL_DEBUG
190f4ea83ddSJohannes Berg	bool "Verbose mesh peer link debugging"
191f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
192f4ea83ddSJohannes Berg	depends on MAC80211_MESH
193f4ea83ddSJohannes Berg	---help---
194f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to print out very
195f4ea83ddSJohannes Berg	  verbose mesh peer link debugging messages (when mac80211
196f4ea83ddSJohannes Berg	  is taking part in a mesh network).
197f4ea83ddSJohannes Berg	  It should not be selected on production systems as those
198f4ea83ddSJohannes Berg	  messages are remotely triggerable.
199f4ea83ddSJohannes Berg
200f4ea83ddSJohannes Berg	  Do not select this option.
201f0706e82SJiri Benc
20227db2e42SRui Pauloconfig MAC80211_VERBOSE_MHWMP_DEBUG
20327db2e42SRui Paulo	bool "Verbose mesh HWMP routing debugging"
20427db2e42SRui Paulo	depends on MAC80211_DEBUG_MENU
20527db2e42SRui Paulo	depends on MAC80211_MESH
20627db2e42SRui Paulo	---help---
20727db2e42SRui Paulo	  Selecting this option causes mac80211 to print out very
20827db2e42SRui Paulo	  verbose mesh routing (HWMP) debugging messages (when mac80211
20927db2e42SRui Paulo	  is taking part in a mesh network).
21027db2e42SRui Paulo	  It should not be selected on production systems as those
21127db2e42SRui Paulo	  messages are remotely triggerable.
21227db2e42SRui Paulo
21327db2e42SRui Paulo	  Do not select this option.
21427db2e42SRui Paulo
215f0706e82SJiri Bencconfig MAC80211_DEBUG_COUNTERS
216f0706e82SJiri Benc	bool "Extra statistics for TX/RX debugging"
217f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
218f4ea83ddSJohannes Berg	depends on MAC80211_DEBUGFS
219f0706e82SJiri Benc	---help---
220f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to keep additional
221f4ea83ddSJohannes Berg	  and very verbose statistics about TX and RX handler use
222f4ea83ddSJohannes Berg	  and show them in debugfs.
223f0706e82SJiri Benc
224f4ea83ddSJohannes Berg	  If unsure, say N.
2250a2b8bb2SJohannes Berg
2260a2b8bb2SJohannes Bergconfig MAC80211_DRIVER_API_TRACER
2270a2b8bb2SJohannes Berg	bool "Driver API tracer"
2280a2b8bb2SJohannes Berg	depends on MAC80211_DEBUG_MENU
2290a2b8bb2SJohannes Berg	depends on EVENT_TRACING
2300a2b8bb2SJohannes Berg	help
2310a2b8bb2SJohannes Berg	  Say Y here to make mac80211 register with the ftrace
232b5878a2dSJohannes Berg	  framework for the driver API -- you can then see which
233b5878a2dSJohannes Berg	  driver methods it is calling and which API functions
234b5878a2dSJohannes Berg	  drivers are calling by looking at the trace.
2350a2b8bb2SJohannes Berg
236b5878a2dSJohannes Berg	  If unsure, say Y.
237