Running hostapd and wpa_supplicant on the same interface
Peer, Ilan
ilan.peer at intel.com
Thu Jan 21 06:12:44 PST 2016
> -----Original Message-----
> From: Hostap [mailto:hostap-bounces at lists.infradead.org] On Behalf Of
> Antonio Quartulli
> Sent: Thursday, January 21, 2016 15:54
> To: night decoder; hostap at lists.infradead.org
> Subject: Re: Running hostapd and wpa_supplicant on the same interface
>
>
>
> On 21/01/16 21:14, night decoder wrote:
> > Hi List,
> >
> > Is that possible to run wpa_supplicant while hostapd is running on the same
> interface?
> >
> > My device will need too act as AP firstly, then after being configured by a
> client which connected to it's AP it could connect to another AP which it was
> supplied. Problem is when in AP mode, can I scan the SSID with
> wap_supplicant without leaving hostapd first? Can i do it seamlessly?
>
> In order to scan you can also use iw or nl80211 to perform a scan by using the
> AP interface. There is no need to kill hostapd and use wpa_supplicant in this
> case.
This is not always possible when the AP interface is already beaconing. For this to work the driver needs to report NL80211_FEATURE_AP_SCAN, and you need to specify 'ap-force' in the iw scan command.
Regards,
Ilan.
More information about the Hostap
mailing list