hostapd + madwifi setup problem

David shadoweyez at gmail.com
Sun Nov 26 20:42:57 EST 2006


Hi all, have a problem setting up madwifi and hostapd with wpa2/wpa:
I'm running kernel-2.6.18.3, madwifi-0.9.2, hostapd-0.5.6;

/etc/hostapd.conf:
interface=ath0
bridge=br0
driver=madwifi
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=ath0-network
macaddr_acl=0
auth_algs=3
ieee8021x=0
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1
wpa=1
wpa_passphrase=...
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP




when I type
hostapd -dd /etc/hostapd.conf

I get:

Configuration file: /etc/hostapd.conf
ctrl_interface_group=0
Configure bridge br0 for EAPOL traffic.
madwifi_set_iface_flags: dev_up=0
madwifi_set_privacy: enabled=0
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=20 WE(source)=13 enc_capa=0xf
ath0: IEEE 802.11 Fetching hardware channel/rate support not supported.
Flushing old station entries
madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
madwifi_sta_deauth: Failed to deauth STA (addr ff:ff:ff:ff:ff:ff reason 3)
Could not connect to kernel driver.
Deauthenticate all stations
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=0
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=1
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=2
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=3
Using interface ath0 with hwaddr 00:15:6d:50:10:e2 and ssid 'wireless'
<passphrase stuff>
madwifi_set_ieee8021x: enabled=1
madwifi_configure_wpa: group key cipher=3
madwifi_configure_wpa: pairwise key ciphers=0x8
madwifi_configure_wpa: key management algorithms=0x2
madwifi_configure_wpa: rsn capabilities=0x0
madwifi_configure_wpa: enable WPA=0x1
madwifi_set_privacy: enabled=0
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
madwifi_set_key: alg=CCMP addr=00:00:00:00:00:00 key_idx=1
madwifi_set_privacy: enabled=1
madwifi_set_iface_flags: dev_up=1
ath0: Setup of interface done.
l2_packet_receive - recvfrom: Network is down


Some times I also get messages about not being linked to the kernel driver.
When hostapd is run, the wireless network is not visible.  Prior to starting
hostapd I always run:
        modprobe ath_pci
        /usr/local/bin/wlanconfig ath0 destroy
        /usr/local/bin/wlanconfig ath0 create wlandev wifi0 wlanmode ap
to set up the interface.  The card itself works as a normal station mode card.

I've googled and looked at other posts, looked at the hostap and madwifi.org
sites, but to no avail.  How can I fix this?

Thanks,
David



More information about the HostAP mailing list