I have a Debian Wheezy machine with hostapd running. I want it to make a WPA2-PSK secured WLAN Hotspot. I can see the Hotspot from my Android phone, but every time I try to connect to it, it shows "Getting IP-Address" for a very long time, and then it says "avoided weak web connection" ("Schwache Internetverbindung gemieden").
My /etc/hostapd/hostapd.conf file contains the following:
ctrl_interface=/var/run/hostapd
###############################
# Basic Config
###############################
macaddr_acl=0
auth_algs=1
# Most modern wireless drivers in the kernel need driver=nl80211
driver=nl80211
##########################
# Local configuration...
##########################
interface=wlan0
#bridge=br0
hw_mode=g
channel=1
ssid=HereIsMySSID
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=HereIsMyPassphrase
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
If I change the wpa_key_mgmt to WPA2-PSK, I get the following error:
# hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Line 22: invalid key_mgmt 'WPA2-PSK'
FT (IEEE 802.11r) requires nas_identifier to be configured as a 1..48 octet string
2 errors found in configuration file '/etc/hostapd/hostapd.conf'
#
My hostapd version is:
# hostapd -v
hostapd v1.0
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2012, Jouni Malinen <[email protected]> and contributors
#
How can I make this working?