diff mbox

[1/2] compat-wireless: disable rt2800 if crc_ccitt is not available

Message ID 20100310035408.28564.65912.stgit@mj.roinet.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Pavel Roskin March 10, 2010, 3:54 a.m. UTC
None
diff mbox

Patch

diff --git a/config.mk b/config.mk
index 5565e12..e5be3fd 100644
--- 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