aboutsummaryrefslogtreecommitdiffstats
path: root/package/rt2x00/src/rt2x00_compat.h
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-07-26 20:00:24 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-07-26 20:00:24 +0000
commitc43c4da559585d9a0e6d833aff5e4c99d01f1300 (patch)
treec548510d6f7535a6a1370588debd193d0738bc07 /package/rt2x00/src/rt2x00_compat.h
parent1a12e151ee8b9c2257cbd14ba8769f8065e19ec9 (diff)
downloadupstream-c43c4da559585d9a0e6d833aff5e4c99d01f1300.tar.gz
upstream-c43c4da559585d9a0e6d833aff5e4c99d01f1300.tar.bz2
upstream-c43c4da559585d9a0e6d833aff5e4c99d01f1300.zip
Add rt2x00-mac80211 snapshot (#1916)
SVN-Revision: 8184
Diffstat (limited to 'package/rt2x00/src/rt2x00_compat.h')
-rw-r--r--package/rt2x00/src/rt2x00_compat.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/package/rt2x00/src/rt2x00_compat.h b/package/rt2x00/src/rt2x00_compat.h
new file mode 100644
index 0000000000..111c51ea36
--- /dev/null
+++ b/package/rt2x00/src/rt2x00_compat.h
@@ -0,0 +1,60 @@
+/*
+ * RT2X00 Compatability fixes for specific kernels.
+ */
+#ifndef RT2X00_COMPAT_H
+#define RT2X00_COMPAT_H
+
+/*
+ * First include the 2 config headers.
+ * The rt2x00_config.h should overrule
+ * the kernel configuration.
+ */
+#include <linux/autoconf.h>
+#include "rt2x00_config.h"
+
+#include <linux/kernel.h>
+#include <linux/module.h>
+#include <linux/version.h>
+
+/*
+ * Check minimal requirements.
+ */
+#if (!defined(CONFIG_MAC80211) && !defined(CONFIG_MAC80211_MODULE))
+#error mac80211 support not enabled in kernel!
+#endif
+
+#if !defined(CONFIG_WLAN_80211)
+#error 802.11 wlan card support not enabled in kernel!
+#endif
+
+#if (defined(CONFIG_RT2400PCI) || defined(CONFIG_RT2500PCI) || defined(CONFIG_RT61PCI))
+#if (!defined(CONFIG_PCI) && !defined(CONFIG_PCI_MODULE))
+#error PCI has been disabled in your kernel!
+#endif
+#if (!defined(CONFIG_EEPROM_93CX6) && !defined(CONFIG_EEPROM_93CX6_MODULE))
+#error EEPROM_93CX6 has been disabled in your kernel!
+#endif
+#endif
+
+#if (defined(CONFIG_RT2500USB) || defined(CONFIG_RT73USB))
+#if (!defined(CONFIG_USB) && !defined(CONFIG_USB_MODULE))
+#error USB has been disabled in your kernel!
+#endif
+#endif
+
+#if (defined(CONFIG_RT61PCI) || defined(CONFIG_RT73USB))
+#if (!defined(CONFIG_FW_LOADER) && !defined(CONFIG_FW_LOADER_MODULE))
+#error Firmware loading has been disabled in your kernel!
+#endif
+#if (!defined(CONFIG_CRC_ITU_T) && !defined(CONFIG_CRC_ITU_T_MODULE))
+#error CRC_ITU_T loading has been disabled in your kernel!
+#endif
+#endif
+
+#if (defined(CONFIG_RT2400PCI_BUTTON) || defined(CONFIG_RT2500PCI_BUTTON) || defined(CONFIG_RT61PCI_BUTTON))
+#if (!defined(CONFIG_RFKILL) && !defined (CONFIG_RFKILL_MODULE))
+#error RFKILL has been disabled in your kernel!
+#endif
+#endif
+
+#endif /* RT2X00_COMPAT_H */