From 58cf9a2476e75b40e7e300d5f833e65f82875409 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 5 Oct 2016 17:42:47 +0300 Subject: network/services/hostapd: move whole files outside of patches and drop Build/Prepare rule in favor of default one This more of a demo for the previous commit that comes with this one, where I added support for copying source from 'src' to the build dir(s). Signed-off-by: Alexandru Ardelean --- .../hostapd/patches/420-indicate-features.patch | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'package/network/services/hostapd/patches/420-indicate-features.patch') diff --git a/package/network/services/hostapd/patches/420-indicate-features.patch b/package/network/services/hostapd/patches/420-indicate-features.patch index 335e71eb51..8abeafcace 100644 --- a/package/network/services/hostapd/patches/420-indicate-features.patch +++ b/package/network/services/hostapd/patches/420-indicate-features.patch @@ -60,23 +60,3 @@ goto out; case 'W': params.wait_for_monitor++; ---- /dev/null -+++ b/src/utils/build_features.h -@@ -0,0 +1,17 @@ -+#ifndef BUILD_FEATURES_H -+#define BUILD_FEATURES_H -+ -+static inline int has_feature(const char *feat) -+{ -+#ifdef IEEE8021X_EAPOL -+ if (!strcmp(feat, "eap")) -+ return 1; -+#endif -+#ifdef IEEE80211N -+ if (!strcmp(feat, "11n")) -+ return 1; -+#endif -+ return 0; -+} -+ -+#endif /* BUILD_FEATURES_H */ -- cgit v1.2.3