hostap with WPA-PSK

Casey T. Deccio casey at deccio.net
Sat Apr 2 00:28:15 EST 2005


  Hi,

  I have had hostap running on my machine (Debian sarge with 2.6.8 
kernel) for a while with WEP.  It's worked just fine for that.  Now I 
am looking to secure things a little more by using WPA-PSK with 
hostapd.  I haven't had much success in getting it going.  My client 
(Apple PowerBook) trys to associate with the AP, and I am prompted to 
supply a WEP password, although WEP is not configured.  If I try to 
manually use a WPA-PSK then the response is that that type of 
authentication isn't available.  I've looked through the READMEs and 
I'm not sure where to go next.

By the way, on an related note, where did the wifi0 and wlan0ap 
interfaces come from?  Which interfaces(s) should I be using to 
configure services for listening (e.g., dhcpd, cupsd) on the access 
point?

Thanks,
Casey

Here is some information that might be of use:

  # cat /etc/hostapd/hostapd.conf
  interface=wlan0
  logger_syslog=-1
  logger_syslog_level=2
  logger_stdout=-1
  logger_stdout_level=2
  debug=0
  dump_file=/tmp/hostapd.dump
  ctrl_interface=/var/run/hostapd
  ctrl_interface_group=0
  ssid=Deccio
  macaddr_acl=1
  accept_mac_file=/etc/hostapd/hostapd.accept
  deny_mac_file=/etc/hostapd/hostapd.deny
  auth_algs=1
  own_ip_addr=192.168.1.129
  wpa=1
  wpa_psk=<64HexDigits>
  wpa_key_mgmt=WPA-PSK
  wpa_pairwise=TKIP CCMP

  # cat /etc/network/interfaces
  auto wlan0
  iface wlan0 inet static
          address 192.168.1.129
          netmask 255.255.255.128

  # ifconfig
wifi0     Link encap:UNSPEC  HWaddr 
00-01-12-20-10-6D-00-00-00-00-00-00-00-00-00-00
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:0 (0.0 b)  TX bytes:488 (488.0 b)
           Interrupt:9 Base address:0x6100

wlan0     Link encap:Ethernet  HWaddr 00:01:12:20:10:6D
           inet addr:192.168.1.129  Bcast:192.168.1.255  
Mask:255.255.255.128
           inet6 addr: fe80::201:12ff:fe20:106d/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:0 (0.0 b)  TX bytes:468 (468.0 b)
           Interrupt:9 Base address:0x6100

wlan0ap   Link encap:UNSPEC  HWaddr 
00-01-12-20-10-6D-30-3A-00-00-00-00-00-00-00-00
           UP BROADCAST RUNNING MULTICAST  MTU:2290  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
           Interrupt:9 Base address:0x6100

# iwconfig
wifi0     IEEE 802.11b  ESSID:"Deccio"
           Mode:Master  Frequency:2.422 GHz  Access Point: 
00:01:12:20:10:6D
           Bit Rate:11 Mb/s   Sensitivity=1/3
           Retry min limit:8   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off
           Link Quality:0  Signal level:0  Noise level:0
           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
           Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wlan0     IEEE 802.11b  ESSID:"Deccio"
           Mode:Master  Frequency:2.422 GHz  Access Point: 
00:01:12:20:10:6D
           Bit Rate:11 Mb/s   Sensitivity=1/3
           Retry min limit:8   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off
           Link Quality:0  Signal level:0  Noise level:0
           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
           Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wlan0ap   IEEE 802.11b  ESSID:"Deccio"
           Mode:Master  Frequency:2.422 GHz  Access Point: 
00:01:12:20:10:6D
           Bit Rate:11 Mb/s   Sensitivity=1/3
           Retry min limit:8   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off




More information about the HostAP mailing list