Madwifi-NG + hostapd + RSN

thomas schorpp t.schorpp at gmx.de
Mon Feb 6 17:09:31 EST 2006


Leonardo Maccari wrote:
> On Tue, Jan 31, 2006 at 12:51:40PM +0100, thomas schorpp wrote:
> 
>>Leonardo Maccari wrote:
>>
>>>On Mon, Jan 30, 2006 at 09:02:07AM +0100, Stijn Tintel wrote:
>>>
>>
>>for a working setup i use madwifi-old and debian kernels 2.6.14-15 (Wireless Extensions- /IEEE stack Version!) and hostapd 0.4.7 stable.
> 
> 
> now I have 2.6.15:
> lautrec:/home/leonardo/src/hostapd-0.4.7# iwconfig --version
> iwconfig  Wireless-Tools version 27
>           Compatible with Wireless Extension v11 to v17.
> 
> 	  Kernel    Currently compiled with Wireless Extension v19.
> 
> 	  ath0      Recommend Wireless Extension v13 or later,
> 	            Currently compiled with Wireless Extension v19.
> 		    
> 
> I've madwifi-old from svn, and hostapd 0.4.7, that is, nothing from debian
> stable distribution.

use madwifi-old from old cvs repository, see below. maybe they patched something in the svn repository. 

> 
> The behaviour of madwifi driver is randomic.  I was able to have it working with hostapd and WPA-PSK,
> having it ping for 10 minutes then it stops. After a random number of
> stop&start of hostapd it freezes the kernel. 
> Now I'm asking: is there a suggested kernel/madwifi combination that is
> _stable_? 
> 
> 
>>ath0 is configured static inet auto and with channel,iwpriv mode 3,essid in interfaces file and up before starting hostapd. *
>>
>>ive never tried hostapd on madwifi-ng because of outstanding critical bugs on madwifi.org tracker and it runs on my domain-server, 
>>i cant risk to crash.
>>
>>if you want you may surely need latest 2.6.15 and hostapd-cvs head.
>>if kernel crashes pls attach serial (cable) console from another machine and/or ksymoops 
>>to catch oops and report to madwifi.org bugtracker.
> 
> 
> I'll try if I can, but the question remains: you say madwifi-new is
> unstable, is there any stable version?

ask madwifi.org. i wont change *anything* until i can replace it with the future driver from ath-driver.org 
or security issues with hostapd 0.4.7 turn up.
hopefully 2.6.16... doesnt brake it...

> 
> ciao,
> leonardo.
> 

i cant mourn with madwifi-old and hostapd rev 0.4.7:

> tom3:~# cat /var/log/syslog |grep hostapd
> Feb  6 06:31:56 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 06:41:56 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 06:51:56 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 07:01:56 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 07:03:13 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 IEEE 802.1X: authenticated
> Feb  6 07:03:14 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: pairwise key handshake completed (RSN)
> Feb  6 07:11:57 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 07:21:57 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 07:31:57 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 07:41:57 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 07:51:57 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 08:01:57 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 08:03:28 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 IEEE 802.1X: authenticated
> Feb  6 08:03:29 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: pairwise key handshake completed (RSN)
> Feb  6 08:11:57 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
...
> Feb  6 12:41:57 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 WPA: group key handshake completed (RSN)
> Feb  6 12:43:44 tom3 hostapd: ath0: STA 00:0d:93:8b:bf:95 IEEE 802.11: deassociated
> tom3:~#

the peer was a macos tiger g4 powerbook, other peers not logged here are winxpsp2 or linux wpa_supplicant.

tom3:~# top
top - 21:42:15 up 14 days,  6:46,  1 user,  load average: 0.00, 0.00, 0.00
Tasks:  71 total,   1 running,  70 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.7% us,  0.3% sy,  0.0% ni, 98.7% id,  0.0% wa,  0.3% hi,  0.0% si
Mem:    192100k total,   188256k used,     3844k free,    24576k buffers
Swap:   249944k total,        4k used,   249940k free,   135392k cached

tom3:~# uname -a
Linux tom3.schorpp.dyndns.dk 2.6.15-1-686 #1 Tue Jan 3 09:51:45 UTC 2006 i686 GNU/Linux

tom3:~# hostapd -v
hostapd v0.4.7
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2005, Jouni Malinen <jkmaline at cc.hut.fi> and contributors

tom3:~# modinfo ath-pci
filename:       /lib/modules/2.6.15-1-686/net/ath_pci.ko
author:         Errno Consulting, Sam Leffler
description:    Support for Atheros 802.11 wireless LAN cards.
license:        Dual BSD/GPL
vermagic:       2.6.15-1-686 686 gcc-4.0
depends:        ath_hal,wlan,ath_rate_sample

tom3:~# cat /etc/network/interfaces
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo eth0 eth1 ath0 <-- security risk, iface gets up and inet configured in ap mode, 
maybe not needed. hostapd and kismet should do up/down themselves, but not some of the other parameters needed. 
...
iface ath0 inet static
address 192.168.1.1
#address 192.168.2.2
netmask 255.255.255.0
broadcast 192.168.1.255
#broadcast 192.168.2.255
network 192.168.1.0
#network 192.168.2.0
wireless_iwpriv_mode 3   <--- 811g, i remember i tweaked here, but such a iwpriv command was added to the debian wireless-scripts lately.
#wireless_iwpriv_turbo 1
wireless_essid madwifi
#wireless_essid off
#wireless_ap 00:03:C9:FA:2E:E9
wireless_mode Master
#wireless_mode Managed
wireless_channel 3
#wireless_channel 11
wireless_rate auto
#wireless_commit
tom3:~#

tom3:/usr/src/madwifi-bsd-cvs#
tom3:/usr/src/madwifi-bsd-cvs# cvs status release.h
===================================================================
File: release.h         Status: Up-to-date

   Working revision:    1.3
   Repository revision: 1.3     /cvsroot/madwifi/madwifi/release.h,v
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

tom3:/usr/src/madwifi-bsd-cvs# cat CVS/*
D/ath////
D/ath_hal////
D/ath_rate////
D/hal////
D/include////
D/net80211////
D/patches////
D/tools////
/COPYRIGHT/1.5/Wed Jul 13 19:16:50 2005//
/release.h/1.3/Wed Jul 13 19:16:50 2005//
/INSTALL/1.3/Wed Jul 27 16:41:18 2005//
/TODO/1.5/Wed Jul 27 16:41:18 2005//
/README/1.34/Wed Aug 24 06:33:25 2005//
/Makefile/1.32/Tue Oct 18 17:33:44 2005//
/Makefile.inc/1.42/Tue Oct 18 17:33:44 2005//
madwifi
:pserver:anonymous at cvs.sourceforge.net:/cvsroot/madwifi
tom3:/usr/src/madwifi-bsd-cvs#

tom3:~# lspci
0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
0000:00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
0000:00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
0000:00:0c.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 06)
0000:00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:00:0e.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:00:0f.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
0000:00:0f.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
0000:00:0f.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)
0000:00:10.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)

i use a older version netgear wg311T.







More information about the HostAP mailing list