Hostapd gives error with Madwifi.conf file
maloomnahi at indiatimes.com
maloomnahi
Tue Sep 11 20:42:33 PDT 2007
Hi Dennis,
Thanks for the help. I tried the same and following was the result:
[root at localhost hostapd-0.5.8]# hostapd -ddd hostapd.conf
Configuration file: hostapd.conf
ctrl_interface_group=0
eapol_version=1
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
eth1: 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_set_privacy: enabled=0
Mode: IEEE 802.11g Channel: 11 Frequency: 0 MHz
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
madwifi_set_key: alg=WEP addr=00:00:00:00:00:00 key_idx=0
madwifi_set_privacy: enabled=1
Using interface eth1 with hwaddr 00:14:78:8f:5e:49 and ssid '"SEMCO_AP"'
SSID - hexdump_ascii(len=10):
22 53 45 4d 43 4f 5f 41 50 22 "SEMCO_AP"
PSK (ASCII passphrase) - hexdump_ascii(len=17):
73 65 63 72 65 74 20 70 61 73 73 70 68 72 61 73 secret passphras
65 e
PSK (from passphrase) - hexdump(len=32): 1d 06 a0 51 54 ea 0e 75 69 90 b4 5e 3b 5a 5f ca 72 00 e8 a0 62 5b 6e a9 56 dd 24 2c f5 d2 f4 c0
madwifi_set_ieee8021x: enabled=1
madwifi_configure_wpa: group key cipher=1
madwifi_configure_wpa: pairwise key ciphers=0x2
madwifi_configure_wpa: key management algorithms=0x2
madwifi_configure_wpa: rsn capabilities=0x1
madwifi_configure_wpa: enable WPA=0x1
madwifi_set_privacy: enabled=1
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
IEEE 802.1X: New default WEP key index 2
IEEE 802.1X: New default WEP key - hexdump(len=5): [REMOVED]
madwifi_set_key: alg=WEP addr=00:00:00:00:00:00 key_idx=2
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=1
madwifi_set_privacy: enabled=1
madwifi_set_iface_flags: dev_up=1
eth1: Setup of interface done.
l2_packet_receive - recvfrom: Network is down
l2_packet_receive - recvfrom: Network is down
Wireless event: cmd=0x8b1a len=19
Signal 2 received - terminating
Flushing old station entries
madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
Deauthenticate all stations
madwifi_set_privacy: enabled=0
madwifi_set_ieee8021x: enabled=0
madwifi_set_iface_flags: dev_up=0
As per the result there is an SETMLME error along with "Could not connect to kernel driver." and "l2_packet_receive - recvfrom: Network is down". Could you advice me on these, Am i missing some setting within .conf or .config files? Also the DMESG command shows "wlan_xauth: no version magic, tainting kernel." and similarly for all modules and object files I have added into the module.
Should I remove the OBJ and modules from kernel? Below is just a sample of what all I have added into the kernel as part of the wlan module
wlan 198724 20 sta_info.o,md5.o,crtl_iface.o,eap.o,ieee802_1x.o,ieee802_11.o,preauth.o,radius_client.o,radius_server.o,radius.o,wlan_scan_ap,wlan_xauth,wlan_acl,wlan_wep,wlan_ccmp,wlan_tkip,wlan_scan_sta,ath_rate_sample,ath_pci
Thanks
PPN
----- Original Message -----
From: dennis khoo <dhskhoo at yahoo.com>
To: maloomnahi at indiatimes.com, Jan Ceuleers <jan.ceuleers at computer.org>
Cc: hostap at shmoo.com
Sent: Tue, 11 Sep 2007 22:47:09 +0530 (IST)
Subject: Re: Hostapd gives error with Madwifi.conf file
Have you tried changing the mode to AP via wlanconfig
in madwifi-ng before running hostapd? Madwifi-ng
currently does not support changing mode through
ioctl[SIOCSIWMODE] so you probably need to do
something like this if your radio starts out in
managed mode:
# wlanconfig ath0 destroy
# wlanconfig ath0 create wlandev wifi0 wlanmode ap.
then start hostapd.
hopes this helps,
dennis
--- maloomnahi at indiatimes.com wrote:
> Hi Jan,
>
> Thanks for the information. I have tried installing
> the bridge, but the error now shows as follows: (It
> has created the br0 port now)
>
> [root at localhost hostapd-0.5.8]# hostapd -ddd
> hostapd.conf
> Configuration file: hostapd.conf
> ctrl_interface_group=0
> eapol_version=1
> Configure bridge br0 for EAPOL traffic.
> ioctl[SIOCSIWMODE]: Operation not supported
> Could not set interface to master mode!
> madwifi driver initialization failed.
> eth0: Unable to setup interface.
> Flushing old station entries
> Deauthenticate all stations
> rmdir[ctrl_interface]: No such file or directory
>
> Can anyone tell me is it the .config problem or
> AR5212 PCI card interface problem?
>
> Thanks
> PPN
>
> ----- Original Message -----
> From: Jan Ceuleers <jan.ceuleers at computer.org>
> To: hostap at shmoo.com
> Sent: Mon, 10 Sep 2007 13:17:03 +0530 (IST)
> Subject: Re: Hostapd gives error with Madwifi.conf
> file
>
> maloomnahi at indiatimes.com wrote:
> > [root at localhost hostapd-0.5.8]# brctl addbr br0
> > -bash: brctl: command not found
>
> Install the bridge utilities then. On Ubuntu, this
> is done thusly:
>
> apt-get install bridge-utils
>
>
> Cheers, Jan
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
>
> --
> My life has changed. What about yours?
> Log on to the new Indiatimes Mail and Live out of
> the Inbox!
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
____________________________________________________________________________________
Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
--
My life has changed. What about yours?
Log on to the new Indiatimes Mail and Live out of the Inbox!
More information about the Hostap
mailing list