iwlwifi: unify tx antenna toggling
[safe/jmp/linux-2.6] / drivers / net / wireless / iwlwifi / Kconfig
index 8d52a26..b0ac0ce 100644 (file)
 config IWLWIFI
-       bool "Intel Wireless WiFi Link Drivers"
+       tristate
+
+config IWLCORE
+       tristate "Intel Wireless Wifi Core"
        depends on PCI && MAC80211 && WLAN_80211 && EXPERIMENTAL
-       select FW_LOADER
+       select IWLWIFI
+       select MAC80211_LEDS if IWLWIFI_LEDS
+       select LEDS_CLASS if IWLWIFI_LEDS
+       select RFKILL if IWLWIFI_RFKILL
+
+config IWLWIFI_LEDS
+       bool
        default n
-       ---help---
-         Select to enable drivers based on the iwlwifi project.  This
-         project provides a common foundation for Intel's wireless
-         drivers designed to use the mac80211 subsystem.
 
-         See <file:Documentation/networking/README.iwlwifi> for
-         information on the capabilities currently enabled in this
-         driver and for tips for debugging issues and problems.
+config IWLWIFI_RFKILL
+       boolean "Iwlwifi RF kill support"
+       depends on IWLCORE
 
 config IWLWIFI_DEBUG
-       bool "Enable full debugging output in iwlwifi drivers"
-       depends on IWLWIFI
-       default y
+       bool "Enable full debugging output in iwlagn driver"
+       depends on IWLCORE
        ---help---
-         This option will enable debug tracing output for the iwlwifi
-         drivers.
+         This option will enable debug tracing output for the iwlwifi drivers
 
          This will result in the kernel module being ~100k larger.  You can
          control which debug output is sent to the kernel log by setting the
          value in
 
-                 /sys/bus/pci/drivers/${DRIVER}/debug_level
+               /sys/class/net/wlan0/device/debug_level
 
          This entry will only exist if this option is enabled.
 
          To set a value, simply echo an 8-byte hex value to the same file:
 
-                 % echo 0x43fff > /sys/bus/pci/drivers/${DRIVER}/debug_level
+                 % echo 0x43fff > /sys/class/net/wlan0/device/debug_level
 
          You can find the list of debug mask values in:
-                 drivers/net/wireless/mac80211/iwlwifi/iwl-debug.h
+                 drivers/net/wireless/iwlwifi/iwl-debug.h
 
          If this is your first time using this driver, you should say Y here
          as the debug information can assist others in helping you resolve
          any problems you may encounter.
 
-config IWLWIFI_SENSITIVITY
-       bool "Enable Sensitivity Calibration in iwlwifi drivers"
-       depends on IWLWIFI
-       default y
-       ---help---
-         This option will enable sensitivity calibration for the iwlwifi
-         drivers.
+config IWLWIFI_DEBUGFS
+        bool "Iwlwifi debugfs support"
+        depends on IWLCORE && IWLWIFI_DEBUG && MAC80211_DEBUGFS
+        ---help---
+         Enable creation of debugfs files for the iwlwifi drivers.
 
-config IWLWIFI_SPECTRUM_MEASUREMENT
-       bool "Enable Spectrum Measurement in iwlwifi drivers"
-       depends on IWLWIFI
-       default y
-       ---help---
-         This option will enable spectrum measurement for the iwlwifi drivers.
-
-config IWLWIFI_QOS
-       bool "Enable Wireless QoS in iwlwifi drivers"
-       depends on IWLWIFI
-       default y
-       ---help---
-         This option will enable wireless quality of service (QoS) for the
-         iwlwifi drivers.
-
-config IWLWIFI_HT
-       bool "Enable 802.11n HT features in iwlwifi drivers"
-       depends on EXPERIMENTAL
-       depends on IWLWIFI && MAC80211_HT
-       default n
-       ---help---
-         This option enables IEEE 802.11n High Throughput features
-         for the iwlwifi drivers.
-
-config IWL4965
-       tristate "Intel Wireless WiFi 4965AGN"
-       depends on m && IWLWIFI && EXPERIMENTAL
-       default m
+config IWLAGN
+       tristate "Intel Wireless WiFi Next Gen AGN"
+       depends on PCI && MAC80211 && WLAN_80211 && EXPERIMENTAL
+       select FW_LOADER
+       select IWLCORE
        ---help---
          Select to build the driver supporting the:
 
-         Intel Wireless WiFi Link 4965AGN
+         Intel Wireless WiFi Link Next-Gen AGN
 
          This driver uses the kernel's mac80211 subsystem.
 
-         See <file:Documentation/networking/README.iwlwifi> for
-         information on the capabilities currently enabled in this
-         driver and for tips for debugging any issues or problems.
-
          In order to use this driver, you will need a microcode (uCode)
          image for it. You can obtain the microcode from:
 
                  <http://intellinuxwireless.org/>.
 
-         See the above referenced README.iwlwifi for information on where
-         to install the microcode images.
+         The microcode is typically installed in /lib/firmware. You can
+         look in the hotplug script /etc/hotplug/firmware.agent to
+         determine which directory FIRMWARE_DIR is set to when the script
+         runs.
 
          If you want to compile the driver as a module ( = code which can be
-         inserted in and remvoed from the running kernel whenever you want),
+         inserted in and removed from the running kernel whenever you want),
          say M here and read <file:Documentation/kbuild/modules.txt>.  The
-         module will be called iwl4965.ko.
+         module will be called iwlagn.ko.
+
+config IWLAGN_SPECTRUM_MEASUREMENT
+       bool "Enable Spectrum Measurement in iwlagn driver"
+       depends on IWLAGN
+       ---help---
+         This option will enable spectrum measurement for the iwlagn driver.
+
+config IWLAGN_LEDS
+       bool "Enable LEDS features in iwlagn driver"
+       depends on IWLAGN
+       select IWLWIFI_LEDS
+       ---help---
+         This option enables LEDS for the iwlagn drivers
+
+
+config IWL4965
+       bool "Intel Wireless WiFi 4965AGN"
+       depends on IWLAGN
+       ---help---
+         This option enables support for Intel Wireless WiFi Link 4965AGN
+
+config IWL5000
+       bool "Intel Wireless WiFi 5000AGN"
+       depends on IWLAGN
+       ---help---
+         This option enables support for Intel Wireless WiFi Link 5000AGN Family
 
 config IWL3945
        tristate "Intel PRO/Wireless 3945ABG/BG Network Connection"
-       depends on m && IWLWIFI && EXPERIMENTAL
-       default m
+       depends on PCI && MAC80211 && WLAN_80211 && EXPERIMENTAL
+       select FW_LOADER
+       select IWLWIFI
+       select MAC80211_LEDS if IWL3945_LEDS
+       select LEDS_CLASS if IWL3945_LEDS
+       select RFKILL if IWL3945_RFKILL
        ---help---
          Select to build the driver supporting the:
 
@@ -110,19 +116,60 @@ config IWL3945
 
          This driver uses the kernel's mac80211 subsystem.
 
-         See <file:Documentation/networking/README.iwlwifi> for
-         information on the capabilities currently enabled in this
-         driver and for tips for debugging any issues or problems.
-
          In order to use this driver, you will need a microcode (uCode)
          image for it. You can obtain the microcode from:
 
                  <http://intellinuxwireless.org/>.
 
-         See the above referenced README.iwlwifi for information on where
-         to install the microcode images.
+         The microcode is typically installed in /lib/firmware. You can
+         look in the hotplug script /etc/hotplug/firmware.agent to
+         determine which directory FIRMWARE_DIR is set to when the script
+         runs.
 
          If you want to compile the driver as a module ( = code which can be
-         inserted in and remvoed from the running kernel whenever you want),
+         inserted in and removed from the running kernel whenever you want),
          say M here and read <file:Documentation/kbuild/modules.txt>.  The
          module will be called iwl3945.ko.
+
+config IWL3945_RFKILL
+       bool "Enable RF kill support in iwl3945 drivers"
+       depends on IWL3945
+
+config IWL3945_SPECTRUM_MEASUREMENT
+       bool "Enable Spectrum Measurement in iwl3945 drivers"
+       depends on IWL3945
+       ---help---
+         This option will enable spectrum measurement for the iwl3945 driver.
+
+config IWL3945_LEDS
+       bool "Enable LEDS features in iwl3945 driver"
+       depends on IWL3945
+       ---help---
+         This option enables LEDS for the iwl3945 driver.
+
+config IWL3945_DEBUG
+       bool "Enable full debugging output in iwl3945 driver"
+       depends on IWL3945
+       ---help---
+         This option will enable debug tracing output for the iwl3945
+         driver.
+
+         This will result in the kernel module being ~100k larger.  You can
+         control which debug output is sent to the kernel log by setting the
+         value in
+
+                 /sys/bus/pci/drivers/${DRIVER}/debug_level
+
+         This entry will only exist if this option is enabled.
+
+         To set a value, simply echo an 8-byte hex value to the same file:
+
+                 % echo 0x43fff > /sys/bus/pci/drivers/${DRIVER}/debug_level
+
+         You can find the list of debug mask values in:
+                 drivers/net/wireless/iwlwifi/iwl-3945-debug.h
+
+         If this is your first time using this driver, you should say Y here
+         as the debug information can assist others in helping you resolve
+         any problems you may encounter.
+