1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-bclfs-hostapd" role="wrap">
|
---|
9 | <?dbhtml filename="hostapd.html"?>
|
---|
10 |
|
---|
11 | <title>hostapd-&hostapd-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-bclfs-hostapd">
|
---|
14 | <primary sortas="a-hostapd">hostapd</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>Hostapd is a daemon required for setting up a wireless access point, it supports
|
---|
21 | WEP, WPA and WPA2 encryption and can optionally use EAP for authentification, but since
|
---|
22 | this feature requires OpenSSL only basic WEP/WPA/WPA2 encryption will be compiled here.
|
---|
23 | </para>
|
---|
24 |
|
---|
25 | </sect2>
|
---|
26 |
|
---|
27 | <sect2 role="installation">
|
---|
28 | <title>Installation of hostapd</title>
|
---|
29 |
|
---|
30 | <para os="a">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 hostap:</para>
|
---|
31 |
|
---|
32 | <screen os="b"><userinput>
|
---|
33 | cd hostapd; cat > .config << EOF
|
---|
34 | # Support for nl80211 driver
|
---|
35 | CONFIG_DRIVER_NL80211=y
|
---|
36 | # Use v2.0 of the netlink appi
|
---|
37 | CFLAGS += -DCONFIG_LIBNL20
|
---|
38 | LDFLAGS += -lnl-genl
|
---|
39 |
|
---|
40 | CONFIG_RSN_PREAUTH=y
|
---|
41 |
|
---|
42 | # PeerKey handshake for Station to Station Link (IEEE 802.11e DLS)
|
---|
43 | CONFIG_PEERKEY=y
|
---|
44 | # Support draft ieee 802.11n
|
---|
45 | CONFIG_IEEE80211N=y
|
---|
46 |
|
---|
47 | # Remove debugging code that is printing out debug messages to stdout.
|
---|
48 | # This can be used to reduce the size of the hostapd considerably if debugging
|
---|
49 | # code is not needed.
|
---|
50 | CONFIG_NO_STDOUT_DEBUG=y
|
---|
51 | EOF
|
---|
52 | </userinput></screen>
|
---|
53 |
|
---|
54 | <para os="c">Compile the package:</para>
|
---|
55 |
|
---|
56 | <screen os="d"><userinput>make CC=${CC} CFLAGS="-g -Os -Wall"</userinput></screen>
|
---|
57 |
|
---|
58 | <para os="e">Install the package:</para>
|
---|
59 |
|
---|
60 | <screen os="f"><userinput>cp hostapd hostapd_cli ${CLFS}/usr/sbin</userinput></screen>
|
---|
61 |
|
---|
62 | <para os="g">Install the bootscripts from the clfs-bootscripts package:</para>
|
---|
63 |
|
---|
64 | <screen os="h"><userinput>make install-hostapd DESTDIR=${CLFS}</userinput></screen>
|
---|
65 |
|
---|
66 | </sect2>
|
---|
67 |
|
---|
68 | <sect2 id="contents-hostapd" role="content">
|
---|
69 | <title>Contents of hostapd</title>
|
---|
70 |
|
---|
71 | <segmentedlist>
|
---|
72 | <segtitle>Installed programs</segtitle>
|
---|
73 |
|
---|
74 | <seglistitem>
|
---|
75 | <seg>To be Written</seg>
|
---|
76 | </seglistitem>
|
---|
77 | </segmentedlist>
|
---|
78 |
|
---|
79 | </sect2>
|
---|
80 |
|
---|
81 | </sect1>
|
---|