Fix build with drivers that use driver_wext.c
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 15 Oct 2010 19:11:33 +0000 (22:11 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 15 Oct 2010 19:11:33 +0000 (22:11 +0300)
If CONFIG_DRIVER_WEXT=y is not used in .config, but driver_wext.c
gets pull in to help another driver wrapper, rfkill code needs to
included to fix the build.

src/drivers/drivers.mak

index b1b05cc..aeb7924 100644 (file)
@@ -154,6 +154,7 @@ endif
 ifdef CONFIG_WIRELESS_EXTENSION
 DRV_WPA_CFLAGS += -DCONFIG_WIRELESS_EXTENSION
 DRV_WPA_OBJS += ../src/drivers/driver_wext.o
+NEED_RFKILL=y
 endif
 
 ifdef NEED_NETLINK