hostapd/hostapd.dif

121 lines
3.4 KiB
Plaintext
Raw Normal View History

Index: hostapd-0.5.7/.config
===================================================================
--- /dev/null
+++ hostapd-0.5.7/.config
@@ -0,0 +1,80 @@
+# Example hostapd build time configuration
+#
+# This file lists the configuration options that are used when building the
+# hostapd binary. All lines starting with # are ignored. Configuration option
+# lines must be commented out complete, if they are not to be included, i.e.,
+# just setting VARIABLE=n is not disabling that variable.
+#
+# This file is included in Makefile, so variables like CFLAGS and LIBS can also
+# be modified from here. In most cass, these lines should use += in order not
+# to override previous values of the variables.
+
+# Driver interface for Host AP driver
+CONFIG_DRIVER_HOSTAP=y
+
+# Driver interface for wired authenticator
+CONFIG_DRIVER_WIRED=y
+
+# Driver interface for madwifi driver
+MADWIFI_SOURCE=$(shell echo /usr/include/madwifi-*)
+MADWIFI_AVAIL=$(shell test -x ${MADWIFI_SOURCE} && echo y)
+ifeq ($(MADWIFI_AVAIL),y)
+CFLAGS += -I$(shell echo /usr/include/madwifi-*)
+CONFIG_DRIVER_MADWIFI=y
+endif
+
+# Driver interface for Prism54 driver
+CONFIG_DRIVER_PRISM54=y
+
+# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
+#CONFIG_DRIVER_BSD=y
+#CFLAGS += -I/usr/local/include
+#LIBS += -L/usr/local/lib
+
+# IEEE 802.11F/IAPP
+CONFIG_IAPP=y
+
+# WPA2/IEEE 802.11i RSN pre-authentication
+CONFIG_RSN_PREAUTH=y
+
+# Integrated EAP authenticator
+CONFIG_EAP=y
+
+# EAP-MD5 for the integrated EAP authenticator
+CONFIG_EAP_MD5=y
+
+# EAP-TLS for the integrated EAP authenticator
+CONFIG_EAP_TLS=y
+
+# EAP-MSCHAPv2 for the integrated EAP authenticator
+CONFIG_EAP_MSCHAPV2=y
+
+# EAP-PEAP for the integrated EAP authenticator
+CONFIG_EAP_PEAP=y
+
+# EAP-GTC for the integrated EAP authenticator
+CONFIG_EAP_GTC=y
+
+# EAP-TTLS for the integrated EAP authenticator
+CONFIG_EAP_TTLS=y
+
+# EAP-SIM for the integrated EAP authenticator
+CONFIG_EAP_SIM=y
+
+# EAP-PAX for the integrated EAP server
+CONFIG_EAP_PAX=y
+
+# EAP-PSK for the integrated EAP server
+CONFIG_EAP_PSK=y
+
+# PKCS#12 (PFX) support (used to read private key and certificate file from
+# a file that usually has extension .p12 or .pfx)
+CONFIG_PKCS12=y
+
+# RADIUS authentication server. This provides access to the integrated EAP
+# authenticator from external hosts using RADIUS.
+CONFIG_RADIUS_SERVER=y
+
+# Build IPv6 support for RADIUS operations
+CONFIG_IPV6=y
+
Index: hostapd-0.5.7/driver_madwifi.c
===================================================================
--- hostapd-0.5.7.orig/driver_madwifi.c
+++ hostapd-0.5.7/driver_madwifi.c
@@ -19,6 +19,7 @@
#include <sys/ioctl.h>
#include <include/compat.h>
+#include <net80211/_ieee80211.h>
#include <net80211/ieee80211.h>
#ifdef WME_NUM_AC
/* Assume this is built against BSD branch of madwifi driver. */
Index: hostapd-0.5.7/Makefile
===================================================================
--- hostapd-0.5.7.orig/Makefile
+++ hostapd-0.5.7/Makefile
@@ -18,6 +18,8 @@ CFLAGS += -I. -I../utils -I$(DIR_WPA_SUP
-include .config
+BINDIR ?= /usr/local/bin
+
ifndef CONFIG_OS
ifdef CONFIG_NATIVE_WINDOWS
CONFIG_OS=win32
@@ -333,7 +335,8 @@ verify_config:
fi
install: all
- for i in $(ALL); do cp $$i /usr/local/bin/$$i; done
+ mkdir -p $(INSTROOT)$(BINDIR)
+ for i in $(ALL); do install -m755 $$i $(INSTROOT)$(BINDIR)/$$i; done
hostapd: $(OBJS)
$(CC) -o hostapd $(OBJS) $(LIBS)