Running hostapd and wpa_supplicant on the same interface

Antonio Quartulli a at unstable.cc
Thu Jan 21 06:16:03 PST 2016



On 21/01/16 22:12, Peer, Ilan wrote:
>> -----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.
> 

right, thanks for clarifying! Which basically means "every device not
supporting HW scan".

ok, I am digressing :)

Cheers,

-- 
Antonio Quartulli

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20160121/dc1331a3/attachment.sig>


More information about the Hostap mailing list