scanning/wpa client while in hostapd mode

Fred Ollinger Fred.Ollinger at
Tue Mar 8 13:35:40 PST 2016

Thanks for the kind response.

First, I'd like to say that I believe I was wrong about Android phones hosting an access point and scanning at the same time.

I'll answer the other questions in hopes that perhaps this can be done on my platform.

I'm running Yocto on an arm:

Linux csplus_cm 3.10.53-1.1.0+g04cae56 #1 SMP Tue Mar 1 11:01:22 PST 2016 armv7l GNU/Linux

The driver is a for wl1831:

The version of wpa_supplicant is here:


The supplicant is run with the following parameters:

/usr/sbin/wpa_supplicant -B -P /var/run/ -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211

I'll be happy to answer any other questions to help solve this problem.

Wishing you well,


From: Jouni Malinen <j at>
Sent: Tuesday, March 8, 2016 1:24 PM
To: Fred Ollinger
Cc: hostap at
Subject: Re: scanning/wpa client while in hostapd mode

On Mon, Mar 07, 2016 at 06:25:57PM +0000, Fred Ollinger wrote:
> Most Android phones allow for one to connect to an access point as a client and to serve an access point at the same time to allow a computer with wifi to connect to the Internet via one's mobile plan.
> I'm trying to do the same with hostapd, but it seems like when wpa_supplicant is running, hostapd fails.

Could you please provide more details on how this fails, which netdevs
you are using and how they were created, and which WLAN driver are you

> Is there a workaround? If so, can you please point out where in the documentation? If there is no documentation, but this is a feature we have, I'll be happy to document this from the source code if pointed in the right direction.

It is difficult to say much more without knowing more about the details
of how exactly the configuration is done. With number of drivers, it
should be possible to do this with wpa_supplicant and hostapd, but it
would also be possible to use wpa_supplicant to control both the station
and AP mode interfaces concurrently.

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list