From 0bef5f4779eb3194add4ba30931b602b20e65f07 Mon Sep 17 00:00:00 2001
From: Nicolas Thill <nico@openwrt.org>
Date: Sat, 1 Apr 2006 20:30:35 +0000
Subject: [PATCH] fix hostapd (add missed changes from [3564])

SVN-Revision: 3575
---
 openwrt/package/Makefile  | 2 +-
 openwrt/package/depend.mk | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/openwrt/package/Makefile b/openwrt/package/Makefile
index 09df4fe2b9..cae4609338 100644
--- a/openwrt/package/Makefile
+++ b/openwrt/package/Makefile
@@ -69,7 +69,7 @@ package-$(BR2_COMPILE_GSM) += gsm
 package-$(BR2_PACKAGE_HASERL) += haserl
 package-$(BR2_PACKAGE_HEYU) += heyu
 package-$(BR2_PACKAGE_HOSTAP_UTILS) += hostap-utils
-package-$(BR2_PACKAGE_HOSTAPD) += hostapd
+package-$(BR2_COMPILE_HOSTAPD) += hostapd
 package-$(BR2_COMPILE_HOWL) += howl
 package-$(BR2_PACKAGE_HTPDATE) += htpdate
 package-$(BR2_PACKAGE_HTTPING) += httping
diff --git a/openwrt/package/depend.mk b/openwrt/package/depend.mk
index f973391c85..6ed55179bd 100644
--- a/openwrt/package/depend.mk
+++ b/openwrt/package/depend.mk
@@ -29,7 +29,6 @@ iptables-snmp-compile: net-snmp-compile
 iptraf-compile: ncurses-compile
 ipsec-tools-compile: openssl-compile
 jamvm-compile: libffi-sable-compile zlib-compile sablevm-classpath-compile
-hostapd-compile: openssl-compile wireless-tools-compile
 httping-compile: openssl-compile
 kismet-compile: uclibc++-compile libpcap-compile ncurses-compile
 l2tpns-compile: libcli-compile
@@ -138,6 +137,11 @@ ifneq ($(BR2_PACKAGE_FREERADIUS_MOD_SQL_PGSQL),)
 freeradius-compile: postgresql-compile
 endif
 
+hostapd-compile: wireless-tools-compile
+ifneq ($(BR2_PACKAGE_HOSTAPD),)
+hostapd-compile: openssl-compile
+endif
+
 ifneq ($(BR2_PACKAGE_MINI_HTTPD_MATRIXSSL),)
 mini_httpd-compile: matrixssl-compile
 endif
-- 
2.30.2