Running hostapd and wpa_supplicant on the same interface

Janusz Dziedzic janusz.dziedzic at tieto.com
Thu Jan 21 22:08:12 PST 2016


On 22 January 2016 at 04:47, night decoder <nightdecoder at live.com> wrote:
> Janusz solution by adding second interface works for me, tested on a ath9k card.
>
> iw wlan0 interface add wlan0_1 type managed
> ifconfig wlan0_1 hw ether <new_mac>
>
> Running hostapd on wlan0 and wpa_supplicant on wlan_1.
> I was able to scan (wpa_cli scan) without "ioctl[SIOCSIWSCAN]: Operation not supported
> Failed to initiate AP scan." error while hostapd is running.
>
BTW, with ath9k you can scan when AP:
iw wlan0 scan ap-force

> Is this configuration also available in Realtek RTL8188EU card?
>
> http://cateee.net/lkddb/web-lkddb/R8188EU.html
>
> It is a USB wireless card, I'm trying to configure it on kernel 2.6.32.27 (ARM926EJ-S) with BusyBox's iw and ip.
>
I don't know this HW, but you can check available combinations using:
iw phyX info

BR
Janusz

> night
>
> ----------------------------------------
> Subject: Re: Running hostapd and wpa_supplicant on the same interface
> To: ilan.peer at intel.com; nightdecoder at live.com; hostap at lists.infradead.org
> From: a at unstable.cc
> Date: Thu, 21 Jan 2016 22:16:03 +0800
>
>
>
>
> On 21/01/16 22:12, Peer, Ilan wrote:
>> 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
>
> _______________________________________________
> Hostap mailing list
> Hostap at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/hostap



More information about the Hostap mailing list