sharing the same wireless interface

Krishna Chaitanya chaitanya.mgit
Wed Mar 20 11:52:50 PDT 2013

I have run in to this issue by running hostapd without stopping
the wpa_supplicant service.

If you run wpa_supplicant and hostapd in the same interface
the management_frame registration will fail for the hostapd
as wpa_supplicant would have already registered for that.

Unless we change that design this might not work.

see "cfg80211_mlme_register_mgmt" in net/wireless/mlme.c

On Wed, Mar 20, 2013 at 11:28 PM, D?nes N?meth
<mr.nemeth.denes at> wrote:
> Hi
> Could you help me to figure out if it is possible to use hostapd in
> the following situation:
> I would like to connect to the Internet using the wifi interface, and
> share the Internet connection
> using the same wireless card. Is this possible?
> If I set the main wireless interface in the hostapd config file than
> the wireless connection to the internet breaks (the Internet
> connection is managed by network manager)
> If I create a secondary interface using
> iw phy phy0 interface add wlan1 type managed
> and set this as the interface for hostapd it fails with
> Could not read interface wlan1   flags: No such device
> from the ifconfig and /proc/net/dev persective the wlan0 and wlan1
> looks the same with the
> exception of the MAC address..
> Thanks Denes
> _______________________________________________
> HostAP mailing list
> HostAP at

More information about the Hostap mailing list