small guide (very basic settings)
1. install hostapd, iw, crda:
sudo apt-get update && sudo apt-get install hostapd iw crda
2. make new hostapd config file with "minimal" settings:
sudo nano /etc/hostapd/hostapd.conf
#insert following contents: (please check and customize following settings: interface, country_code, ht_capab!!!, channel, your_ssid, your_password)
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ieee80211n=1
wme_enabled=1
wmm_enabled=0
ieee80211d=1
country_code=DE
#command: iw list
#Card:Atheros AR9280 (ath9k)
#HT20/HT40
#SM Power Save disabled
#RX HT40 SGI
#TX STBC
#RX STBC 1-stream
#Max AMSDU length: 3839 bytes
#DSSS/CCK HT40
#Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
#Minimum RX AMPDU time spacing: 8 usec (0x06)
#HT TX/RX MCS rate indexes supported: 0-15
ht_capab=[HT40-][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-3839][DSSS_CCK-40][MAX-RX-AMPDU-65535][MIN-RX-AMPDU-8]
hw_mode=g
channel=12
ssid=your_ssid
wpa_passphrase=your_password
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP
rsn_pairwise=CCMP
auth_algs=2
3. customize your "/etc/default/hostapd" settings
sudo nano /etc/default/hostapd
change line #DAEMON_CONF="" to DAEMON_CONF="/etc/hostapd/hostapd.conf"
change line #DAEMON_OPTS="" to DAEMON_OPTS="-ddt"
4. set dhcp settings (wlanX) in Zentyal gui
Default gateway, Search domain, Primary nameserver, NTP server, WINS server to Zentyal -> press Change
DHCP ranges: 192.168.111.100 to 192.168.111.110
Dynamic DNS Options - Dynamic DNS: enabled -> press Change -> press Save settings
5. start your hostapd service (keep your fingers crossed
)
sudo /etc/init.d/hostapd start
6. check hostapd connections
tail -f /var/log/syslog | grep hostapd: