aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-23 15:12:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-23 15:12:57 +0000
commitc3a65ffc05604ec20f192c3df033bb1ce915e388 (patch)
tree719132559199d88c12adb1e6891b8c8855551e1a /package/hostapd
parent0a45b1733bfd4a28286f15db0ff1af53f728e8b2 (diff)
downloadupstream-c3a65ffc05604ec20f192c3df033bb1ce915e388.tar.gz
upstream-c3a65ffc05604ec20f192c3df033bb1ce915e388.tar.bz2
upstream-c3a65ffc05604ec20f192c3df033bb1ce915e388.zip
hostapd: fix compile error in the roboswitch driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19290 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd')
-rw-r--r--package/hostapd/Makefile3
-rw-r--r--package/hostapd/patches/340-roboswitch_fix.patch14
2 files changed, 16 insertions, 1 deletions
diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile
index 95b34141e7..93392110ab 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 0000000000..50dca64f1a
--- /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 <sys/ioctl.h>
+-#include <linux/if.h>
+ #include <linux/sockios.h>
+ #include <linux/if_ether.h>
+ #include <linux/mii.h>
++#include <net/if.h>
+
+ #include "common.h"
+ #include "driver.h"