$(foreach ver,$(COMPAT_VERSIONS),$(eval CONFIG_COMPAT_KERNEL_$(ver)=y))
ifdef CONFIG_COMPAT_KERNEL_25
-$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though"
+$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though")
endif
ifeq ($(CONFIG_CFG80211),y)
$(foreach ver,$(COMPAT_VERSIONS),$(eval CONFIG_COMPAT_KERNEL_$(ver)=y))
-ifdef CONFIG_COMPAT_KERNEL_25
--$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though"
+-$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though")
+ifdef CONFIG_COMPAT_WIRELESS_21
+$(error "ERROR: compat-wireless for selected driver requires a kernel >= 2.6.21")
endif
$(foreach ver,$(COMPAT_VERSIONS),$(eval CONFIG_COMPAT_KERNEL_$(ver)=y))
-ifdef CONFIG_COMPAT_KERNEL_25
--$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though"
+-$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though")
+ifdef CONFIG_COMPAT_WIRELESS_22
+$(error "ERROR: compat-wireless for selected driver requires a kernel >= 2.6.22")
endif
$(foreach ver,$(COMPAT_VERSIONS),$(eval CONFIG_COMPAT_KERNEL_$(ver)=y))
-ifdef CONFIG_COMPAT_KERNEL_25
--$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though"
+-$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though")
+ifdef CONFIG_COMPAT_WIRELESS_23
+$(error "ERROR: compat-wireless for selected driver requires a kernel >= 2.6.23")
endif
$(foreach ver,$(COMPAT_VERSIONS),$(eval CONFIG_COMPAT_KERNEL_$(ver)=y))
-ifdef CONFIG_COMPAT_KERNEL_25
--$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though"
+-$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though")
+ifdef CONFIG_COMPAT_WIRELESS_24
+$(error "ERROR: compat-wireless for selected driver requires a kernel >= 2.6.24")
endif