xref: /openbmc/linux/net/mac80211/Kconfig (revision ec8aa669)
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
36*ec8aa669SFelix Fietkauconfig MAC80211_RC_MINSTREL_HT
37*ec8aa669SFelix Fietkau	bool "Minstrel 802.11n support" if EMBEDDED
38*ec8aa669SFelix Fietkau	depends on MAC80211_RC_MINSTREL
39*ec8aa669SFelix Fietkau	default y
40*ec8aa669SFelix Fietkau	---help---
41*ec8aa669SFelix Fietkau	  This option enables the 'minstrel_ht' TX rate control algorithm
42*ec8aa669SFelix 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
72cccf129fSFelix Fietkau	default "minstrel" if MAC80211_RC_DEFAULT_MINSTREL
738eb41c93SLuis R. Rodriguez	default "pid" if MAC80211_RC_DEFAULT_PID
74c21b39acSStefano Brivio	default ""
75c21b39acSStefano Brivio
76abd8ea22SLuis R. Rodriguezendif
77ad018375SMattias Nissler
78c2ef355bSAndres Salomoncomment "Some wireless drivers require a rate control algorithm"
79c2ef355bSAndres Salomon	depends on MAC80211_HAS_RC=n
80c2ef355bSAndres Salomon
812f5ce793SJohannes Bergconfig MAC80211_MESH
822f5ce793SJohannes Berg	bool "Enable mac80211 mesh networking (pre-802.11s) support"
8337659ff8SLuis Carlos Cobo	depends on MAC80211 && EXPERIMENTAL
842f5ce793SJohannes Berg	---help---
855c142e8dSJohannes Berg	 This options enables support of Draft 802.11s mesh networking.
8618889231SJavier Cardona	 The implementation is based on Draft 2.08 of the Mesh Networking
8718889231SJavier Cardona	 amendment.  However, no compliance with that draft is claimed or even
8818889231SJavier Cardona	 possible, as drafts leave a number of identifiers to be defined after
8918889231SJavier Cardona	 ratification.  For more information visit http://o11s.org/.
902f5ce793SJohannes Berg
91f0706e82SJiri Bencconfig MAC80211_LEDS
92f0706e82SJiri Benc	bool "Enable LED triggers"
93bd8fd21dSLuca Tettamanti	depends on MAC80211
94bd8fd21dSLuca Tettamanti	select NEW_LEDS
95bd8fd21dSLuca Tettamanti	select LEDS_TRIGGERS
96f0706e82SJiri Benc	---help---
97f0706e82SJiri Benc	  This option enables a few LED triggers for different
98f0706e82SJiri Benc	  packet receive/transmit events.
99f0706e82SJiri Benc
100e9f207f0SJiri Bencconfig MAC80211_DEBUGFS
101e9f207f0SJiri Benc	bool "Export mac80211 internals in DebugFS"
102e9f207f0SJiri Benc	depends on MAC80211 && DEBUG_FS
103e9f207f0SJiri Benc	---help---
104e9f207f0SJiri Benc	  Select this to see extensive information about
105e9f207f0SJiri Benc	  the internal state of mac80211 in debugfs.
106e9f207f0SJiri Benc
107e9f207f0SJiri Benc	  Say N unless you know you need this.
108e9f207f0SJiri Benc
109f4ea83ddSJohannes Bergmenuconfig MAC80211_DEBUG_MENU
110f4ea83ddSJohannes Berg	bool "Select mac80211 debugging features"
111f4ea83ddSJohannes Berg	depends on MAC80211
112f4ea83ddSJohannes Berg	---help---
113f4ea83ddSJohannes Berg	  This option collects various mac80211 debug settings.
114f4ea83ddSJohannes Berg
115f4ea83ddSJohannes Bergconfig MAC80211_NOINLINE
116f4ea83ddSJohannes Berg	bool "Do not inline TX/RX handlers"
117f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
118f0706e82SJiri Benc	---help---
119f4ea83ddSJohannes Berg	  This option affects code generation in mac80211, when
120f4ea83ddSJohannes Berg	  selected some functions are marked "noinline" to allow
121f4ea83ddSJohannes Berg	  easier debugging of problems in the transmit and receive
122f4ea83ddSJohannes Berg	  paths.
123f0706e82SJiri Benc
124f4ea83ddSJohannes Berg	  This option increases code size a bit and inserts a lot
125f4ea83ddSJohannes Berg	  of function calls in the code, but is otherwise safe to
126f4ea83ddSJohannes Berg	  enable.
127f4ea83ddSJohannes Berg
128f4ea83ddSJohannes Berg	  If unsure, say N unless you expect to be finding problems
129f4ea83ddSJohannes Berg	  in mac80211.
130f4ea83ddSJohannes Berg
131f4ea83ddSJohannes Bergconfig MAC80211_VERBOSE_DEBUG
132f4ea83ddSJohannes Berg	bool "Verbose debugging output"
133f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
134f4ea83ddSJohannes Berg	---help---
135f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to print out
136f4ea83ddSJohannes Berg	  many debugging messages. It should not be selected
137f4ea83ddSJohannes Berg	  on production systems as some of the messages are
138f4ea83ddSJohannes Berg	  remotely triggerable.
139f4ea83ddSJohannes Berg
140f4ea83ddSJohannes Berg	  Do not select this option.
141f0706e82SJiri Benc
14282b3cad9SRon Rindjunskyconfig MAC80211_HT_DEBUG
143f4ea83ddSJohannes Berg	bool "Verbose HT debugging"
144f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
14582b3cad9SRon Rindjunsky	---help---
14682b3cad9SRon Rindjunsky	  This option enables 802.11n High Throughput features
14782b3cad9SRon Rindjunsky	  debug tracing output.
14882b3cad9SRon Rindjunsky
149f4ea83ddSJohannes Berg	  It should not be selected on production systems as some
150f4ea83ddSJohannes Berg	  of the messages are remotely triggerable.
15182b3cad9SRon Rindjunsky
152f4ea83ddSJohannes Berg	  Do not select this option.
153f4ea83ddSJohannes Berg
154f4ea83ddSJohannes Bergconfig MAC80211_TKIP_DEBUG
155f4ea83ddSJohannes Berg	bool "Verbose TKIP debugging"
156f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
157f4ea83ddSJohannes Berg	---help---
158f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to print out
159f4ea83ddSJohannes Berg	  very verbose TKIP debugging messages. It should not
160f4ea83ddSJohannes Berg	  be selected on production systems as those messages
161f4ea83ddSJohannes Berg	  are remotely triggerable.
162f4ea83ddSJohannes Berg
163f4ea83ddSJohannes Berg	  Do not select this option.
164f4ea83ddSJohannes Berg
165f4ea83ddSJohannes Bergconfig MAC80211_IBSS_DEBUG
166f4ea83ddSJohannes Berg	bool "Verbose IBSS debugging"
167f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
168f4ea83ddSJohannes Berg	---help---
169f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to print out
170f4ea83ddSJohannes Berg	  very verbose IBSS debugging messages. It should not
171f4ea83ddSJohannes Berg	  be selected on production systems as those messages
172f4ea83ddSJohannes Berg	  are remotely triggerable.
173f4ea83ddSJohannes Berg
174f4ea83ddSJohannes Berg	  Do not select this option.
175f4ea83ddSJohannes Berg
176f4ea83ddSJohannes Bergconfig MAC80211_VERBOSE_PS_DEBUG
177f4ea83ddSJohannes Berg	bool "Verbose powersave mode debugging"
178f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
179f4ea83ddSJohannes Berg	---help---
180f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to print out very
181f4ea83ddSJohannes Berg	  verbose power save mode debugging messages (when mac80211
182f4ea83ddSJohannes Berg	  is an AP and has power saving stations.)
183f4ea83ddSJohannes Berg	  It should not be selected on production systems as those
184f4ea83ddSJohannes Berg	  messages are remotely triggerable.
185f4ea83ddSJohannes Berg
186f4ea83ddSJohannes Berg	  Do not select this option.
187f4ea83ddSJohannes Berg
188f4ea83ddSJohannes Bergconfig MAC80211_VERBOSE_MPL_DEBUG
189f4ea83ddSJohannes Berg	bool "Verbose mesh peer link debugging"
190f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
191f4ea83ddSJohannes Berg	depends on MAC80211_MESH
192f4ea83ddSJohannes Berg	---help---
193f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to print out very
194f4ea83ddSJohannes Berg	  verbose mesh peer link debugging messages (when mac80211
195f4ea83ddSJohannes Berg	  is taking part in a mesh network).
196f4ea83ddSJohannes Berg	  It should not be selected on production systems as those
197f4ea83ddSJohannes Berg	  messages are remotely triggerable.
198f4ea83ddSJohannes Berg
199f4ea83ddSJohannes Berg	  Do not select this option.
200f0706e82SJiri Benc
20127db2e42SRui Pauloconfig MAC80211_VERBOSE_MHWMP_DEBUG
20227db2e42SRui Paulo	bool "Verbose mesh HWMP routing debugging"
20327db2e42SRui Paulo	depends on MAC80211_DEBUG_MENU
20427db2e42SRui Paulo	depends on MAC80211_MESH
20527db2e42SRui Paulo	---help---
20627db2e42SRui Paulo	  Selecting this option causes mac80211 to print out very
20727db2e42SRui Paulo	  verbose mesh routing (HWMP) debugging messages (when mac80211
20827db2e42SRui Paulo	  is taking part in a mesh network).
20927db2e42SRui Paulo	  It should not be selected on production systems as those
21027db2e42SRui Paulo	  messages are remotely triggerable.
21127db2e42SRui Paulo
21227db2e42SRui Paulo	  Do not select this option.
21327db2e42SRui Paulo
214f0706e82SJiri Bencconfig MAC80211_DEBUG_COUNTERS
215f0706e82SJiri Benc	bool "Extra statistics for TX/RX debugging"
216f4ea83ddSJohannes Berg	depends on MAC80211_DEBUG_MENU
217f4ea83ddSJohannes Berg	depends on MAC80211_DEBUGFS
218f0706e82SJiri Benc	---help---
219f4ea83ddSJohannes Berg	  Selecting this option causes mac80211 to keep additional
220f4ea83ddSJohannes Berg	  and very verbose statistics about TX and RX handler use
221f4ea83ddSJohannes Berg	  and show them in debugfs.
222f0706e82SJiri Benc
223f4ea83ddSJohannes Berg	  If unsure, say N.
2240a2b8bb2SJohannes Berg
2250a2b8bb2SJohannes Bergconfig MAC80211_DRIVER_API_TRACER
2260a2b8bb2SJohannes Berg	bool "Driver API tracer"
2270a2b8bb2SJohannes Berg	depends on MAC80211_DEBUG_MENU
2280a2b8bb2SJohannes Berg	depends on EVENT_TRACING
2290a2b8bb2SJohannes Berg	help
2300a2b8bb2SJohannes Berg	  Say Y here to make mac80211 register with the ftrace
231b5878a2dSJohannes Berg	  framework for the driver API -- you can then see which
232b5878a2dSJohannes Berg	  driver methods it is calling and which API functions
233b5878a2dSJohannes Berg	  drivers are calling by looking at the trace.
2340a2b8bb2SJohannes Berg
235b5878a2dSJohannes Berg	  If unsure, say Y.
236