From: Jouni Malinen Date: Wed, 27 Oct 2010 18:02:50 +0300 Subject: [ath9k-devel] ath9k: Virtual interface as AP In-Reply-To: <20101027141144.36130@gmx.net> References: <20101027141144.36130@gmx.net> Message-ID: <1288191770.26265.50.camel@jm-desktop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Wed, 2010-10-27 at 07:11 -0700, "Lorna Gonz?lez" wrote: > Configuration file: hostapd.conf > ioctl[SIOCGIFFLAGS]: No such device > Could not read interface flags (wlan1) > nl80211 driver initialization failed. That sounds like you did not have wlan1 when starting hostapd.. > interface=wlan1 > bss=wlan1 This is not a valid configuration. interface defines the main AP interface and bss is a virtual, secondary interface that will be created. As such, it must have a different interface name. I was assuming that you are trying to use multiple AP interfaces, but that may not be the case. > If I don?t add a new interface using iw, I wonder how the hostapd creates it. And, in order to function as an AP I also need to configurate the following a priori : hostapd does not create the main interface; it only configures the secondary ones (bss=). What you seem to be trying to do (station + AP) is not really supported that well currently. In theory, you would need to create a new vif manually (e.g., with iw) and then run hostapd on one of the interfaces. However, I would not give any guarantees on that working correctly in all (or well, even most) cases. - Jouni