compat-wireless: disable rt2800 if crc_ccitt is not available
authorPavel Roskin <proski@gnu.org>
Wed, 10 Mar 2010 03:54:08 +0000 (22:54 -0500)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 10 Mar 2010 20:35:47 +0000 (12:35 -0800)
Signed-off-by: Pavel Roskin <proski@gnu.org>
config.mk

index 5565e12e3402173de0edb46a2536587919fbee47..e5be3fd4d04d39a6884a7036a2a940eb1691807c 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -281,8 +281,10 @@ CONFIG_ADM8211=m
 CONFIG_RT2X00_LIB_PCI=m
 CONFIG_RT2400PCI=m
 CONFIG_RT2500PCI=m
+ifneq ($(CONFIG_CRC_CCITT),)
 CONFIG_RT2800PCI=m
 CONFIG_RT2800PCI_PCI=y
+endif
 NEED_RT2X00=y
 
 # Two rt2x00 drivers require firmware: rt61pci and rt73usb. They depend on
@@ -358,7 +360,9 @@ endif
 
 # RT2500USB does not require firmware
 CONFIG_RT2500USB=m
+ifneq ($(CONFIG_CRC_CCITT),)
 CONFIG_RT2800USB=m
+endif
 CONFIG_RT2X00_LIB_USB=m
 NEED_RT2X00=y
 # RT73USB requires firmware