From bcdfe51c4243a90a84d0bb6dff0f27e1865fc38f Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Sun, 16 Nov 2008 14:38:57 -0800 Subject: [PATCH] Complain and exit if the user's kernel was built with cfg80211 built into the kernel, we require it be built as a module. Signed-off-by: Luis R. Rodriguez --- config.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.mk b/config.mk index 740e20475d77..4f5a6b982604 100644 --- a/config.mk +++ b/config.mk @@ -31,6 +31,10 @@ ifeq ($(shell test $(KERNEL_SUBLEVEL) -lt 27 && echo yes),yes) $(error "ERROR: You should use compat-wireless-2.6-old for older kernels, this one is for kenrels >= 2.6.27") endif +ifeq ($(CONFIG_CFG80211),y) +$(error "ERROR: your kernel has CONFIG_CFG80211=y, you should have it CONFIG_CFG80211=m if you want to use this thing.") +endif + # 2.6.27 has FTRACE_DYNAMIC borked, so we will complain if # you have it enabled, otherwise you will very likely run into # a kernel panic. -- 2.30.2