Running wpa_supplicant and hostapd on the same machine
Fri Apr 8 04:47:37 PDT 2011
> -----Original Message-----
> From: Johannes Berg [mailto:johannes at sipsolutions.net]
> To: Panagiotis Georgopoulos
> Cc: hostap at lists.shmoo.com
> Subject: RE: Running wpa_supplicant and hostapd on the same machine
> On Thu, 2011-04-07 at 17:38 +0100, Panagiotis Georgopoulos wrote:
> > So, following this up, I tried to run hostapd using the wired driver
> > and interface=lo so that it listens on local host and I get the
> > following error :
> > root at mr1:/#hostapd -dd /etc/hostapd.wired.conf.local
> > Configuration file: /etc/hostapd.wired.conf.local
> > Opening raw packet socket for ifindex 1
> > Invalid HW-addr family 0x0304
> > wired driver initialization failed.
> > ELOOP: remaining socket: sock=3 eloop_data=0x86c3e60 user_data=(nil)
> > handler=0x8074930
> > Does anyone know where can I find more information about the Invalid
> > HW-addr family 0x0304 error and how can I solve that? Jouni any
> > ideas?
> Err, you can't use interface=lo because it's not an ethernet interface
> (0x304 is 772 is ARPHRD_LOOPBACK, expects ethernet)
That's very useful Johannes, thanks a lot!
Would you have any idea of how should I go on and make hostapd listen to packets from wpa_supplicant running on the same machine?
It was sensible to me to use the lo (local host) interface on both of them, but now I see that hostapd doesn't allow listening to that...
Thanks in advance,
More information about the Hostap