apex: Create both 8MB and 16MB apex binaries
[openwrt.git] / package / rt2x00 / src / rt2x00_compat.h
1 /*
2 * RT2X00 Compatability fixes for specific kernels.
3 */
4 #ifndef RT2X00_COMPAT_H
5 #define RT2X00_COMPAT_H
6
7 /*
8 * First include the 2 config headers.
9 * The rt2x00_config.h should overrule
10 * the kernel configuration.
11 */
12 #include <linux/autoconf.h>
13 #include "rt2x00_config.h"
14
15 #include <linux/kernel.h>
16 #include <linux/module.h>
17 #include <linux/version.h>
18
19 /*
20 * Check minimal requirements.
21 */
22 #if (!defined(CONFIG_MAC80211) && !defined(CONFIG_MAC80211_MODULE))
23 #error mac80211 support not enabled in kernel!
24 #endif
25
26 #if !defined(CONFIG_WLAN_80211)
27 #error 802.11 wlan card support not enabled in kernel!
28 #endif
29
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!
33 #endif
34 #if (!defined(CONFIG_EEPROM_93CX6) && !defined(CONFIG_EEPROM_93CX6_MODULE))
35 #error EEPROM_93CX6 has been disabled in your kernel!
36 #endif
37 #endif
38
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!
42 #endif
43 #endif
44
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!
48 #endif
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!
51 #endif
52 #endif
53
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!
57 #endif
58 #endif
59
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!
63 #endif
64 #endif
65
66 #endif /* RT2X00_COMPAT_H */
This page took 0.045033 seconds and 5 git commands to generate.