I have hostapd up and running.
I am having trouble configuring it for WPA/WPA2 with a pre-shared key.
Does anyone have a simple /etc/hostapd/hostapd.conf configuration file that he could post here?
Last edited by donjames (2013-06-26 05:47:09)
I have hostapd set up on my router with the following configuration:
bridge=br0 channel=7 country_code=US driver=nl80211 dtim_period=1 fragm_threshold=2346 hw_mode=g ieee80211n=1 interface=wlan0 rsn_pairwise=CCMP rts_threshold=2347 ssid=yourssidhere wmm_enabled=1 wpa=2 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP CCMP wpa_passphrase=yourpassphrasehere
The bridge setting may not be required for you if you aren't using hostapd on a router. I use it to specify the bridge interface I used to bind together the wired lan (eth1) and the wireless network (wlan0). You also may not need the ieee80211n or wmm_enabled options if you aren't using an 802.11n adapter. Don't remember is wmm_enabled has any effect on 802.11g.
You also may run into an issue where the network seems to perform far slower than it should. In my case this was caused by the random number generator entropy pool depleting far too quickly which caused /dev/random to block. To fix this, either install a hardware random number generator, or install a software daemon like haveged to keep the pool filled. haveged has been working just fine for me so far. If the entropy pool seems to be depleting too quickly still (haveged will generally tell you in its logs if I remember correctly), you can adjust the write_wakeup_threshold setting using either the -w option for haveged or directly by setting the option by name in /etc/sysctl.conf. The default setting in Debian is 1024, as a reference point.
I tried your hostapd.conf configuration and it worked!
I have been fighting with this thing for about 2 weeks trying to get it to work.
Thanks a bunch for your help.