xref: /linux/drivers/net/wireless/ath/ath9k/Kconfig (revision 1141215c745b152da6cb632f3532f7384ced8410)
10766789bSKalle Valo# SPDX-License-Identifier: ISC
27322fd19SLuis R. Rodriguezconfig ATH9K_HW
37322fd19SLuis R. Rodriguez	tristate
4db86f07eSLuis R. Rodriguezconfig ATH9K_COMMON
5db86f07eSLuis R. Rodriguez	tristate
69a6f7347SVladimir Kondratiev	select ATH_COMMON
71077ec47SChristian Lamparterconfig ATH9K_COMMON_DEBUG
81077ec47SChristian Lamparter	bool
929942bc1SZefir Kurtisiconfig ATH9K_DFS_DEBUGFS
1029942bc1SZefir Kurtisi	def_bool y
1129942bc1SZefir Kurtisi	depends on ATH9K_DEBUGFS && ATH9K_DFS_CERTIFIED
127322fd19SLuis R. Rodriguez
1370982b72SSujith Manoharanconfig ATH9K_BTCOEX_SUPPORT
1470982b72SSujith Manoharan	bool "Atheros bluetooth coexistence support"
1570982b72SSujith Manoharan	depends on (ATH9K || ATH9K_HTC)
1670982b72SSujith Manoharan	default y
1770982b72SSujith Manoharan	---help---
1870982b72SSujith Manoharan	  Say Y, if you want to use the ath9k/ath9k_htc radios together with
1970982b72SSujith Manoharan	  Bluetooth modules in the same system.
2070982b72SSujith Manoharan
21203c4805SLuis R. Rodriguezconfig ATH9K
22203c4805SLuis R. Rodriguez	tristate "Atheros 802.11n wireless cards support"
23a01ae5b3SGeert Uytterhoeven	depends on MAC80211 && HAS_DMA
247322fd19SLuis R. Rodriguez	select ATH9K_HW
25203c4805SLuis R. Rodriguez	select MAC80211_LEDS
26203c4805SLuis R. Rodriguez	select LEDS_CLASS
27203c4805SLuis R. Rodriguez	select NEW_LEDS
28db86f07eSLuis R. Rodriguez	select ATH9K_COMMON
29203c4805SLuis R. Rodriguez	---help---
30203c4805SLuis R. Rodriguez	  This module adds support for wireless adapters based on
312a219eb2SLuis R. Rodriguez	  Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family
322a219eb2SLuis R. Rodriguez	  of chipsets. For a specific list of supported external
332a219eb2SLuis R. Rodriguez	  cards, laptops that already ship with these cards and
34278cee05SMasanari Iida	  APs that come with these cards refer to ath9k wiki
352a219eb2SLuis R. Rodriguez	  products page:
362a219eb2SLuis R. Rodriguez
37*1141215cSFlavio Suligoi	  https://wireless.wiki.kernel.org/en/users/Drivers/ath9k/products
38203c4805SLuis R. Rodriguez
39203c4805SLuis R. Rodriguez	  If you choose to build a module, it'll be called ath9k.
40203c4805SLuis R. Rodriguez
418e26a030SGabor Juhosconfig ATH9K_PCI
428e26a030SGabor Juhos	bool "Atheros ath9k PCI/PCIe bus support"
43fdacbcdaSDaniel Kuehn	default y
448e26a030SGabor Juhos	depends on ATH9K && PCI
458e26a030SGabor Juhos	---help---
468e26a030SGabor Juhos	  This option enables the PCI bus support in ath9k.
478e26a030SGabor Juhos
488e26a030SGabor Juhos	  Say Y, if you have a compatible PCI/PCIe wireless card.
498e26a030SGabor Juhos
508e26a030SGabor Juhosconfig ATH9K_AHB
518e26a030SGabor Juhos	bool "Atheros ath9k AHB bus support"
528e26a030SGabor Juhos	depends on ATH9K
538e26a030SGabor Juhos	default n
548e26a030SGabor Juhos	---help---
558e26a030SGabor Juhos	  This option enables the AHB bus support in ath9k.
568e26a030SGabor Juhos
578e26a030SGabor Juhos	  Say Y, if you have a SoC with a compatible built-in
588e26a030SGabor Juhos	  wireless MAC. Say N if unsure.
598e26a030SGabor Juhos
60a830df07SFelix Fietkauconfig ATH9K_DEBUGFS
61203c4805SLuis R. Rodriguez	bool "Atheros ath9k debugging"
62e5614a91SSujith Manoharan	depends on ATH9K && DEBUG_FS
6312e94327SSujith Manoharan	select MAC80211_DEBUGFS
641077ec47SChristian Lamparter	select ATH9K_COMMON_DEBUG
65203c4805SLuis R. Rodriguez	---help---
66a830df07SFelix Fietkau	  Say Y, if you need access to ath9k's statistics for
67a830df07SFelix Fietkau	  interrupts, rate control, etc.
68203c4805SLuis R. Rodriguez
699df7ddc3SMatthias Schiffer	  Also required for changing debug message flags at run time and for
709df7ddc3SMatthias Schiffer	  TX99.
71203c4805SLuis R. Rodriguez
721cdbaf0dSSujith Manoharanconfig ATH9K_STATION_STATISTICS
731cdbaf0dSSujith Manoharan	bool "Detailed station statistics"
741cdbaf0dSSujith Manoharan	depends on ATH9K && ATH9K_DEBUGFS && DEBUG_FS
751cdbaf0dSSujith Manoharan	select MAC80211_DEBUGFS
761cdbaf0dSSujith Manoharan	default n
771cdbaf0dSSujith Manoharan	---help---
781cdbaf0dSSujith Manoharan	  This option enables detailed statistics for association stations.
791cdbaf0dSSujith Manoharan
80e7ae3289SHelmut Schaaconfig ATH9K_TX99
81e7ae3289SHelmut Schaa	bool "Atheros ath9k TX99 testing support"
82e7ae3289SHelmut Schaa	depends on ATH9K_DEBUGFS && CFG80211_CERTIFICATION_ONUS
83e7ae3289SHelmut Schaa	default n
84e7ae3289SHelmut Schaa	---help---
85e7ae3289SHelmut Schaa	  Say N. This should only be enabled on systems undergoing
86e7ae3289SHelmut Schaa	  certification testing and evaluation in a controlled environment.
87e7ae3289SHelmut Schaa	  Enabling this will only enable TX99 support, all other modes of
88e7ae3289SHelmut Schaa	  operation will be disabled.
89e7ae3289SHelmut Schaa
90e7ae3289SHelmut Schaa	  TX99 support enables Specific Absorption Rate (SAR) testing.
91e7ae3289SHelmut Schaa	  SAR is the unit of measurement for the amount of radio frequency(RF)
92e7ae3289SHelmut Schaa	  absorbed by the body when using a wireless device. The RF exposure
93e7ae3289SHelmut Schaa	  limits used are expressed in the terms of SAR, which is a measure
94e7ae3289SHelmut Schaa	  of the electric and magnetic field strength and power density for
95e7ae3289SHelmut Schaa	  transmitters operating at frequencies from 300 kHz to 100 GHz.
96e7ae3289SHelmut Schaa	  Regulatory bodies around the world require that wireless device
97e7ae3289SHelmut Schaa	  be evaluated to meet the RF exposure limits set forth in the
98e7ae3289SHelmut Schaa	  governmental SAR regulations.
99e7ae3289SHelmut Schaa
10029942bc1SZefir Kurtisiconfig ATH9K_DFS_CERTIFIED
10129942bc1SZefir Kurtisi	bool "Atheros DFS support for certified platforms"
10200267d59SLuis R. Rodriguez	depends on ATH9K && CFG80211_CERTIFICATION_ONUS
10329942bc1SZefir Kurtisi	default n
10429942bc1SZefir Kurtisi	---help---
10529942bc1SZefir Kurtisi	  This option enables DFS support for initiating radiation on
10629942bc1SZefir Kurtisi	  ath9k. There is no way to dynamically detect if a card was DFS
10729942bc1SZefir Kurtisi	  certified and as such this is left as a build time option. This
10829942bc1SZefir Kurtisi	  option should only be enabled by system integrators that can
10929942bc1SZefir Kurtisi	  guarantee that all the platforms that their kernel will run on
11029942bc1SZefir Kurtisi	  have obtained appropriate regulatory body certification for a
11129942bc1SZefir Kurtisi	  respective Atheros card by using ath9k on the target shipping
11229942bc1SZefir Kurtisi	  platforms.
11329942bc1SZefir Kurtisi
11429942bc1SZefir Kurtisi	  This is currently only a placeholder for future DFS support,
11529942bc1SZefir Kurtisi	  as DFS support requires more components that still need to be
11629942bc1SZefir Kurtisi	  developed. At this point enabling this option won't do anything
11729942bc1SZefir Kurtisi	  except increase code size.
11829942bc1SZefir Kurtisi
119ce719152SLorenzo Bianconiconfig ATH9K_DYNACK
12055bb78d2SLorenzo Bianconi	bool "Atheros ath9k ACK timeout estimation algorithm"
121ce719152SLorenzo Bianconi	depends on ATH9K
122ce719152SLorenzo Bianconi	default n
123ce719152SLorenzo Bianconi	---help---
124ce719152SLorenzo Bianconi	  This option enables ath9k dynamic ACK timeout estimation algorithm
125ce719152SLorenzo Bianconi	  based on ACK frame RX timestamp, TX frame timestamp and frame
126ce719152SLorenzo Bianconi	  duration
127ce719152SLorenzo Bianconi
128bb00b1f7SSujith Manoharanconfig ATH9K_WOW
129bb00b1f7SSujith Manoharan	bool "Wake on Wireless LAN support (EXPERIMENTAL)"
130bb00b1f7SSujith Manoharan	depends on ATH9K && PM
131bb00b1f7SSujith Manoharan	default n
132bb00b1f7SSujith Manoharan	---help---
133bb00b1f7SSujith Manoharan	  This option enables Wake on Wireless LAN support for certain cards.
134bb00b1f7SSujith Manoharan	  Currently, AR9462 is supported.
135bb00b1f7SSujith Manoharan
13674e13060SJohannes Bergconfig ATH9K_RFKILL
13774e13060SJohannes Berg	bool "Atheros ath9k rfkill support" if EXPERT
13874e13060SJohannes Berg	depends on ATH9K
13974e13060SJohannes Berg	depends on RFKILL=y || RFKILL=ATH9K
14074e13060SJohannes Berg	default y
14174e13060SJohannes Berg	help
14274e13060SJohannes Berg	  Say Y to have ath9k poll the RF-Kill GPIO every couple of
14374e13060SJohannes Berg	  seconds. Turn off to save power, but enable it if you have
14474e13060SJohannes Berg	  a platform that can toggle the RF-Kill GPIO.
14574e13060SJohannes Berg
1460e721bd0SSujith Manoharanconfig ATH9K_CHANNEL_CONTEXT
1470e721bd0SSujith Manoharan	bool "Channel Context support"
1480e721bd0SSujith Manoharan	depends on ATH9K
1490e721bd0SSujith Manoharan	default n
1500e721bd0SSujith Manoharan	---help---
1510e721bd0SSujith Manoharan	  This option enables channel context support in ath9k, which is needed
1520e721bd0SSujith Manoharan	  for multi-channel concurrency. Enable this if P2P PowerSave support
1530e721bd0SSujith Manoharan	  is required.
1540e721bd0SSujith Manoharan
155935477edSFelix Fietkauconfig ATH9K_PCOEM
156935477edSFelix Fietkau	bool "Atheros ath9k support for PC OEM cards" if EXPERT
157935477edSFelix Fietkau	depends on ATH9K
158935477edSFelix Fietkau	default y
159935477edSFelix Fietkau
1605a4f2040SChristian Lamparterconfig ATH9K_PCI_NO_EEPROM
1615a4f2040SChristian Lamparter	tristate "Atheros ath9k pci loader for EEPROM-less chips"
1625a4f2040SChristian Lamparter	depends on ATH9K_PCI
1635a4f2040SChristian Lamparter	default n
1645a4f2040SChristian Lamparter	help
1655a4f2040SChristian Lamparter	  This separate driver provides a loader in order to support the
1665a4f2040SChristian Lamparter	  AR500X to AR92XX-generation of ath9k PCI(e) WiFi chips, which have
1675a4f2040SChristian Lamparter	  their initialization data (which contains the real PCI Device ID
1685a4f2040SChristian Lamparter	  that ath9k will need) stored together with the calibration data out
1695a4f2040SChristian Lamparter	  of reach for the ath9k chip.
1705a4f2040SChristian Lamparter
1715a4f2040SChristian Lamparter	  These devices are usually various network appliances, routers or
1725a4f2040SChristian Lamparter	  access Points and such.
1735a4f2040SChristian Lamparter
1745a4f2040SChristian Lamparter	  If unsure say N.
1755a4f2040SChristian Lamparter
176fb9987d0SSujithconfig ATH9K_HTC
177fb9987d0SSujith	tristate "Atheros HTC based wireless cards support"
178fb9987d0SSujith	depends on USB && MAC80211
179fb9987d0SSujith	select ATH9K_HW
180fb9987d0SSujith	select MAC80211_LEDS
181fb9987d0SSujith	select LEDS_CLASS
182fb9987d0SSujith	select NEW_LEDS
183fb9987d0SSujith	select ATH9K_COMMON
184fb9987d0SSujith	---help---
185fb9987d0SSujith	  Support for Atheros HTC based cards.
186fb9987d0SSujith	  Chipsets supported: AR9271
187fb9987d0SSujith
188*1141215cSFlavio Suligoi	  For more information:
189*1141215cSFlavio Suligoi	  https://wireless.wiki.kernel.org/en/users/Drivers/ath9k_htc
190fb9987d0SSujith
191fb9987d0SSujith	  The built module will be ath9k_htc.
192fb9987d0SSujith
193fb9987d0SSujithconfig ATH9K_HTC_DEBUGFS
194fb9987d0SSujith	bool "Atheros ath9k_htc debugging"
195fb9987d0SSujith	depends on ATH9K_HTC && DEBUG_FS
1961077ec47SChristian Lamparter	select ATH9K_COMMON_DEBUG
197fb9987d0SSujith	---help---
198fb9987d0SSujith	  Say Y, if you need access to ath9k_htc's statistics.
1991077ec47SChristian Lamparter	  As well as access to the FFT/spectral data.
200ed14dc0aSMiaoqing Pan
201ed14dc0aSMiaoqing Panconfig ATH9K_HWRNG
202ed14dc0aSMiaoqing Pan	bool "Random number generator support"
203ed14dc0aSMiaoqing Pan	depends on ATH9K && (HW_RANDOM = y || HW_RANDOM = ATH9K)
204739ccd76SMiaoqing Pan	default n
205ed14dc0aSMiaoqing Pan	---help---
206ed14dc0aSMiaoqing Pan	  This option incorporates the ADC register output as a source of
207ed14dc0aSMiaoqing Pan	  randomness into Linux entropy pool (/dev/urandom and /dev/random)
208ed14dc0aSMiaoqing Pan
209ed14dc0aSMiaoqing Pan	  Say Y, feeds the entropy directly from the WiFi driver to the input
210ed14dc0aSMiaoqing Pan	  pool.
2119df7ddc3SMatthias Schiffer
2129df7ddc3SMatthias Schifferconfig ATH9K_COMMON_SPECTRAL
2139df7ddc3SMatthias Schiffer	bool "Atheros ath9k/ath9k_htc spectral scan support"
2149df7ddc3SMatthias Schiffer	depends on ATH9K_DEBUGFS || ATH9K_HTC_DEBUGFS
2159df7ddc3SMatthias Schiffer	select RELAY
2169df7ddc3SMatthias Schiffer	default n
2179df7ddc3SMatthias Schiffer	---help---
2189df7ddc3SMatthias Schiffer	  Say Y to enable access to the FFT/spectral data via debugfs.
219