Running wpa_supplicant and hostapd on the same machine

Panagiotis Georgopoulos panos
Thu Apr 7 06:40:21 PDT 2011

You are very right; that's one of the things I thought might be problematic. Do you have
any recommendations on this?


I was thinking of using wired driver and also ap_scan=0,  scan_ssid=0 and  eapol_flags=0
on wpa_supplicant to do that, and instead of doing interface=eth0 to do interface=lo. 


I guess there is only one way to see if that works. to try it out!







From: thirumalai Ath [mailto:thirumalai.wlan at] 
Sent: 06 April 2011 12:54
To: Panagiotis Georgopoulos
Cc: hostap at
Subject: Re: Running wpa_supplicant and hostapd on the same machine


I think your wifi driver need to support for this.

On Wed, Apr 6, 2011 at 4:34 AM, Panagiotis Georgopoulos <panos at> wrote:

Hello all,


               Here is a bit of a crazy idea; has anyone run wpa_supplicant and hostapd on
the same machine?


               What I want to do, is be able to authenticate a machine with a backend AAA
server and send its accounting information there, over for example an Ethernet connection
or 3G on that same box (and not an Access point one hop away). So I was thinking of
configuring and running both wpa_supplicant and hostapd to use the lo (local host
interface) to communicate with each other for the pass over of credentials and the
encapsulation of EAP packets to AAA IP packets, and configure hostapd (with the wired.conf
configuration) to talk to a backend AAA server. 


               Would that be possible and how? 


I realize that this is a very simplistic way to put this and overkill for wpa_supplicant
and hostapd, but does anyone have a better alternative?


               Thanks a lot in advance,


HostAP mailing list
HostAP at


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Hostap mailing list