xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlegacy/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunconfig IWLEGACY
3*4882a593Smuzhiyun	tristate
4*4882a593Smuzhiyun	select FW_LOADER
5*4882a593Smuzhiyun	select NEW_LEDS
6*4882a593Smuzhiyun	select LEDS_CLASS
7*4882a593Smuzhiyun	select LEDS_TRIGGERS
8*4882a593Smuzhiyun	select MAC80211_LEDS
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunconfig IWL4965
11*4882a593Smuzhiyun	tristate "Intel Wireless WiFi 4965AGN (iwl4965)"
12*4882a593Smuzhiyun	depends on PCI && MAC80211
13*4882a593Smuzhiyun	select IWLEGACY
14*4882a593Smuzhiyun	help
15*4882a593Smuzhiyun	  This option enables support for
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun	  Select to build the driver supporting the:
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun	  Intel Wireless WiFi Link 4965AGN
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun	  This driver uses the kernel's mac80211 subsystem.
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun	  In order to use this driver, you will need a microcode (uCode)
24*4882a593Smuzhiyun	  image for it. You can obtain the microcode from:
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun	          <http://intellinuxwireless.org/>.
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun	  The microcode is typically installed in /lib/firmware. You can
29*4882a593Smuzhiyun	  look in the hotplug script /etc/hotplug/firmware.agent to
30*4882a593Smuzhiyun	  determine which directory FIRMWARE_DIR is set to when the script
31*4882a593Smuzhiyun	  runs.
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun	  If you want to compile the driver as a module ( = code which can be
34*4882a593Smuzhiyun	  inserted in and removed from the running kernel whenever you want),
35*4882a593Smuzhiyun	  say M here and read <file:Documentation/kbuild/modules.rst>.  The
36*4882a593Smuzhiyun	  module will be called iwl4965.
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunconfig IWL3945
39*4882a593Smuzhiyun	tristate "Intel PRO/Wireless 3945ABG/BG Network Connection (iwl3945)"
40*4882a593Smuzhiyun	depends on PCI && MAC80211
41*4882a593Smuzhiyun	select IWLEGACY
42*4882a593Smuzhiyun	help
43*4882a593Smuzhiyun	  Select to build the driver supporting the:
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun	  Intel PRO/Wireless 3945ABG/BG Network Connection
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun	  This driver uses the kernel's mac80211 subsystem.
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun	  In order to use this driver, you will need a microcode (uCode)
50*4882a593Smuzhiyun	  image for it. You can obtain the microcode from:
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun	          <http://intellinuxwireless.org/>.
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun	  The microcode is typically installed in /lib/firmware. You can
55*4882a593Smuzhiyun	  look in the hotplug script /etc/hotplug/firmware.agent to
56*4882a593Smuzhiyun	  determine which directory FIRMWARE_DIR is set to when the script
57*4882a593Smuzhiyun	  runs.
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun	  If you want to compile the driver as a module ( = code which can be
60*4882a593Smuzhiyun	  inserted in and removed from the running kernel whenever you want),
61*4882a593Smuzhiyun	  say M here and read <file:Documentation/kbuild/modules.rst>.  The
62*4882a593Smuzhiyun	  module will be called iwl3945.
63*4882a593Smuzhiyun
64*4882a593Smuzhiyunmenu "iwl3945 / iwl4965 Debugging Options"
65*4882a593Smuzhiyun	depends on IWLEGACY
66*4882a593Smuzhiyun
67*4882a593Smuzhiyunconfig IWLEGACY_DEBUG
68*4882a593Smuzhiyun	bool "Enable full debugging output in iwlegacy (iwl 3945/4965) drivers"
69*4882a593Smuzhiyun	depends on IWLEGACY
70*4882a593Smuzhiyun	help
71*4882a593Smuzhiyun	  This option will enable debug tracing output for the iwlegacy
72*4882a593Smuzhiyun	  drivers.
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun	  This will result in the kernel module being ~100k larger.  You can
75*4882a593Smuzhiyun	  control which debug output is sent to the kernel log by setting the
76*4882a593Smuzhiyun	  value in
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun		/sys/class/net/wlan0/device/debug_level
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun	  This entry will only exist if this option is enabled.
81*4882a593Smuzhiyun
82*4882a593Smuzhiyun	  To set a value, simply echo an 8-byte hex value to the same file:
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun		  % echo 0x43fff > /sys/class/net/wlan0/device/debug_level
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun	  You can find the list of debug mask values in:
87*4882a593Smuzhiyun		  drivers/net/wireless/iwlegacy/common.h
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun	  If this is your first time using this driver, you should say Y here
90*4882a593Smuzhiyun	  as the debug information can assist others in helping you resolve
91*4882a593Smuzhiyun	  any problems you may encounter.
92*4882a593Smuzhiyun
93*4882a593Smuzhiyunconfig IWLEGACY_DEBUGFS
94*4882a593Smuzhiyun	bool "iwlegacy (iwl 3945/4965) debugfs support"
95*4882a593Smuzhiyun	depends on IWLEGACY && MAC80211_DEBUGFS
96*4882a593Smuzhiyun	help
97*4882a593Smuzhiyun	  Enable creation of debugfs files for the iwlegacy drivers. This
98*4882a593Smuzhiyun	  is a low-impact option that allows getting insight into the
99*4882a593Smuzhiyun	  driver's state at runtime.
100*4882a593Smuzhiyun
101*4882a593Smuzhiyunendmenu
102