hostAP and wds with madwifi

Smith, Bruce bsmith at road-inc.com
Mon Sep 24 18:34:32 EDT 2007


Madwifi 0.9.3.2  (aka 5.2.1?), hostap/wpa 0.5.8.  Note, i haven't got the bridging to work correctly but it does broadcast.  I have associated to the ath0 AP and packets flow through (can be seen by ethereal) but I don't get responses back from dhcp nor do arps get returned.
 
However, it doesn't do well if you shutdown hostapd then restart it.  In that case, it fails to broadcast.
 
BTW, modify my flow below to the following:
iwpriv ath0 wds 1
iwpriv ath1 wds 1
iwconfig ath1 essid "some ap"
ifconfig ath1 up
//wait for association to 'some ap'
 
brctl addbr br0
brctl addif br0 ath0
brctl addif br0 ath1
brctl setfd br0 1
ifconfig br0 192.168.3.20
 
Run hostapd on ath0.  You should get broadcasts.
 
Cheers

________________________________

From: Micro Cool [mailto:microcool at hotmail.com]
Sent: Mon 9/24/2007 10:20 AM
To: Smith, Bruce; hostap at shmoo.com
Subject: RE: hostAP and wds with madwifi



Thanks Bruce,
     Can you tell me which version of madwifi, hostap, and wpa_supplicant you are using?
 
Thanks,
Joe



________________________________

	Subject: RE: hostAP and wds with madwifi
	Date: Mon, 24 Sep 2007 10:03:25 -0700
	From: bsmith at road-inc.com
	To: microcool at hotmail.com; hostap at shmoo.com
	
	
	I've used it in this mode although I am having an issue with moving data.
	 
	I first run wpa_supplicant on the sta intf and wait for association, then run hostapd on the other interface.  I then can see it from a second wifi card and can associate.  There was an issue with it not sending beacons but I don't remember the exact configuration but anytime I use this sequence it works fine.  
	 
	So the order of my bringup:
	wlanconfig ath create wlandev wifi0 wlanmode ap
	creates ath0
	wlanconfig ath create wlandev wifi0 wlanmode sta nosbeacon
	creates ath1
	iwpriv ath0 wds 1
	iwpriv ath1 wds 1
	ifconfig ath0 up
	ifconfig ath1 up
	 
	brctl addbr br0
	brctl addif br0 ath0
	brctl addif br0 ath1
	brctl setfd br0 1
	ifconfig br0 192.168.3.20
	 
	wpa_supplicant -Dmadwifi -iath1 -c /etc/wpa.conf
	wait for association
	hostapd /etc/hostapd.conf
	 
	I used a 2 wifi card at eth0 and ran wpa_supplicant on it to attach to the new AP defined in /etc/hostapd.conf.  You might try leaving ath0 down until wpa_supplicant is done then bring up ath0 and hostapd.  
	 
	I've also found the madwifi driver to be unstable, causing my machines to freeze.  Only in wds mode, otherwise the driver seems sound.
	 
	Cheers,
	Bruce
	 
	 
	
	
________________________________

	From: hostap-bounces+bsmith=road-inc.com at shmoo.com on behalf of Micro Cool
	Sent: Mon 9/24/2007 7:21 AM
	To: hostap at shmoo.com
	Subject: hostAP and wds with madwifi
	
	
	I am trying to get wpa_supplicant and hostapd to work for wds with the madwifi driver but I have not been having much luck.  I am aware that generally wds is not supported for 11i key managment method but since madwifi sets their wds links up as a station and a AP I thought it might be possible if you run hostAP on the AP interface and wpa_supplicant on the station interface.  However when I tried this for some reason whenever I bring the AP interface up with hostAP it never beacons.  Thought this was odd so I tried bringing the AP interface up first and then bring the station interface up and indeed the AP did beacon but as soon as the station linked it stopped.
	 
	Does anyone have any thoughts why this is happening?
	 
	 
	Thanks,
	Joe
	
	
________________________________

	Can you find the hidden words?  Take a break and play Seekadoo! Play now! <http://club.live.com/seekadoo.aspx?icid=seek_wlmailtextlink> 


________________________________

Can you find the hidden words?  Take a break and play Seekadoo! Play now! <http://club.live.com/seekadoo.aspx?icid=seek_wlmailtextlink> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20070924/946d3dde/attachment.htm 


More information about the HostAP mailing list