18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig IWLEGACY
38c2ecf20Sopenharmony_ci	tristate
48c2ecf20Sopenharmony_ci	select FW_LOADER
58c2ecf20Sopenharmony_ci	select NEW_LEDS
68c2ecf20Sopenharmony_ci	select LEDS_CLASS
78c2ecf20Sopenharmony_ci	select LEDS_TRIGGERS
88c2ecf20Sopenharmony_ci	select MAC80211_LEDS
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciconfig IWL4965
118c2ecf20Sopenharmony_ci	tristate "Intel Wireless WiFi 4965AGN (iwl4965)"
128c2ecf20Sopenharmony_ci	depends on PCI && MAC80211
138c2ecf20Sopenharmony_ci	select IWLEGACY
148c2ecf20Sopenharmony_ci	help
158c2ecf20Sopenharmony_ci	  This option enables support for
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci	  Select to build the driver supporting the:
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci	  Intel Wireless WiFi Link 4965AGN
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci	  This driver uses the kernel's mac80211 subsystem.
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci	  In order to use this driver, you will need a microcode (uCode)
248c2ecf20Sopenharmony_ci	  image for it. You can obtain the microcode from:
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci	          <http://intellinuxwireless.org/>.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci	  The microcode is typically installed in /lib/firmware. You can
298c2ecf20Sopenharmony_ci	  look in the hotplug script /etc/hotplug/firmware.agent to
308c2ecf20Sopenharmony_ci	  determine which directory FIRMWARE_DIR is set to when the script
318c2ecf20Sopenharmony_ci	  runs.
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci	  If you want to compile the driver as a module ( = code which can be
348c2ecf20Sopenharmony_ci	  inserted in and removed from the running kernel whenever you want),
358c2ecf20Sopenharmony_ci	  say M here and read <file:Documentation/kbuild/modules.rst>.  The
368c2ecf20Sopenharmony_ci	  module will be called iwl4965.
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ciconfig IWL3945
398c2ecf20Sopenharmony_ci	tristate "Intel PRO/Wireless 3945ABG/BG Network Connection (iwl3945)"
408c2ecf20Sopenharmony_ci	depends on PCI && MAC80211
418c2ecf20Sopenharmony_ci	select IWLEGACY
428c2ecf20Sopenharmony_ci	help
438c2ecf20Sopenharmony_ci	  Select to build the driver supporting the:
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci	  Intel PRO/Wireless 3945ABG/BG Network Connection
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci	  This driver uses the kernel's mac80211 subsystem.
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci	  In order to use this driver, you will need a microcode (uCode)
508c2ecf20Sopenharmony_ci	  image for it. You can obtain the microcode from:
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci	          <http://intellinuxwireless.org/>.
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci	  The microcode is typically installed in /lib/firmware. You can
558c2ecf20Sopenharmony_ci	  look in the hotplug script /etc/hotplug/firmware.agent to
568c2ecf20Sopenharmony_ci	  determine which directory FIRMWARE_DIR is set to when the script
578c2ecf20Sopenharmony_ci	  runs.
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci	  If you want to compile the driver as a module ( = code which can be
608c2ecf20Sopenharmony_ci	  inserted in and removed from the running kernel whenever you want),
618c2ecf20Sopenharmony_ci	  say M here and read <file:Documentation/kbuild/modules.rst>.  The
628c2ecf20Sopenharmony_ci	  module will be called iwl3945.
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_cimenu "iwl3945 / iwl4965 Debugging Options"
658c2ecf20Sopenharmony_ci	depends on IWLEGACY
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ciconfig IWLEGACY_DEBUG
688c2ecf20Sopenharmony_ci	bool "Enable full debugging output in iwlegacy (iwl 3945/4965) drivers"
698c2ecf20Sopenharmony_ci	depends on IWLEGACY
708c2ecf20Sopenharmony_ci	help
718c2ecf20Sopenharmony_ci	  This option will enable debug tracing output for the iwlegacy
728c2ecf20Sopenharmony_ci	  drivers.
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci	  This will result in the kernel module being ~100k larger.  You can
758c2ecf20Sopenharmony_ci	  control which debug output is sent to the kernel log by setting the
768c2ecf20Sopenharmony_ci	  value in
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci		/sys/class/net/wlan0/device/debug_level
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci	  This entry will only exist if this option is enabled.
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci	  To set a value, simply echo an 8-byte hex value to the same file:
838c2ecf20Sopenharmony_ci
848c2ecf20Sopenharmony_ci		  % echo 0x43fff > /sys/class/net/wlan0/device/debug_level
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci	  You can find the list of debug mask values in:
878c2ecf20Sopenharmony_ci		  drivers/net/wireless/iwlegacy/common.h
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci	  If this is your first time using this driver, you should say Y here
908c2ecf20Sopenharmony_ci	  as the debug information can assist others in helping you resolve
918c2ecf20Sopenharmony_ci	  any problems you may encounter.
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ciconfig IWLEGACY_DEBUGFS
948c2ecf20Sopenharmony_ci	bool "iwlegacy (iwl 3945/4965) debugfs support"
958c2ecf20Sopenharmony_ci	depends on IWLEGACY && MAC80211_DEBUGFS
968c2ecf20Sopenharmony_ci	help
978c2ecf20Sopenharmony_ci	  Enable creation of debugfs files for the iwlegacy drivers. This
988c2ecf20Sopenharmony_ci	  is a low-impact option that allows getting insight into the
998c2ecf20Sopenharmony_ci	  driver's state at runtime.
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ciendmenu
102