From 8499c45a7355570239f1d54b05803f42a8989644 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 23 Jan 2010 15:12:57 +0000 Subject: [PATCH] hostapd: fix compile error in the roboswitch driver SVN-Revision: 19290 --- package/hostapd/Makefile | 3 ++- package/hostapd/patches/340-roboswitch_fix.patch | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 package/hostapd/patches/340-roboswitch_fix.patch diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile index 95b34141e78..93392110ab1 100644 --- a/package/hostapd/Makefile +++ b/package/hostapd/Makefile @@ -54,7 +54,6 @@ DRIVER_MAKEOPTS= \ CONFIG_DRIVER_NL80211=$(CONFIG_PACKAGE_kmod-mac80211) \ CONFIG_DRIVER_MADWIFI=$(CONFIG_PACKAGE_kmod-madwifi) \ CONFIG_DRIVER_HOSTAP=$(CONFIG_PACKAGE_kmod-hostap) \ - CONFIG_DRIVER_ROBOSWITCH=$(CONFIG_PACKAGE_kmod-switch) \ CONFIG_IEEE80211N=$(CONFIG_PACKAGE_kmod-ath9k) ifeq ($(LOCAL_TYPE),supplicant) @@ -66,6 +65,8 @@ endif ifneq ($(LOCAL_TYPE),hostapd) ifdef CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK TARGET_CFLAGS += -DNO_TIMESTAMP_CHECK + DRIVER_MAKEOPTS += \ + CONFIG_DRIVER_ROBOSWITCH=$(CONFIG_PACKAGE_kmod-switch) endif endif diff --git a/package/hostapd/patches/340-roboswitch_fix.patch b/package/hostapd/patches/340-roboswitch_fix.patch new file mode 100644 index 00000000000..50dca64f1ab --- /dev/null +++ b/package/hostapd/patches/340-roboswitch_fix.patch @@ -0,0 +1,14 @@ +--- a/src/drivers/driver_roboswitch.c ++++ b/src/drivers/driver_roboswitch.c +@@ -14,10 +14,10 @@ + + #include "includes.h" + #include +-#include + #include + #include + #include ++#include + + #include "common.h" + #include "driver.h"