2 * RT2X00 Compatability fixes for specific kernels.
4 #ifndef RT2X00_COMPAT_H
5 #define RT2X00_COMPAT_H
8 * First include the 2 config headers.
9 * The rt2x00_config.h should overrule
10 * the kernel configuration.
12 #include <linux/autoconf.h>
13 #include "rt2x00_config.h"
15 #include <linux/kernel.h>
16 #include <linux/module.h>
17 #include <linux/version.h>
20 * Check minimal requirements.
22 #if (!defined(CONFIG_MAC80211) && !defined(CONFIG_MAC80211_MODULE))
23 #error mac80211 support not enabled in kernel!
26 #if !defined(CONFIG_WLAN_80211)
27 #error 802.11 wlan card support not enabled in kernel!
30 #if (defined(CONFIG_RT2400PCI) || defined(CONFIG_RT2500PCI) || defined(CONFIG_RT61PCI))
31 #if (!defined(CONFIG_PCI) && !defined(CONFIG_PCI_MODULE))
32 #error PCI has been disabled in your kernel!
34 #if (!defined(CONFIG_EEPROM_93CX6) && !defined(CONFIG_EEPROM_93CX6_MODULE))
35 #error EEPROM_93CX6 has been disabled in your kernel!
39 #if (defined(CONFIG_RT2500USB) || defined(CONFIG_RT73USB))
40 #if (!defined(CONFIG_USB) && !defined(CONFIG_USB_MODULE))
41 #error USB has been disabled in your kernel!
45 #if (defined(CONFIG_RT61PCI) || defined(CONFIG_RT73USB))
46 #if (!defined(CONFIG_FW_LOADER) && !defined(CONFIG_FW_LOADER_MODULE))
47 #error Firmware loading has been disabled in your kernel!
49 #if (!defined(CONFIG_CRC_ITU_T) && !defined(CONFIG_CRC_ITU_T_MODULE))
50 #error CRC_ITU_T loading has been disabled in your kernel!
54 #if (defined(CONFIG_RT2X00_DEBUGFS))
55 #if (!defined(CONFIG_MAC80211_DEBUGFS) && !defined(CONFIG_MAC80211_DEBUGFS_MODULE))
56 #error mac80211 debugfs support has been disabled in your kernel!
60 #if (defined(CONFIG_RT2400PCI_BUTTON) || defined(CONFIG_RT2500PCI_BUTTON) || defined(CONFIG_RT61PCI_BUTTON))
61 #if (!defined(CONFIG_RFKILL) && !defined (CONFIG_RFKILL_MODULE))
62 #error RFKILL has been disabled in your kernel!
66 #endif /* RT2X00_COMPAT_H */
This page took 0.045033 seconds and 5 git commands to generate.