From 85b3088c553aca8461bc7b1d1615cf35cd985433 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 23 Aug 2016 15:04:02 +0200 Subject: [PATCH] package: add PACKAGE_MAC80211_CAPWAP_WTP --- openwrt/freewtp/Makefile | 6 +++-- .../package-config-option.patch | 23 +++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 openwrt/mac80211_patches/package-config-option.patch diff --git a/openwrt/freewtp/Makefile b/openwrt/freewtp/Makefile index 0efb66f..8600d7c 100644 --- a/openwrt/freewtp/Makefile +++ b/openwrt/freewtp/Makefile @@ -50,7 +50,8 @@ define KernelPackage/freewtp SUBMENU:=Network Support TITLE:=Freewtp Data Channel Module MAINTAINER:=Travelping GmbH - DEPENDS:=+kmod-mac80211 +kmod-iptunnel +kmod-udptunnel4 +IPV6:kmod-udptunnel6 + DEPENDS:=+kmod-mac80211 +kmod-iptunnel +kmod-udptunnel4 +IPV6:kmod-udptunnel6 \ + +@PACKAGE_MAC80211_CAPWAP_WTP FILES:=$(PKG_BUILD_DIR)/kmod/wtp.ko AUTOLOAD:=$(call AutoLoad,70,wtp) endef @@ -73,7 +74,8 @@ NOSTDINC_FLAGS = \ -I$(STAGING_DIR)/usr/include/mac80211/uapi \ -I$(STAGING_DIR)/usr/include/mac80211 \ -include backport/autoconf.h \ - -include backport/backport.h + -include backport/backport.h \ + -DCONFIG_MAC80211_CAPWAP_WTP define Build/Compile/kmod +$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \ diff --git a/openwrt/mac80211_patches/package-config-option.patch b/openwrt/mac80211_patches/package-config-option.patch new file mode 100644 index 0000000..579dcaa --- /dev/null +++ b/openwrt/mac80211_patches/package-config-option.patch @@ -0,0 +1,23 @@ +diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile +index 5c0ca3f..736f0bd 100644 +--- a/package/kernel/mac80211/Makefile ++++ b/package/kernel/mac80211/Makefile +@@ -130,6 +130,10 @@ define KernelPackage/mac80211/config + bool "Enable 802.11s mesh support" + default y + ++ config PACKAGE_MAC80211_CAPWAP_WTP ++ bool "Enabled CAPWAP support" ++ default n ++ + endif + endef + +@@ -1468,6 +1472,7 @@ config-$(call config_package,cfg80211) += CFG80211 + + config-$(call config_package,mac80211) += MAC80211 + config-$(CONFIG_PACKAGE_MAC80211_MESH) += MAC80211_MESH ++config-$(CONFIG_PACKAGE_MAC80211_CAPWAP_WTP) += MAC80211_CAPWAP_WTP + ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS + config-y += \ + CFG80211_DEBUGFS \