%general-entities; ]> hostapd-&hostapd-version; hostapd <para>Hostapd is a daemon required for setting up a wireless access point, it supports WEP, WPA and WPA2 encryption and can optionally use EAP for authentification, but since this feature requires OpenSSL only basic WEP/WPA/WPA2 encryption will be compiled here.</para> </sect2> <sect2 role="installation"> <title>Installation of hostapd By default only a very basic hostapd is made, but hostapd supports a lot of other options as well. Write a basic config file for hostapd: cd hostapd; cat > .config << EOF # Support for nl80211 driver CONFIG_DRIVER_NL80211=y # Use v2.0 of the netlink appi CFLAGS += -DCONFIG_LIBNL20 LDFLAGS += -lnl-genl CONFIG_RSN_PREAUTH=y # PeerKey handshake for Station to Station Link (IEEE 802.11e DLS) CONFIG_PEERKEY=y # Support draft ieee 802.11n CONFIG_IEEE80211N=y # Remove debugging code that is printing out debug messages to stdout. # This can be used to reduce the size of the hostapd considerably if debugging # code is not needed. CONFIG_NO_STDOUT_DEBUG=y EOF Compile the package: make CFLAGS="-g -Os -Wall" Install the package: cp hostapd hostapd_cli ${CLFS}/usr/sbin Installation of hostapd Bootscripts From the clfs-bootscripts package, install the hostapd bootscripts: make install-hostapd DESTDIR=${CLFS} Configure hostapd Create hostapd.conf, this example file will create a WPA2 encrypted host access point with the name dummy and password foobar123 on channel 4: cat > ${CLFS}/etc/hostapd.conf << EOF # Sample hostapd.conf # See hostapd/hostapd.conf in your hostap source tree for a more detailed version interface=wlan0 bridge=br0 ctrl_interface=/var/run/hostapd ssid=dummy #country_code=US country_code=EU hw_mode=g channel=4 # wpa=1 only allow WPA1 # wpa=2 allow WPA2 only # wpa=3 allow WPA1 + WPA2 wpa=2 wpa_passphrase=foobar123 # b43 drivers seem to have issues at the moment with CCMP encryption # dropping packets among other things so use TKIP (AES) only for now wpa_pairwise=TKIP rsn_pairwise=TKIP EOF Contents of hostapd Installed programs To be Written