18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: ISC
28c2ecf20Sopenharmony_ciconfig ATH5K
38c2ecf20Sopenharmony_ci	tristate "Atheros 5xxx wireless cards support"
48c2ecf20Sopenharmony_ci	depends on (PCI || ATH25) && MAC80211
58c2ecf20Sopenharmony_ci	select ATH_COMMON
68c2ecf20Sopenharmony_ci	select MAC80211_LEDS if LEDS_CLASS=y || LEDS_CLASS=MAC80211
78c2ecf20Sopenharmony_ci	select ATH5K_AHB if ATH25
88c2ecf20Sopenharmony_ci	select ATH5K_PCI if !ATH25
98c2ecf20Sopenharmony_ci	help
108c2ecf20Sopenharmony_ci	  This module adds support for wireless adapters based on
118c2ecf20Sopenharmony_ci	  Atheros 5xxx chipset.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci	  Currently the following chip versions are supported:
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci	  MAC: AR5211 AR5212
168c2ecf20Sopenharmony_ci	  PHY: RF5111/2111 RF5112/2112 RF5413/2413
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci	  This driver uses the kernel's mac80211 subsystem.
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci	  If you choose to build a module, it'll be called ath5k. Say M if
218c2ecf20Sopenharmony_ci	  unsure.
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciconfig ATH5K_DEBUG
248c2ecf20Sopenharmony_ci	bool "Atheros 5xxx debugging"
258c2ecf20Sopenharmony_ci	depends on ATH5K
268c2ecf20Sopenharmony_ci	help
278c2ecf20Sopenharmony_ci	  Atheros 5xxx debugging messages.
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci	  Say Y, if and you will get debug options for ath5k.
308c2ecf20Sopenharmony_ci	  To use this, you need to mount debugfs:
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci	  mount -t debugfs debug /sys/kernel/debug
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci	  You will get access to files under:
358c2ecf20Sopenharmony_ci	  /sys/kernel/debug/ath5k/phy0/
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci	  To enable debug, pass the debug level to the debug module
388c2ecf20Sopenharmony_ci	  parameter. For example:
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci	  modprobe ath5k debug=0x00000400
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciconfig ATH5K_TRACER
438c2ecf20Sopenharmony_ci	bool "Atheros 5xxx tracer"
448c2ecf20Sopenharmony_ci	depends on ATH5K
458c2ecf20Sopenharmony_ci	depends on EVENT_TRACING
468c2ecf20Sopenharmony_ci	help
478c2ecf20Sopenharmony_ci	  Say Y here to enable tracepoints for the ath5k driver
488c2ecf20Sopenharmony_ci	  using the kernel tracing infrastructure.  Select this
498c2ecf20Sopenharmony_ci	  option if you are interested in debugging the driver.
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci	  If unsure, say N.
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ciconfig ATH5K_AHB
548c2ecf20Sopenharmony_ci	bool "Atheros 5xxx AHB bus support"
558c2ecf20Sopenharmony_ci	depends on ATH25 && ATH5K
568c2ecf20Sopenharmony_ci	help
578c2ecf20Sopenharmony_ci	  This adds support for WiSoC type chipsets of the 5xxx Atheros
588c2ecf20Sopenharmony_ci	  family.
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciconfig ATH5K_PCI
618c2ecf20Sopenharmony_ci	bool "Atheros 5xxx PCI bus support"
628c2ecf20Sopenharmony_ci	depends on (!ATH25 && PCI)
638c2ecf20Sopenharmony_ci	help
648c2ecf20Sopenharmony_ci	  This adds support for PCI type chipsets of the 5xxx Atheros
658c2ecf20Sopenharmony_ci	  family.
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ciconfig ATH5K_TEST_CHANNELS
688c2ecf20Sopenharmony_ci	bool "Enables testing channels on ath5k"
698c2ecf20Sopenharmony_ci	depends on ATH5K && CFG80211_CERTIFICATION_ONUS
708c2ecf20Sopenharmony_ci	help
718c2ecf20Sopenharmony_ci	  This enables non-standard IEEE 802.11 channels on ath5k, which
728c2ecf20Sopenharmony_ci	  can be used for research purposes. This option should be disabled
738c2ecf20Sopenharmony_ci	  unless doing research.
74