rt2x00: FIF_PSPOLL filter flag support
[safe/jmp/linux-2.6] / drivers / net / wireless / rt2x00 / Kconfig
index f333f61..ed1f997 100644 (file)
@@ -1,51 +1,22 @@
-config RT2X00
+menuconfig RT2X00
        tristate "Ralink driver support"
-       depends on MAC80211 && WLAN_80211 && EXPERIMENTAL
+       depends on MAC80211 && WLAN_80211
        ---help---
-         This will enable the experimental support for the Ralink drivers,
+         This will enable the support for the Ralink drivers,
          developed in the rt2x00 project <http://rt2x00.serialmonkey.com>.
 
          These drivers make use of the mac80211 stack.
 
          When building one of the individual drivers, the rt2x00 library
          will also be created. That library (when the driver is built as
-         a module) will be called "rt2x00lib.ko".
+         a module) will be called rt2x00lib.
 
          Additionally PCI and USB libraries will also be build depending
          on the types of drivers being selected, these libraries will be
-         called "rt2x00pci.ko" and "rt2x00usb.ko".
+         called rt2x00pci and rt2x00usb.
 
 if RT2X00
 
-config RT2X00_LIB
-       tristate
-
-config RT2X00_LIB_PCI
-       tristate
-       select RT2X00_LIB
-
-config RT2X00_LIB_USB
-       tristate
-       select RT2X00_LIB
-
-config RT2X00_LIB_FIRMWARE
-       boolean
-       depends on RT2X00_LIB
-       select FW_LOADER
-
-config RT2X00_LIB_CRYPTO
-       boolean
-       depends on RT2X00_LIB
-
-config RT2X00_LIB_RFKILL
-       boolean
-       depends on RT2X00_LIB
-       select RFKILL
-
-config RT2X00_LIB_LEDS
-       boolean
-       depends on RT2X00_LIB && NEW_LEDS
-
 config RT2400PCI
        tristate "Ralink rt2400 (PCI/PCMCIA) support"
        depends on PCI
@@ -55,24 +26,7 @@ config RT2400PCI
          This adds support for rt2400 wireless chipset family.
          Supported chips: RT2460.
 
-         When compiled as a module, this driver will be called "rt2400pci.ko".
-
-config RT2400PCI_RFKILL
-       bool "Ralink rt2400 rfkill support"
-       depends on RT2400PCI
-       select RT2X00_LIB_RFKILL
-       ---help---
-         This adds support for integrated rt2400 hardware that features a
-         hardware button to control the radio state.
-         This feature depends on the RF switch subsystem rfkill.
-
-config RT2400PCI_LEDS
-       bool "Ralink rt2400 leds support"
-       depends on RT2400PCI && NEW_LEDS
-       select LEDS_CLASS
-       select RT2X00_LIB_LEDS
-       ---help---
-         This adds support for led triggers provided my mac80211.
+         When compiled as a module, this driver will be called rt2400pci.
 
 config RT2500PCI
        tristate "Ralink rt2500 (PCI/PCMCIA) support"
@@ -83,24 +37,7 @@ config RT2500PCI
          This adds support for rt2500 wireless chipset family.
          Supported chips: RT2560.
 
-         When compiled as a module, this driver will be called "rt2500pci.ko".
-
-config RT2500PCI_RFKILL
-       bool "Ralink rt2500 rfkill support"
-       depends on RT2500PCI
-       select RT2X00_LIB_RFKILL
-       ---help---
-         This adds support for integrated rt2500 hardware that features a
-         hardware button to control the radio state.
-         This feature depends on the RF switch subsystem rfkill.
-
-config RT2500PCI_LEDS
-       bool "Ralink rt2500 leds support"
-       depends on RT2500PCI && NEW_LEDS
-       select LEDS_CLASS
-       select RT2X00_LIB_LEDS
-       ---help---
-         This adds support for led triggers provided my mac80211.
+         When compiled as a module, this driver will be called rt2500pci.
 
 config RT61PCI
        tristate "Ralink rt2501/rt61 (PCI/PCMCIA) support"
@@ -114,62 +51,73 @@ config RT61PCI
          This adds support for rt2501 wireless chipset family.
          Supported chips: RT2561, RT2561S & RT2661.
 
-         When compiled as a module, this driver will be called "rt61pci.ko".
-
-config RT61PCI_RFKILL
-       bool "Ralink rt2501/rt61 rfkill support"
-       depends on RT61PCI
-       select RT2X00_LIB_RFKILL
-       ---help---
-         This adds support for integrated rt61 hardware that features a
-         hardware button to control the radio state.
-         This feature depends on the RF switch subsystem rfkill.
-
-config RT61PCI_LEDS
-       bool "Ralink rt2501/rt61 leds support"
-       depends on RT61PCI && NEW_LEDS
-       select LEDS_CLASS
-       select RT2X00_LIB_LEDS
-       ---help---
-         This adds support for led triggers provided my mac80211.
+         When compiled as a module, this driver will be called rt61pci.
 
 config RT2500USB
        tristate "Ralink rt2500 (USB) support"
        depends on USB
        select RT2X00_LIB_USB
+       select RT2X00_LIB_CRYPTO
        ---help---
          This adds support for rt2500 wireless chipset family.
          Supported chips: RT2571 & RT2572.
 
-         When compiled as a module, this driver will be called "rt2500usb.ko".
-
-config RT2500USB_LEDS
-       bool "Ralink rt2500 leds support"
-       depends on RT2500USB && NEW_LEDS
-       select LEDS_CLASS
-       select RT2X00_LIB_LEDS
-       ---help---
-         This adds support for led triggers provided my mac80211.
+         When compiled as a module, this driver will be called rt2500usb.
 
 config RT73USB
        tristate "Ralink rt2501/rt73 (USB) support"
        depends on USB
        select RT2X00_LIB_USB
        select RT2X00_LIB_FIRMWARE
+       select RT2X00_LIB_CRYPTO
        select CRC_ITU_T
        ---help---
          This adds support for rt2501 wireless chipset family.
          Supported chips: RT2571W, RT2573 & RT2671.
 
-         When compiled as a module, this driver will be called "rt73usb.ko".
+         When compiled as a module, this driver will be called rt73usb.
 
-config RT73USB_LEDS
-       bool "Ralink rt2501/rt73 leds support"
-       depends on RT73USB && NEW_LEDS
-       select LEDS_CLASS
-       select RT2X00_LIB_LEDS
+config RT2800USB
+       tristate "Ralink rt2800 (USB) support"
+       depends on USB && EXPERIMENTAL
+       select RT2X00_LIB_USB
+       select RT2X00_LIB_HT
+       select RT2X00_LIB_FIRMWARE
+       select RT2X00_LIB_CRYPTO
+       select CRC_CCITT
        ---help---
-         This adds support for led triggers provided my mac80211.
+         This adds experimental support for rt2800 wireless chipset family.
+         Supported chips: RT2770, RT2870 & RT3070.
+
+         When compiled as a module, this driver will be called "rt2800usb.ko".
+
+config RT2X00_LIB_PCI
+       tristate
+       select RT2X00_LIB
+
+config RT2X00_LIB_USB
+       tristate
+       select RT2X00_LIB
+
+config RT2X00_LIB
+       tristate
+
+config RT2X00_LIB_HT
+       boolean
+
+config RT2X00_LIB_FIRMWARE
+       boolean
+       select FW_LOADER
+
+config RT2X00_LIB_CRYPTO
+       boolean
+
+config RT2X00_LIB_LEDS
+       boolean
+       default y if (RT2X00_LIB=y && LEDS_CLASS=y) || (RT2X00_LIB=m && LEDS_CLASS!=n)
+
+comment "rt2x00 leds support disabled due to modularized LEDS_CLASS and built-in rt2x00"
+       depends on RT2X00_LIB=y && LEDS_CLASS=m
 
 config RT2X00_LIB_DEBUGFS
        bool "Ralink debugfs support"